Package com.google.cloud.datastore (2.33.0)
| GitHub Repository |
Classes
| Class | Description |
|---|---|
| com. |
An implementation of a Google Cloud Datastore Query that returns AggregationResults, It can be constructed by providing a nested query (StructuredQuery or GqlQuery) to run the aggregations on and a set of Aggregation. |
| com. |
|
| com. |
Represents a result of an AggregationQuery query submission. |
| com. |
The result of an AggregationQuery query submission. Contains a List<AggregationResult> and readTime Timestamp in it.
This can be used to iterate over an underlying List<AggregationResult> directly. |
| com. |
Base class for DatastoreBatchWriter. |
| com. |
A base class for entities (key and properties). An entity is a Google Cloud Datastore persistent data object. An entity holds one or more properties, represented by a name (as String) and a value (as com.google.cloud.datastore.Value), and may be associated with a key. For a list of possible values see ValueType. |
| com. |
|
| com. |
Base class for keys. |
| com. |
Base class for key builders. |
| com. |
A Google Cloud Datastore Blob. This class is immutable. See Also: Google Cloud Datastore Entities, Properties, and Keys |
| com. |
|
| com. |
|
| com. |
|
| com. |
|
| com. |
A Google Cloud Datastore cursor. The cursor can be used to as a starting point or an ending point for a Query |
| com. |
|
| com. |
|
| com. |
|
| com. |
|
| com. |
|
| com. |
|
| com. |
|
| com. |
|
| com. |
|
| com. |
An entity is the Google Cloud Datastore persistent data object for a specific key. An entity will always have a complete Key. |
| com. |
|
| com. |
An implementation of a Google Cloud Datastore entity query that can be constructed by providing all the specific query elements. See Also: Datastore queries |
| com. |
A EntityQuery builder for queries that return Entity results. |
| com. |
|
| com. |
|
| com. |
A full entity is a BaseEntity that holds all the properties associated with a Datastore entity (as opposed to ProjectionEntity). |
| com. |
|
| com. |
A Google Cloud Datastore GQL query.
A usage example: |
| com. |
A GQL query builder. |
| com. |
|
| com. |
An incomplete key (without a name or id). This class is immutable. |
| com. |
|
| com. |
A key that is guaranteed to be complete and could be used to reference a Google Cloud Datastore Entity. This class is immutable. See Also: Google Cloud Datastore Entities, Properties, and Keys |
| com. |
|
| com. |
A helper for creating keys for a specific Datastore, using its associated projectId and namespace. |
| com. |
An implementation of a Google Cloud Datastore key-only query that can be constructed by providing all the specific query elements. See Also: Datastore queries |
| com. |
A KeyQuery builder for queries that return Key results. |
| com. |
|
| com. |
|
| com. |
A Google Cloud Datastore LatLng (represented by latitude and longitude in degrees). This class is immutable. See Also: Google Cloud Datastore Entities, Properties, and Keys |
| com. |
|
| com. |
|
| com. |
A Google Cloud Datastore list value. A list value is a list of Value objects. |
| com. |
|
| com. |
|
| com. |
|
| com. |
|
| com. |
|
| com. |
Represents a single element in a key's path. |
| com. |
A projection entity is a result of a Google Cloud Datastore projection query. A projection entity holds one or more properties, represented by a name (as String) and a value (as Value), and may have a Key. See Also: Google Cloud Datastore Entities, Properties, and Keys, Google Cloud Datastore projection queries |
| com. |
|
| com. |
An implementation of a Google Cloud Datastore projection entity query that can be constructed by providing all the specific query elements. See Also: Datastore queries |
| com. |
A ProjectionEntityQuery builder for queries that return ProjectionEntity
results. |
| com. |
A Google Cloud Datastore query. For usage examples see GqlQuery, StructuredQuery
and AggregationQuery.
Note that queries require proper indexing. See Cloud Datastore Index |
| com. |
This class represents the expected type of the result. ENTITY: A full entity represented by Entity. PROJECTION_ENTITY: A projection entity, represented by ProjectionEntity. KEY: An entity's Key. |
| com. |
|
| com. |
|
| com. |
Specifies options for read operations in Datastore, namely getting/fetching entities and running queries. |
| com. |
Specifies eventual consistency for reads from Datastore. Lookups and ancestor queries using this option permit Datastore to return stale results. |
| com. |
|
| com. |
Reads entities as they were at the given time. This may not be older than 270 seconds. This value is only supported for Cloud Firestore in Datastore mode. |
| com. |
|
| com. |
An implementation of DatastoreRpc which acts as a Decorator and decorates the underlying DatastoreRpc with the logic of retry and Traceability. |
| com. |
|
| com. |
|
| com. |
An implementation of a Google Cloud Datastore Query that can be constructed by providing all the
specific query elements.
A usage example: |
| com. |
A class representing a filter composed of a combination of other filters. |
| com. |
|
| com. |
|
| com. |
|
| com. |
A class representing a filter based on a single property or ancestor. |
| com. |
|
| com. |
|
| com. |
|
| com. |
|
| com. |
|
| com. |
Base class for all Google Cloud Datastore value types. All values must be associated with a non-null content (except NullValue). All values are immutable (including their content). To edit (a copy) use #toBuilder(). Unsupported value (deprecated or unrecognized) would be represented by RawValue. |
Interfaces
| Interface | Description |
|---|---|
| com. |
An interface to represent a batch of write operations. Any write operation that is applied on a
batch will only be sent to the Datastore upon #submit. A usage example:
|
| com. |
|
| com. |
An interface for Google Cloud Datastore. |
| com. |
A callback for running with a transactional com.google.cloud.datastore.DatastoreReaderWriter. The associated transaction will be committed
after a successful return from the run method. Any propagated exception will cause the
transaction to be rolled-back. |
| com. |
An interface to represent a batch of write operations. All write operation for a batch writer
will be applied to the Datastore in one RPC call.
WARNING: This class maintains an internal state in terms of java.util.LinkedHashMap and java.util.LinkedHashSet which gets updated on every method |
| com. |
An interface for Datastore factories. |
| com. |
An interface to represent Google Cloud Datastore read operations. |
| com. |
An interface that combines both Google Cloud Datastore read and write operations. |
| com. |
An interface to represent Google Cloud Datastore write operations. |
| com. |
The result of a Google Cloud Datastore query submission. When the result is not typed it is
possible to cast it to its appropriate type according to the #getResultClass value.
Results are loaded lazily in batches, where batch size is set by Cloud Datastore. As a result, it
is possible to get a DatastoreException upon hasNext or next calls. |
| com. |
An internal marker interface to represent Query that returns the entity records. |
| com. |
Interface for StructuredQuery builders. |
| com. |
A Google cloud datastore transaction. Similar to Batch any write operation that is
applied on a transaction will only be sent to the Datastore upon #commit. A call to
#rollback will invalidate the transaction and discard the changes. Any read operation
that is done by a transaction will be part of it and therefore a commit is guaranteed to |
| com. |
|
| com. |
A common interface for Value builders. |
Enums
| Enum | Description |
|---|---|
| com. |
|
| com. |
The type of a Datastore property. See Also: Google Cloud Datastore types |
Exceptions
| Exception | Description |
|---|---|
| com. |
Datastore service exception. See Also: Google Cloud Datastore error codes |