Class CloudExecutor.Metadata (6.57.0)

public static class CloudExecutor.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)

public Metadata(List<TableMetadata> metadata)

Init metadata from list of tableMetadata in startTransaction action.

Parameter
NameDescription
metadataList<TableMetadata>

Methods

getColumnType(String tableName, String columnName)

public Type getColumnType(String tableName, String columnName)

Return column type of the given table and column.

Parameters
NameDescription
tableNameString
columnNameString
Returns
TypeDescription
Type
Exceptions
TypeDescription
SpannerException

getKeyColumnTypes(String tableName)

public List<Type> getKeyColumnTypes(String tableName)
Parameter
NameDescription
tableNameString
Returns
TypeDescription
List<Type>
Exceptions
TypeDescription
SpannerException