Class ReadOption (2.10.1)

public abstract class ReadOption implements Serializable

Specifies options for read operations in Datastore, namely getting/fetching entities and running queries.

Inheritance

java.lang.Object > ReadOption

Implements

Serializable

Static Methods

eventualConsistency()

public static ReadOption.EventualConsistency eventualConsistency()

Returns a ReadOption that specifies eventual consistency, allowing Datastore to return stale results from gets, fetches, and ancestor queries.

Returns
TypeDescription
ReadOption.EventualConsistency

readTime(Timestamp time)

public static ReadOption.ReadTime readTime(Timestamp time)

Returns a ReadOption that specifies read time, allowing Datastore to return results from lookups and queries at a particular timestamp. This feature is currently in private preview.

Parameter
NameDescription
timecom.google.cloud.Timestamp
Returns
TypeDescription
ReadOption.ReadTime