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 Stringcomment()default Distributiondefault Index[]index()name()default Transform[]default SortOrder[]default SupportsPartitionsTable method for working with partitions.default SupportsPartitionStatisticsReturns theSupportsPartitionStatisticsif the table supports partition statisticsdefault SupportsPoliciesdefault SupportsRolesdefault SupportsStatisticsReturns theSupportsStatisticsif 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, anUnsupportedOperationExceptionis thrown.- Returns:
- The partition support table.
- Throws:
UnsupportedOperationException- If the table does not support partition operations.
-
supportsTags
- Returns:
- The
SupportsTagsif the table supports tag operations. - Throws:
UnsupportedOperationException- If the table does not support tag operations.
-
supportsPolicies
- Returns:
- The
SupportsPoliciesif the table supports policy operations. - Throws:
UnsupportedOperationException- If the table does not support policy operations.
-
supportsRoles
- Returns:
- The
SupportsRolesif the table supports role operations. - Throws:
UnsupportedOperationException- If the table does not support role operations.
-
supportsStatistics
Returns theSupportsStatisticsif the table supports statistics operations.- Returns:
- The
SupportsStatisticsfor the table.
-
supportsPartitionStatistics
Returns theSupportsPartitionStatisticsif the table supports partition statistics- Returns:
- The
SupportsPartitionStatisticsfor the table.
-