Package org.apache.gravitino.rel
Interface Table
- All Superinterfaces:
Auditable
- All Known Implementing Classes:
TableDTO
An interface representing a table in a
Namespace
. It defines the basic properties of a
table. A catalog implementation with TableCatalog
should implement this interface.-
Method Summary
Modifier and TypeMethodDescriptionColumn[]
columns()
default String
comment()
default Distribution
default Index[]
index()
name()
default Transform[]
default SortOrder[]
default SupportsPartitions
Table method for working with partitions.default SupportsPartitionStatistics
Returns theSupportsPartitionStatistics
if the table supports partition statisticsdefault SupportsPolicies
default SupportsRoles
default SupportsStatistics
Returns theSupportsStatistics
if the table supports statistics operations.default SupportsTags
-
Method Details
-
name
String name()- Returns:
- Name of the table.
-
columns
Column[] columns()- Returns:
- The columns of the table.
-
partitioning
- Returns:
- The physical partitioning of the table.
-
sortOrder
- Returns:
- The sort order of the table. If no sort order is specified, an empty array is returned.
-
distribution
- Returns:
- The bucketing of the table. If no bucketing is specified, Distribution.NONE is returned.
-
index
- Returns:
- The indexes of the table. If no indexes are specified, Indexes.EMPTY_INDEXES is returned.
-
comment
- Returns:
- The comment of the table. Null is returned if no comment is set.
-
properties
- Returns:
- The properties of the table. Empty map is returned if no properties are set.
-
supportPartitions
Table method for working with partitions. If the table does not support partition operations, anUnsupportedOperationException
is thrown.- Returns:
- The partition support table.
- Throws:
UnsupportedOperationException
- If the table does not support partition operations.
-
supportsTags
- Returns:
- The
SupportsTags
if the table supports tag operations. - Throws:
UnsupportedOperationException
- If the table does not support tag operations.
-
supportsPolicies
- Returns:
- The
SupportsPolicies
if the table supports policy operations. - Throws:
UnsupportedOperationException
- If the table does not support policy operations.
-
supportsRoles
- Returns:
- The
SupportsRoles
if the table supports role operations. - Throws:
UnsupportedOperationException
- If the table does not support role operations.
-
supportsStatistics
Returns theSupportsStatistics
if the table supports statistics operations.- Returns:
- The
SupportsStatistics
for the table.
-
supportsPartitionStatistics
Returns theSupportsPartitionStatistics
if the table supports partition statistics- Returns:
- The
SupportsPartitionStatistics
for the table.
-