public static interface SqlType.Struct extends SqlType<Struct>
Represents a struct type in SQL. A struct is an ordered collection of named and type fields.
Implements
com.google.cloud.bigtable.data.v2.models.sql.SqlType<com.google.cloud.bigtable.data.v2.models.sql.Struct>Methods
getColumnIndex(String fieldName)
public abstract int getColumnIndex(String fieldName)
Parameter | |
---|---|
Name | Description |
fieldName |
String name of the field |
Returns | |
---|---|
Type | Description |
int |
the field index of the field with the given name |
getFields()
public abstract List<? extends SqlType.Struct.Field> getFields()
Returns | |
---|---|
Type | Description |
List<? extends com.google.cloud.bigtable.data.v2.models.sql.SqlType.Struct.Field> |
the ordered list of Fields for the struct |
getType(int fieldIndex)
public abstract SqlType<?> getType(int fieldIndex)
Parameter | |
---|---|
Name | Description |
fieldIndex |
int index of the field |
Returns | |
---|---|
Type | Description |
SqlType<?> |
the SqlType of the field at the given index |
getType(String fieldName)
public abstract SqlType<?> getType(String fieldName)
Parameter | |
---|---|
Name | Description |
fieldName |
String name of the field |
Returns | |
---|---|
Type | Description |
SqlType<?> |
the SqlType of the field with the given name |