Interface Table
- All Known Implementing Classes:
SimpleCatalog.SimpleTable
public interface Table
Represents a table in a database schema.
This is a standalone version that can be used independently of Apache Calcite.
-
Method Summary
Modifier and TypeMethodDescriptionReturns a column by name, or null if not found.Returns all columns in this table, in ordinal order.Returns the comment or description of the table.getName()Returns the name of the table.Returns the primary key columns.Returns the schema that this table belongs to.Returns the type of the table (e.g., "TABLE", "VIEW", "SYSTEM TABLE").
-
Method Details
-
getName
Returns the name of the table.- Returns:
- Table name
-
getTableType
Returns the type of the table (e.g., "TABLE", "VIEW", "SYSTEM TABLE").- Returns:
- Table type
-
getSchema
Returns the schema that this table belongs to.- Returns:
- Schema
-
getColumns
List<Column> getColumns()Returns all columns in this table, in ordinal order.- Returns:
- List of columns
-
getColumn
Returns a column by name, or null if not found.- Parameters:
columnName- Column name (case-sensitive)- Returns:
- Column, or null
-
getComment
Returns the comment or description of the table.- Returns:
- Table comment, or null if none
-
getPrimaryKeys
Returns the primary key columns.- Returns:
- List of primary key column names
-