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 StructValue.getStruct()Returns the value of aSTRUCT-typed instance.protected abstract StructStruct.getStructInternal(int columnIndex) Reads a single row from a database, returningnullif the row does not exist.Reads a single row from a database using an index, returningnullif 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 ValueReturns a non-NULL{#code STRUCT} value.static ValueReturns aSTRUCTvalue ofTypetype.Binds a non-NULLstruct value toValue.struct(value)Binds a nullableStructreference with givenTypetoValue.struct(type,valueMethod parameters in com.google.cloud.spanner with type arguments of type StructModifier and TypeMethodDescriptionstatic ResultSetCreates a pre-populatedResultSetstatic ValueValue.structArray(Type elementType, Iterable<Struct> v) Returns anARRAY<STRUCT<...>>value.ValueBinder.toStructArray(Type elementType, Iterable<Struct> values) Binds toValue.structArray(fieldTypes, values)