Uses of Class
com.google.cloud.spanner.Struct
Packages that use Struct
Package
Description
A client for Cloud Spanner - A no-compromise relational database service.
-
Uses of Struct in com.google.cloud.spanner
Methods in com.google.cloud.spanner that return StructModifier and TypeMethodDescriptionStruct.Builder.build()
ForwardingResultSet.getCurrentRowAsStruct()
ResultSet.getCurrentRowAsStruct()
Creates an immutable version of the row that the result set is positioned over.Struct.getStruct
(int columnIndex) TODO(user) : Consider moving these methods to the StructReader interface once STRUCT-typed columns are supported inResultSet
.abstract Struct
Value.getStruct()
Returns the value of aSTRUCT
-typed instance.protected abstract Struct
Struct.getStructInternal
(int columnIndex) Reads a single row from a database, returningnull
if the row does not exist.Reads a single row from a database using an index, returningnull
if the row does not exist.Methods in com.google.cloud.spanner that return types with arguments of type StructModifier and TypeMethodDescriptionValue.getStructArray()
Returns the value of anARRAY<STRUCT<...>>
-typed instance.AbstractStructReader.getStructList
(int columnIndex) AbstractStructReader.getStructList
(String columnName) ForwardingStructReader.getStructList
(int columnIndex) ForwardingStructReader.getStructList
(String columnName) StructReader.getStructList
(int columnIndex) StructReader.getStructList
(String columnName) AbstractStructReader.getStructListInternal
(int columnIndex) com.google.api.core.ApiFuture<Struct>
ReadContext.readRowAsync
(String table, Key key, Iterable<String> columns) Same asReadContext.readRow(String, Key, Iterable)
, but is guaranteed to be non-blocking.com.google.api.core.ApiFuture<Struct>
Same asReadContext.readRowUsingIndex(String, String, Key, Iterable)
, but is guaranteed to be non-blocking.Methods in com.google.cloud.spanner with parameters of type StructModifier and TypeMethodDescriptionstatic Value
Returns a non-NULL
{#code STRUCT} value.static Value
Returns aSTRUCT
value ofType
type.Binds a non-NULL
struct value toValue.struct(value)
Binds a nullableStruct
reference with givenType
toValue.struct(type,value
Method parameters in com.google.cloud.spanner with type arguments of type StructModifier and TypeMethodDescriptionstatic ResultSet
Creates a pre-populatedResultSet
static Value
Value.structArray
(Type elementType, Iterable<Struct> v) Returns anARRAY<STRUCT<...>>
value.ValueBinder.toStructArray
(Type elementType, Iterable<Struct> values) Binds toValue.structArray(fieldTypes, values)