Package | Description |
---|---|
com.google.cloud.spanner |
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 |
---|---|
Timestamp |
TransactionRunner.getCommitTimestamp()
Returns the timestamp at which the transaction committed.
|
Timestamp |
TimestampBound.getMinReadTimestamp()
Returns the minimum timestamp at which reads will be performed.
|
Timestamp |
ReadOnlyTransaction.getReadTimestamp()
Returns the timestamp chosen to perform reads and queries in this transaction.
|
Timestamp |
TimestampBound.getReadTimestamp()
Returns the timestamp at which reads will be performed.
|
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) |
static Timestamp |
Timestamp.of(Timestamp timestamp)
Creates an instance representing the value of
timestamp . |
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.
|
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 |
int |
Timestamp.compareTo(Timestamp other) |
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 © 2017 Google. All rights reserved.