Class CloudExecutor.Metadata (6.71.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
Name Description
metadata List<TableMetadata>

Methods

getColumnType(String tableName, String columnName)

public Type getColumnType(String tableName, String columnName)

Return column type of the given table and column.

Parameters
Name Description
tableName String
columnName String
Returns
Type Description
Type
Exceptions
Type Description
SpannerException

getKeyColumnTypes(String tableName)

public List<Type> getKeyColumnTypes(String tableName)
Parameter
Name Description
tableName String
Returns
Type Description
List<Type>
Exceptions
Type Description
SpannerException