Package | Description |
---|---|
com.google.cloud.spanner |
A client for Cloud Spanner - A no-compromise relational database service.
|
Modifier and Type | Method and Description |
---|---|
static Value |
Value.bool(boolean v)
Returns a
BOOL value. |
static Value |
Value.bool(Boolean v)
Returns a
BOOL value. |
static Value |
Value.boolArray(boolean[] v)
Returns an
ARRAY<BOOL> value. |
static Value |
Value.boolArray(boolean[] v,
int pos,
int length)
Returns an
ARRAY<BOOL> value that takes its elements from a region of an array. |
static Value |
Value.boolArray(Iterable<Boolean> v)
Returns an
ARRAY<BOOL> value. |
static Value |
Value.bytes(ByteArray v)
Returns a
BYTES value. |
static Value |
Value.bytesArray(Iterable<ByteArray> v)
Returns an
ARRAY<BYTES> value. |
static Value |
Value.date(Date v)
Returns a
DATE value. |
static Value |
Value.dateArray(Iterable<Date> v)
Returns an
ARRAY<DATE> value. |
static Value |
Value.float64(double v)
Returns a
FLOAT64 value. |
static Value |
Value.float64(Double v)
Returns a
FLOAT64 value. |
static Value |
Value.float64Array(double[] v)
Returns an
ARRAY<FLOAT64> value. |
static Value |
Value.float64Array(double[] v,
int pos,
int length)
Returns an
ARRAY<FLOAT64> value that takes its elements from a region of an array. |
static Value |
Value.float64Array(Iterable<Double> v)
Returns an
ARRAY<FLOAT64> value. |
static Value |
Value.int64(long v)
Returns an
INT64 value. |
static Value |
Value.int64(Long v)
Returns an
INT64 value. |
static Value |
Value.int64Array(Iterable<Long> v)
Returns an
ARRAY<INT64> value. |
static Value |
Value.int64Array(long[] v)
Returns an
ARRAY<INT64> value. |
static Value |
Value.int64Array(long[] v,
int pos,
int length)
Returns an
ARRAY<INT64> value that takes its elements from a region of an array. |
static Value |
Value.string(String v)
Returns a
STRING value. |
static Value |
Value.stringArray(Iterable<String> v)
Returns an
ARRAY<STRING> value. |
static Value |
Value.struct(Struct v)
Returns a non-
NULL {#code STRUCT} value. |
static Value |
Value.struct(Type type,
Struct v)
Returns a
STRUCT value of Type type. |
static Value |
Value.structArray(Type elementType,
Iterable<Struct> v)
Returns an
ARRAY<STRUCT<...>> value. |
static Value |
Value.timestamp(Timestamp v)
Returns a
TIMESTAMP value. |
static Value |
Value.timestampArray(Iterable<Timestamp> v)
Returns an
ARRAY<TIMESTAMP> value. |
Modifier and Type | Method and Description |
---|---|
Map<String,Value> |
Mutation.asMap()
For all types except
Mutation.Op.DELETE , constructs a map from column name to value. |
Map<String,Value> |
Statement.getParameters()
Returns the parameters bound to this
Statement . |
Iterable<Value> |
Mutation.getValues()
For all types except
Mutation.Op.DELETE , returns the values that this mutation will write. |
Modifier and Type | Method and Description |
---|---|
Struct.Builder |
Struct.Builder.add(Value value)
Adds a new unnamed field
fieldName with the given value. |
R |
ValueBinder.to(Value value)
Binds a
Value |
Copyright © 2019 Google LLC. All rights reserved.