public interface Catalog
Modifier and Type | Method and Description |
---|---|
default Table |
createTable(TableIdentifier identifier,
Schema schema)
Create an unpartitioned table.
|
default Table |
createTable(TableIdentifier identifier,
Schema schema,
PartitionSpec spec)
Create a table.
|
default Table |
createTable(TableIdentifier identifier,
Schema schema,
PartitionSpec spec,
java.util.Map<java.lang.String,java.lang.String> properties)
Create a table.
|
Table |
createTable(TableIdentifier identifier,
Schema schema,
PartitionSpec spec,
java.lang.String location,
java.util.Map<java.lang.String,java.lang.String> properties)
Create a table.
|
boolean |
dropTable(TableIdentifier identifier)
Drop a table.
|
Table |
loadTable(TableIdentifier identifier)
Load a table.
|
void |
renameTable(TableIdentifier from,
TableIdentifier to)
Rename a table.
|
default boolean |
tableExists(TableIdentifier identifier)
Check whether table exists.
|
Table createTable(TableIdentifier identifier, Schema schema, PartitionSpec spec, java.lang.String location, java.util.Map<java.lang.String,java.lang.String> properties)
identifier
- a table identifierschema
- a schemaspec
- a partition speclocation
- a location for the table; leave null if unspecifiedproperties
- a string map of table propertiesAlreadyExistsException
- if the table already existsdefault Table createTable(TableIdentifier identifier, Schema schema, PartitionSpec spec, java.util.Map<java.lang.String,java.lang.String> properties)
identifier
- a table identifierschema
- a schemaspec
- a partition specproperties
- a string map of table propertiesAlreadyExistsException
- if the table already existsdefault Table createTable(TableIdentifier identifier, Schema schema, PartitionSpec spec)
identifier
- a table identifierschema
- a schemaspec
- a partition specAlreadyExistsException
- if the table already existsdefault Table createTable(TableIdentifier identifier, Schema schema)
identifier
- a table identifierschema
- a schemaAlreadyExistsException
- if the table already existsdefault boolean tableExists(TableIdentifier identifier)
identifier
- a table identifierboolean dropTable(TableIdentifier identifier)
identifier
- a table identifiervoid renameTable(TableIdentifier from, TableIdentifier to)
from
- identifier of the table to renameto
- new table nameNoSuchTableException
- if the table does not existTable loadTable(TableIdentifier identifier)
identifier
- a table identifierTable
implementation referred by tableIdentifier
NoSuchTableException
- if the table does not exist