Class YdbSchemaOperations
java.lang.Object
tech.ydb.yoj.repository.ydb.client.YdbSchemaOperations
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classstatic classstatic classstatic class -
Constructor Summary
ConstructorsConstructorDescriptionYdbSchemaOperations(String tablespace, @NonNull SessionManager sessionManager, tech.ydb.core.grpc.GrpcTransport transport) -
Method Summary
Modifier and TypeMethodDescriptionprotected voidvoidcreateTable(String name, List<Schema.JavaField> columns, List<Schema.JavaField> primaryKeys, YdbTableHint hint, List<Schema.Index> globalIndexes, Schema.TtlModifier ttlModifier, List<Schema.Changefeed> changefeeds) voiddescribeTable(String tableName) describeTable(String name, List<Schema.JavaField> columns, List<Schema.JavaField> primaryKeys, List<Schema.Index> indexes, Schema.TtlModifier ttlModifier) voidgetTableNames(boolean recursive) getTables(boolean recursive) protected booleanbooleanbooleanisSnapshotDirectory(String name) protected voidvoidremoveDirectoryRecursive(String directory) voidvoidsetTablespace(String tablespace) voidboolean
-
Constructor Details
-
YdbSchemaOperations
public YdbSchemaOperations(String tablespace, @NonNull @NonNull SessionManager sessionManager, tech.ydb.core.grpc.GrpcTransport transport)
-
-
Method Details
-
setTablespace
-
createTablespace
public void createTablespace() -
tablespaceExists
public boolean tablespaceExists() -
createTable
public void createTable(String name, List<Schema.JavaField> columns, List<Schema.JavaField> primaryKeys, YdbTableHint hint, List<Schema.Index> globalIndexes, Schema.TtlModifier ttlModifier, List<Schema.Changefeed> changefeeds) -
describeTable
public YdbSchemaOperations.Table describeTable(String name, List<Schema.JavaField> columns, List<Schema.JavaField> primaryKeys, List<Schema.Index> indexes, Schema.TtlModifier ttlModifier) -
hasTable
-
dropTable
-
getTableNames
-
getTableNames
-
getDirectoryNames
-
getTables
-
getTables
-
getTables
-
getTables
-
describeTable
-
removeTablespace
public void removeTablespace() -
removeDirectoryRecursive
-
snapshot
- Throws:
SnapshotCreateException
-
isSnapshotDirectory
-
copyTable
-
mkdirs
-
hasPath
-