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 StructStruct.Builder. build()StructForwardingResultSet. getCurrentRowAsStruct()StructResultSet. getCurrentRowAsStruct()Creates an immutable version of the row that the result set is positioned over.StructStruct. getStruct(int columnIndex)TODO(user) : Consider moving these methods to the StructReader interface once STRUCT-typed columns are supported inResultSet.StructStruct. getStruct(String columnName)abstract StructValue. getStruct()Returns the value of aSTRUCT-typed instance.protected abstract StructStruct. getStructInternal(int columnIndex)StructReadContext. readRow(String table, Key key, Iterable<String> columns)Reads a single row from a database, returningnullif the row does not exist.StructReadContext. readRowUsingIndex(String table, String index, Key key, Iterable<String> columns)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 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-NULLcolumn with typeType.array(Type.struct(...))The list returned by this method is lazily constructed.List<Struct>StructReader. getStructList(String columnName)Returns the value of a non-NULLcolumn with typeType.array(Type.struct(...))The list returned by this method is lazily constructed.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 ValueValue. struct(Struct v)Returns a non-NULL{#code STRUCT} value.static ValueValue. struct(Type type, Struct v)Returns aSTRUCTvalue ofTypetype.RValueBinder. to(Struct value)Binds a non-NULLstruct value toValue.struct(value)RValueBinder. to(Type type, Struct value)Binds a nullableStructreference with givenTypetoValue.struct(type,valueMethod parameters in com.google.cloud.spanner with type arguments of type Struct Modifier and Type Method Description static ResultSetResultSets. forRows(Type type, Iterable<Struct> rows)Creates a pre-populatedResultSetstatic ValueValue. structArray(Type elementType, Iterable<Struct> v)Returns anARRAY<STRUCT<...>>value.RValueBinder. toStructArray(Type elementType, Iterable<Struct> values)Binds toValue.structArray(fieldTypes, values)
-