@NotThreadSafe public class Table extends Object
Modifier and Type | Method and Description |
---|---|
static Table |
create(Database database,
Table.AddTableEntry entry) |
static Table |
create(Database database,
UdbTable udbTable) |
String |
getName() |
Partition |
getPartition(String spec) |
List<Partition> |
getPartitions() |
Schema |
getSchema() |
List<ColumnStatisticsInfo> |
getStatistics() |
List<TransformPlan> |
getTransformPlans(TransformDefinition definition)
Returns a list of plans to transform the table, according to the transformation definition.
|
boolean |
sync(UdbTable udbTable)
Sync the table with a udbtable.
|
Table.AddTableEntry |
toJournalProto() |
TableInfo |
toProto() |
public boolean sync(UdbTable udbTable)
udbTable
- udb table to be syncedpublic static Table create(Database database, UdbTable udbTable) throws IOException
database
- the databaseudbTable
- the udb tableIOException
public static Table create(Database database, Table.AddTableEntry entry)
database
- the databaseentry
- the add table entrypublic String getName()
public Partition getPartition(String spec)
spec
- the partition specpublic Schema getSchema()
public List<ColumnStatisticsInfo> getStatistics()
public List<TransformPlan> getTransformPlans(TransformDefinition definition) throws IOException
definition
- the transformation definitionTransformPlan
to transform this tableIOException
public TableInfo toProto()
public Table.AddTableEntry toJournalProto()
Copyright © 2023. All Rights Reserved.