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