Class Type.StructWithSchema (2.44.0)

public static class Type.StructWithSchema extends ColumnToIndexMapper implements Type, SqlType.Struct

Struct implementation that contains a schema that users can access. This should never be constructed by users. It is only intended to be created directly from Type protobufs.

Inheritance

Object > com.google.cloud.bigtable.data.v2.internal.ColumnToIndexMapper > Type.StructWithSchema

Implements

Type, SqlType.Struct

Static Methods

fromProto(Type.Struct proto)

public static Type.StructWithSchema fromProto(Type.Struct proto)
Parameter
Name Description
proto com.google.bigtable.v2.Type.Struct
Returns
Type Description
Type.StructWithSchema

Constructors

StructWithSchema(List<Type.StructWithSchema.Field> fields)

public StructWithSchema(List<Type.StructWithSchema.Field> fields)
Parameter
Name Description
fields List<Field>

Methods

equals(Object obj)

public boolean equals(Object obj)
Parameter
Name Description
obj Object
Returns
Type Description
boolean
Overrides

getCode()

public SqlType.Code getCode()
Returns
Type Description
SqlType.Code

getFields()

public List<Type.StructWithSchema.Field> getFields()
Returns
Type Description
List<Field>

getType(int fieldIndex)

public SqlType<?> getType(int fieldIndex)
Parameter
Name Description
fieldIndex int
Returns
Type Description
SqlType<?>

getType(String fieldName)

public SqlType<?> getType(String fieldName)
Parameter
Name Description
fieldName String
Returns
Type Description
SqlType<?>

hashCode()

public int hashCode()
Returns
Type Description
int
Overrides

toString()

public String toString()
Returns
Type Description
String
Overrides