Package | Description |
---|---|
com.google.cloud |
Core classes for the
google-cloud library. |
com.google.cloud.datastore |
A client for Cloud Datastore – A highly-scalable NoSQL database for web and mobile applications.
|
com.google.cloud.firestore | |
com.google.cloud.spanner |
A client for Cloud Spanner - A no-compromise relational database service.
|
Modifier and Type | Field and Description |
---|---|
static Timestamp |
Timestamp.MAX_VALUE
The largest legal timestamp ("9999-12-31T23:59:59Z").
|
static Timestamp |
Timestamp.MIN_VALUE
The smallest legal timestamp ("0001-01-01T00:00:00Z").
|
Modifier and Type | Method and Description |
---|---|
static Timestamp |
Timestamp.fromProto(Timestamp proto)
Creates an instance of Timestamp from
com.google.protobuf.Timestamp . |
static Timestamp |
Timestamp.now()
Creates an instance with current time.
|
static Timestamp |
Timestamp.of(Date date)
Creates an instance representing the value of
Date . |
static Timestamp |
Timestamp.of(Timestamp timestamp)
Creates an instance representing the value of
timestamp . |
static Timestamp |
Timestamp.ofTimeMicroseconds(long microseconds)
Creates an instance representing the value of
microseconds . |
static Timestamp |
Timestamp.ofTimeSecondsAndNanos(long seconds,
int nanos)
Creates an instance representing the value of
seconds and nanos since January
1, 1970, 00:00:00 UTC. |
static Timestamp |
Timestamp.parseTimestamp(String timestamp)
Creates a Timestamp instance from the given string.
|
Modifier and Type | Method and Description |
---|---|
int |
Timestamp.compareTo(Timestamp other) |
Modifier and Type | Method and Description |
---|---|
Timestamp |
BaseEntity.getTimestamp(String name)
Returns the property value as a Timestamp.
|
Timestamp |
ProjectionEntity.getTimestamp(String name) |
Modifier and Type | Method and Description |
---|---|
GqlQuery.Builder<V> |
GqlQuery.Builder.addBinding(Timestamp... value)
Sets a new positional binding.
|
ListValue.Builder |
ListValue.Builder.addValue(Timestamp first,
Timestamp... other)
Adds the provided
Timestamp values to the ListValue builder. |
ListValue.Builder |
ListValue.Builder.addValue(Timestamp first,
Timestamp... other)
Adds the provided
Timestamp values to the ListValue builder. |
static StructuredQuery.PropertyFilter |
StructuredQuery.PropertyFilter.eq(String property,
Timestamp value) |
static StructuredQuery.PropertyFilter |
StructuredQuery.PropertyFilter.ge(String property,
Timestamp value) |
static StructuredQuery.PropertyFilter |
StructuredQuery.PropertyFilter.gt(String property,
Timestamp value) |
static StructuredQuery.PropertyFilter |
StructuredQuery.PropertyFilter.le(String property,
Timestamp value) |
static StructuredQuery.PropertyFilter |
StructuredQuery.PropertyFilter.lt(String property,
Timestamp value) |
static TimestampValue.Builder |
TimestampValue.newBuilder(Timestamp timestamp) |
static TimestampValue |
TimestampValue.of(Timestamp timestamp) |
static ListValue |
ListValue.of(Timestamp first,
Timestamp... other)
Creates a
ListValue object given a number of Timestamp values. |
static ListValue |
ListValue.of(Timestamp first,
Timestamp... other)
Creates a
ListValue object given a number of Timestamp values. |
B |
BaseEntity.Builder.set(String name,
Timestamp value)
Sets a property of type
TimestampValue . |
B |
BaseEntity.Builder.set(String name,
Timestamp first,
Timestamp second,
Timestamp... others)
Sets a list property containing elements of type
TimestampValue . |
B |
BaseEntity.Builder.set(String name,
Timestamp first,
Timestamp second,
Timestamp... others)
Sets a list property containing elements of type
TimestampValue . |
GqlQuery.Builder<V> |
GqlQuery.Builder.setBinding(String name,
Timestamp... value)
Sets a new named binding.
|
Constructor and Description |
---|
TimestampValue(Timestamp timestamp) |
Modifier and Type | Method and Description |
---|---|
Timestamp |
DocumentSnapshot.getCreateTime()
Returns the time at which this document was created.
|
Timestamp |
QuerySnapshot.getReadTime()
Returns the time at which this snapshot was read.
|
Timestamp |
DocumentSnapshot.getReadTime()
Returns the time at which this snapshot was read.
|
Timestamp |
DocumentSnapshot.getTimestamp(String field)
Returns the value of the field as a
Timestamp . |
Timestamp |
WriteResult.getUpdateTime()
The update time as exposed by the server.
|
Timestamp |
DocumentSnapshot.getUpdateTime()
Returns the time at which this document was last updated.
|
Modifier and Type | Method and Description |
---|---|
static Precondition |
Precondition.updatedAt(Timestamp updateTime)
Creates a Precondition that enforces that the existing document was written at the specified
time.
|
static QuerySnapshot |
QuerySnapshot.withChanges(Query query,
Timestamp readTime,
com.google.cloud.firestore.DocumentSet documentSet,
List<DocumentChange> documentChanges)
Creates a new QuerySnapshot representing a snapshot of a Query with changed documents.
|
static QuerySnapshot |
QuerySnapshot.withDocuments(Query query,
Timestamp readTime,
List<QueryDocumentSnapshot> documents)
Creates a new QuerySnapshot representing the results of a Query with added documents.
|
Constructor and Description |
---|
DocumentSnapshot(com.google.cloud.firestore.FirestoreImpl firestore,
DocumentReference docRef,
Map<String,com.google.firestore.v1.Value> fields,
Timestamp readTime,
Timestamp updateTime,
Timestamp createTime) |
QueryDocumentSnapshot(com.google.cloud.firestore.FirestoreImpl firestore,
DocumentReference docRef,
Map<String,com.google.firestore.v1.Value> fields,
Timestamp readTime,
Timestamp updateTime,
Timestamp createTime) |
QuerySnapshot(Query query,
Timestamp readTime) |
Modifier and Type | Field and Description |
---|---|
static Timestamp |
Value.COMMIT_TIMESTAMP
Placeholder value to be passed to a mutation to make Cloud Spanner store the commit timestamp
in that column.
|
Modifier and Type | Method and Description |
---|---|
Timestamp |
TransactionRunner.getCommitTimestamp()
Returns the timestamp at which the transaction committed.
|
Timestamp |
TransactionManager.getCommitTimestamp()
Returns the commit timestamp if the transaction committed successfully otherwise it will throw
IllegalStateException . |
Timestamp |
TimestampBound.getMinReadTimestamp()
Returns the minimum timestamp at which reads will be performed.
|
Timestamp |
TimestampBound.getReadTimestamp()
Returns the timestamp at which reads will be performed.
|
Timestamp |
ReadOnlyTransaction.getReadTimestamp()
Returns the timestamp chosen to perform reads and queries in this transaction.
|
abstract Timestamp |
Value.getTimestamp()
Returns the value of a
TIMESTAMP -typed instance. |
Timestamp |
StructReader.getTimestamp(int columnIndex)
Returns the value of a non-
NULL column with type Type.timestamp() . |
Timestamp |
ForwardingStructReader.getTimestamp(int columnIndex) |
Timestamp |
AbstractStructReader.getTimestamp(int columnIndex) |
Timestamp |
StructReader.getTimestamp(String columnName)
Returns the value of a non-
NULL column with type Type.timestamp() . |
Timestamp |
ForwardingStructReader.getTimestamp(String columnName) |
Timestamp |
AbstractStructReader.getTimestamp(String columnName) |
protected abstract Timestamp |
AbstractStructReader.getTimestampInternal(int columnIndex) |
Timestamp |
DatabaseClient.write(Iterable<Mutation> mutations)
Writes the given mutations atomically to the database.
|
Timestamp |
DatabaseClient.writeAtLeastOnce(Iterable<Mutation> mutations)
Writes the given mutations atomically to the database without replay protection.
|
Modifier and Type | Method and Description |
---|---|
abstract List<Timestamp> |
Value.getTimestampArray()
Returns the value of an
ARRAY<TIMESTAMP> -typed instance. |
List<Timestamp> |
StructReader.getTimestampList(int columnIndex)
Returns the value of a non-
NULL column with type Type.array(Type.timestamp()) . |
List<Timestamp> |
ForwardingStructReader.getTimestampList(int columnIndex) |
List<Timestamp> |
AbstractStructReader.getTimestampList(int columnIndex) |
List<Timestamp> |
StructReader.getTimestampList(String columnName)
Returns the value of a non-
NULL column with type Type.array(Type.timestamp()) . |
List<Timestamp> |
ForwardingStructReader.getTimestampList(String columnName) |
List<Timestamp> |
AbstractStructReader.getTimestampList(String columnName) |
protected abstract List<Timestamp> |
AbstractStructReader.getTimestampListInternal(int columnIndex) |
Modifier and Type | Method and Description |
---|---|
Key.Builder |
Key.Builder.append(Timestamp value)
Appends a
TIMESTAMP value to the key |
static TimestampBound |
TimestampBound.ofMinReadTimestamp(Timestamp timestamp)
Returns a timestamp bound that will perform reads and queries at a timestamp chosen to be at
least
timestamp . |
static TimestampBound |
TimestampBound.ofReadTimestamp(Timestamp timestamp)
Returns a timestamp bound that will perform reads and queries at the given timestamp.
|
static Value |
Value.timestamp(Timestamp v)
Returns a
TIMESTAMP value. |
R |
ValueBinder.to(Timestamp value)
Binds to
Value.timestamp(value) |
Modifier and Type | Method and Description |
---|---|
static Value |
Value.timestampArray(Iterable<Timestamp> v)
Returns an
ARRAY<TIMESTAMP> value. |
R |
ValueBinder.toTimestampArray(Iterable<Timestamp> values)
Binds to
Value.timestampArray(values) |
Copyright © 2019 Google LLC. All rights reserved.