Send feedback
Interface DatastoreReader (2.13.2)
Stay organized with collections
Save and categorize content based on your preferences.
Version 2.13.2 keyboard_arrow_down
public interface DatastoreReader
An interface to represent Google Cloud Datastore read operations.
Methods
<T>run(Query<T> query)
public abstract QueryResults<T> <T>run(Query<T> query)
Submits a Query and returns its result.
Parameter
Name Description query Query <T >
Returns
fetch(Key[] keys)
public abstract List<Entity> fetch(Key[] keys)
Returns a list with a value for each given key (ordered by input). null
values are
returned for nonexistent keys. When possible prefer using #get(Key...) to avoid eagerly
loading the results.
Parameter
Returns
get(Key key)
public abstract Entity get(Key key)
Returns an Entity for the given Key or null
if it doesn't exist.
Parameter
Returns
get(Key[] keys)
public abstract Iterator<Entity> get(Key[] keys)
Returns an Entity for each given Key that exists in the Datastore. The order of
the result is unspecified. Results are loaded lazily, so it is possible to get a
DatastoreException
from the returned Iterator
's hasNext or
next methods.
See Also: #get(Key)
Parameter
Returns
runAggregation(AggregationQuery query)
public default AggregationResults runAggregation(AggregationQuery query)
Parameter
Returns
Send feedback
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License , and code samples are licensed under the Apache 2.0 License . For details, see the Google Developers Site Policies . Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2024-07-16 UTC.
[{
"type": "thumb-down",
"id": "hardToUnderstand",
"label":"Hard to understand"
},{
"type": "thumb-down",
"id": "incorrectInformationOrSampleCode",
"label":"Incorrect information or sample code"
},{
"type": "thumb-down",
"id": "missingTheInformationSamplesINeed",
"label":"Missing the information/samples I need"
},{
"type": "thumb-down",
"id": "otherDown",
"label":"Other"
}]
[{
"type": "thumb-up",
"id": "easyToUnderstand",
"label":"Easy to understand"
},{
"type": "thumb-up",
"id": "solvedMyProblem",
"label":"Solved my problem"
},{
"type": "thumb-up",
"id": "otherUp",
"label":"Other"
}]
Need to tell us more?