Package | Description |
---|---|
com.google.cloud.datastore |
A client for Cloud Datastore – A highly-scalable NoSQL database for web and mobile applications.
|
Modifier and Type | Field and Description |
---|---|
static Query.ResultType<Key> |
Query.ResultType.KEY |
Modifier and Type | Method and Description |
---|---|
Key |
Datastore.allocateId(IncompleteKey key)
Allocate a unique id for the given key.
|
Key |
Key.Builder.build() |
static Key |
Key.fromUrlSafe(String urlSafe)
Create a
Key given its URL safe encoded form. |
Key |
BaseEntity.getKey(String name)
Returns the property value as a Key.
|
Key |
IncompleteKey.getParent()
Returns the key's parent.
|
Key |
KeyFactory.newKey(long id) |
Key |
KeyFactory.newKey(String name) |
Modifier and Type | Method and Description |
---|---|
List<Key> |
Datastore.allocateId(IncompleteKey... keys)
Returns a list of keys using the allocated ids ordered by the input.
|
List<Key> |
Batch.Response.getGeneratedKeys()
Returns a list of keys generated by a batch.
|
List<Key> |
Transaction.Response.getGeneratedKeys()
Returns a list of keys generated by a transaction.
|
protected Map<Key,FullEntity<Key>> |
BaseDatastoreBatchWriter.toAdd() |
protected Map<Key,FullEntity<Key>> |
BaseDatastoreBatchWriter.toAdd() |
protected Set<Key> |
BaseDatastoreBatchWriter.toDelete() |
protected Map<Key,FullEntity<Key>> |
BaseDatastoreBatchWriter.toPut() |
protected Map<Key,FullEntity<Key>> |
BaseDatastoreBatchWriter.toPut() |
protected Map<Key,FullEntity<Key>> |
BaseDatastoreBatchWriter.toUpdate() |
protected Map<Key,FullEntity<Key>> |
BaseDatastoreBatchWriter.toUpdate() |
Modifier and Type | Method and Description |
---|---|
GqlQuery.Builder<V> |
GqlQuery.Builder.addBinding(Key... value)
Sets a new positional binding.
|
ListValue.Builder |
ListValue.Builder.addValue(Key first,
Key... other)
Adds the provided
Key values to the ListValue builder. |
ListValue.Builder |
ListValue.Builder.addValue(Key first,
Key... other)
Adds the provided
Key values to the ListValue builder. |
void |
Datastore.delete(Key... keys)
A datastore delete operation.
|
void |
DatastoreWriter.delete(Key... keys)
A datastore delete operation.
|
void |
BaseDatastoreBatchWriter.delete(Key... keys) |
void |
DatastoreBatchWriter.delete(Key... keys)
A datastore delete operation.
|
void |
Transaction.delete(Key... keys)
A datastore delete operation.
|
static StructuredQuery.PropertyFilter |
StructuredQuery.PropertyFilter.eq(String property,
Key value) |
List<Entity> |
Transaction.fetch(Key... keys)
Returns a list with a value for each given key (ordered by input).
|
List<Entity> |
DatastoreReader.fetch(Key... keys)
Returns a list with a value for each given key (ordered by input).
|
static StructuredQuery.PropertyFilter |
StructuredQuery.PropertyFilter.ge(String property,
Key value) |
Iterator<Entity> |
Transaction.get(Key... key)
|
Iterator<Entity> |
DatastoreReader.get(Key... keys)
|
Entity |
Transaction.get(Key key)
|
Entity |
DatastoreReader.get(Key key)
|
Entity |
Datastore.get(Key key,
ReadOption... options)
|
static StructuredQuery.PropertyFilter |
StructuredQuery.PropertyFilter.gt(String property,
Key value) |
static StructuredQuery.PropertyFilter |
StructuredQuery.PropertyFilter.hasAncestor(Key key) |
static StructuredQuery.PropertyFilter |
StructuredQuery.PropertyFilter.le(String property,
Key value) |
static StructuredQuery.PropertyFilter |
StructuredQuery.PropertyFilter.lt(String property,
Key value) |
static KeyValue.Builder |
KeyValue.newBuilder(Key key) |
static Key.Builder |
Key.newBuilder(Key copyFrom) |
static Entity.Builder |
Entity.newBuilder(Key key) |
static Entity.Builder |
Entity.newBuilder(Key key,
FullEntity<?> copyFrom) |
static IncompleteKey.Builder |
IncompleteKey.newBuilder(Key parent,
String kind) |
static Key.Builder |
Key.newBuilder(Key parent,
String kind,
long id) |
static Key.Builder |
Key.newBuilder(Key parent,
String kind,
String name) |
static KeyValue |
KeyValue.of(Key key) |
static ListValue |
ListValue.of(Key first,
Key... other)
Creates a
ListValue object given a number of Key values. |
static ListValue |
ListValue.of(Key first,
Key... other)
Creates a
ListValue object given a number of Key values. |
B |
BaseEntity.Builder.set(String name,
Key value)
Sets a property of type
KeyValue . |
B |
BaseEntity.Builder.set(String name,
Key first,
Key second,
Key... others)
Sets a list property containing elements of type
KeyValue . |
B |
BaseEntity.Builder.set(String name,
Key first,
Key second,
Key... others)
Sets a list property containing elements of type
KeyValue . |
GqlQuery.Builder<V> |
GqlQuery.Builder.setBinding(String name,
Key... value)
Sets a new named binding.
|
Entity.Builder |
Entity.Builder.setKey(Key key) |
Modifier and Type | Method and Description |
---|---|
List<Entity> |
Datastore.fetch(Iterable<Key> keys,
ReadOption... options)
Returns a list with a value for each given key (ordered by input).
|
Iterator<Entity> |
Datastore.get(Iterable<Key> keys,
ReadOption... options)
|
Constructor and Description |
---|
KeyValue(Key key) |
Copyright © 2019 Google LLC. All rights reserved.