the batch operation for getting the entity are stated below:
How can I fetch all entities without supplying keys?
I got a solution on this and can be found in Datastore Queries - Query interface example:
Query q = new Query("Person")
PreparedQuery pq = datastore.prepare(q);
for (Entity result : pq.asIterable()) {
String firstName = (String) result.getProperty("firstName");
String lastName = (String) result.getProperty("lastName");
Long height = (Long) result.getProperty("height");
System.out.println(lastName + " " + firstName + ", " + height.toString() + "inches tall");
}
I did not add filter in query since it return all entities from datastore.