Package | Description |
---|---|
com.google.cloud.spanner |
A client for Cloud Spanner - A no-compromise relational database service.
|
Modifier and Type | Method and Description |
---|---|
Struct |
Struct.Builder.build() |
Struct |
ForwardingResultSet.getCurrentRowAsStruct() |
Struct |
ResultSet.getCurrentRowAsStruct()
Creates an immutable version of the row that the result set is positioned over.
|
abstract Struct |
Value.getStruct()
Returns the value of a
STRUCT -typed instance. |
Struct |
Struct.getStruct(int columnIndex)
TODO(user) : Consider moving these methods to the StructReader interface once STRUCT-typed
columns are supported in
ResultSet . |
Struct |
Struct.getStruct(String columnName) |
protected abstract Struct |
Struct.getStructInternal(int columnIndex) |
Struct |
ReadContext.readRow(String table,
Key key,
Iterable<String> columns)
Reads a single row from a database, returning
null if the row does not exist. |
Struct |
ReadContext.readRowUsingIndex(String table,
String index,
Key key,
Iterable<String> columns)
Reads a single row from a database using an index, returning
null if the row does not
exist. |
Modifier and Type | Method and Description |
---|---|
List<Struct> |
AbstractStructReader.getStructList(int columnIndex) |
List<Struct> |
ForwardingStructReader.getStructList(int columnIndex) |
List<Struct> |
StructReader.getStructList(int columnIndex)
Returns the value of a non-
NULL column with type Type.array(Type.struct(...)) . |
List<Struct> |
AbstractStructReader.getStructList(String columnName) |
List<Struct> |
ForwardingStructReader.getStructList(String columnName) |
List<Struct> |
StructReader.getStructList(String columnName)
Returns the value of a non-
NULL column with type Type.array(Type.struct(...)) . |
protected abstract List<Struct> |
AbstractStructReader.getStructListInternal(int columnIndex) |
Modifier and Type | Method and Description |
---|---|
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. |
R |
ValueBinder.to(Struct value)
Binds a non-
NULL struct value to Value.struct(value) |
R |
ValueBinder.to(Type type,
Struct value)
Binds a nullable
Struct reference with given Type to Value.struct(type,value |
Modifier and Type | Method and Description |
---|---|
static ResultSet |
ResultSets.forRows(Type type,
Iterable<Struct> rows)
Creates a pre-populated
ResultSet |
static Value |
Value.structArray(Type elementType,
Iterable<Struct> v)
Returns an
ARRAY<STRUCT<...>> value. |
R |
ValueBinder.toStructArray(Type elementType,
Iterable<Struct> values)
Binds to
Value.structArray(fieldTypes, values) |
Copyright © 2019 Google LLC. All rights reserved.