Class CloudExecutor.Metadata
- java.lang.Object
-
- com.google.cloud.executor.spanner.CloudExecutor.Metadata
-
- Enclosing class:
- CloudExecutor
public static class CloudExecutor.Metadata extends Object
Metadata is used to hold and retrieve metadata of tables and columns involved in a transaction.
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Type
getColumnType(String tableName, String columnName)
Return column type of the given table and column.List<Type>
getKeyColumnTypes(String tableName)
-
-
-
Constructor Detail
-
Metadata
public Metadata(List<com.google.spanner.executor.v1.TableMetadata> metadata)
Init metadata from list of tableMetadata in startTransaction action.
-
-
Method Detail
-
getKeyColumnTypes
public List<Type> getKeyColumnTypes(String tableName) throws SpannerException
- Throws:
SpannerException
-
getColumnType
public Type getColumnType(String tableName, String columnName) throws SpannerException
Return column type of the given table and column.- Throws:
SpannerException
-
-