Class CloudExecutor.Metadata (6.89.0)

publicstaticclassCloudExecutor.Metadata

Metadata is used to hold and retrieve metadata of tables and columns involved in a transaction.

Inheritance

java.lang.Object > CloudExecutor.Metadata

Constructors

Metadata(List<TableMetadata> metadata)

publicMetadata(List<TableMetadata>metadata)

Init metadata from list of tableMetadata in startTransaction action.

Parameter
NameDescription
metadataList<TableMetadata>

Methods

getColumnType(String tableName, String columnName)

publicTypegetColumnType(StringtableName,StringcolumnName)

Return column type of the given table and column.

Parameters
NameDescription
tableNameString
columnNameString
Returns
TypeDescription
Type
Exceptions
TypeDescription
SpannerException

getKeyColumnTypes(String tableName)

publicList<Type>getKeyColumnTypes(StringtableName)
Parameter
NameDescription
tableNameString
Returns
TypeDescription
List<Type>
Exceptions
TypeDescription
SpannerException