Uses of Class
com.google.cloud.spanner.Struct
-
Packages that use Struct Package Description com.google.cloud.spanner 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 Struct Modifier and Type Method 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
Struct. getStruct(int columnIndex)
TODO(user) : Consider moving these methods to the StructReader interface once STRUCT-typed columns are supported inResultSet
.Struct
Struct. getStruct(String columnName)
abstract Struct
Value. getStruct()
Returns the value of aSTRUCT
-typed instance.protected abstract Struct
Struct. getStructInternal(int columnIndex)
Struct
ReadContext. readRow(String table, Key key, Iterable<String> columns)
Reads a single row from a database, returningnull
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, returningnull
if the row does not exist.Methods in com.google.cloud.spanner that return types with arguments of type Struct Modifier and Type Method Description abstract List<Struct>
Value. getStructArray()
Returns the value of anARRAY<STRUCT<...>>
-typed instance.List<Struct>
AbstractStructReader. getStructList(int columnIndex)
List<Struct>
AbstractStructReader. getStructList(String columnName)
List<Struct>
ForwardingStructReader. getStructList(int columnIndex)
List<Struct>
ForwardingStructReader. getStructList(String columnName)
List<Struct>
StructReader. getStructList(int columnIndex)
Returns the value of a non-NULL
column with typeType.array(Type.struct(...))
.List<Struct>
StructReader. getStructList(String columnName)
Returns the value of a non-NULL
column with typeType.array(Type.struct(...))
.protected abstract List<Struct>
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>
ReadContext. readRowUsingIndexAsync(String table, String index, Key key, Iterable<String> columns)
Same asReadContext.readRowUsingIndex(String, String, Key, Iterable)
, but is guaranteed to be non-blocking.Methods in com.google.cloud.spanner with parameters of type Struct Modifier and Type Method Description static Value
Value. struct(Struct v)
Returns a non-NULL
{#code STRUCT} value.static Value
Value. struct(Type type, Struct v)
Returns aSTRUCT
value ofType
type.R
ValueBinder. to(Struct value)
Binds a non-NULL
struct value toValue.struct(value)
R
ValueBinder. to(Type type, Struct value)
Binds a nullableStruct
reference with givenType
toValue.struct(type,value
Method parameters in com.google.cloud.spanner with type arguments of type Struct Modifier and Type Method Description static ResultSet
ResultSets. forRows(Type type, Iterable<Struct> rows)
Creates a pre-populatedResultSet
static Value
Value. structArray(Type elementType, Iterable<Struct> v)
Returns anARRAY<STRUCT<...>>
value.R
ValueBinder. toStructArray(Type elementType, Iterable<Struct> values)
Binds toValue.structArray(fieldTypes, values)
-