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.
|
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> |
StructReader.getStructList(int columnIndex)
Returns the value of a non-
NULL column with type Type.array(Type.struct(...)) . |
List<Struct> |
AbstractStructReader.getStructList(int columnIndex) |
List<Struct> |
ForwardingStructReader.getStructList(int columnIndex) |
List<Struct> |
StructReader.getStructList(String columnName)
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) |
protected abstract List<Struct> |
AbstractStructReader.getStructListInternal(int columnIndex) |
Modifier and Type | Method and Description |
---|---|
Struct.Builder |
Struct.Builder.add(String fieldName,
Iterable<Type.StructField> fieldTypes,
Iterable<Struct> elements)
Adds a new field of type
ARRAY<STRUCT<fieldTypes>> named fieldName with the
given element values. |
static ResultSet |
ResultSets.forRows(Type type,
Iterable<Struct> rows)
Creates a pre-populated
ResultSet |
Copyright © 2018 Google. All rights reserved.