Enum Schema.TableType
- All Implemented Interfaces:
Serializable
,Comparable<Schema.TableType>
,Constable
- Enclosing interface:
Schema
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantDescriptionAn accel-only table.An alias.An auxiliary table.Foreign table.A global temporary table.A global temporary table.A hierarchy table.Index table.An inoperative view.Join table.A table that is only visible to one connection.A materialized query table.Materialized view.A nickname.Table type not known to Calcite.Sequence table.A structure, similar to a view, that is the basis for auto-generated materializations.Stream.A synonym.System index.A table maintained by the system.System TOAST index.System TOAST table.System view.A regular table.A temporal table.Temporary index.Temporary sequence.Temporary table.Temporary view.Type.A typed table.A typed view.A relation whose contents are calculated by evaluating a SQL expression. -
Field Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic Schema.TableType
Returns the enum constant of this type with the specified name.static Schema.TableType[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
Enum Constant Details
-
TABLE
A regular table.Used by DB2, MySQL, PostgreSQL and others.
-
VIEW
A relation whose contents are calculated by evaluating a SQL expression.Used by DB2, PostgreSQL and others.
-
FOREIGN_TABLE
Foreign table.Used by PostgreSQL.
-
MATERIALIZED_VIEW
Materialized view.Used by PostgreSQL.
-
INDEX
Index table.Used by Apache Phoenix, PostgreSQL.
-
JOIN
Join table.Used by Apache Phoenix.
-
SEQUENCE
Sequence table.Used by Apache Phoenix, Oracle, PostgreSQL and others. In Phoenix, must have a single BIGINT column called "$seq".
-
STAR
A structure, similar to a view, that is the basis for auto-generated materializations. It is either a single table or a collection of tables that are joined via many-to-one relationships from a central hub table. It is not available for queries, but is just used as an intermediate structure during query planning. -
STREAM
Stream. -
TYPE
Type.Used by PostgreSQL.
-
SYSTEM_TABLE
A table maintained by the system. Data dictionary tables, such as the "TABLES" and "COLUMNS" table in the "metamodel" schema, examples of system tables.Specified by the JDBC standard and used by DB2, MySQL, Oracle, PostgreSQL and others.
-
SYSTEM_VIEW
System view.Used by PostgreSQL, MySQL.
-
SYSTEM_INDEX
System index.Used by PostgreSQL.
-
SYSTEM_TOAST_INDEX
System TOAST index.Used by PostgreSQL.
-
SYSTEM_TOAST_TABLE
System TOAST table.Used by PostgreSQL.
-
TEMPORARY_INDEX
Temporary index.Used by PostgreSQL.
-
TEMPORARY_SEQUENCE
Temporary sequence.Used by PostgreSQL.
-
TEMPORARY_TABLE
Temporary table.Used by PostgreSQL.
-
TEMPORARY_VIEW
Temporary view.Used by PostgreSQL.
-
LOCAL_TEMPORARY
A table that is only visible to one connection.Specified by the JDBC standard and used by PostgreSQL, MySQL.
-
SYNONYM
A synonym.Used by DB2, Oracle.
-
ALIAS
An alias.Specified by the JDBC standard.
-
GLOBAL_TEMPORARY
A global temporary table.Specified by the JDBC standard.
-
ACCEL_ONLY_TABLE
An accel-only table.Used by DB2.
-
AUXILIARY_TABLE
An auxiliary table.Used by DB2.
-
GLOBAL_TEMPORARY_TABLE
A global temporary table.Used by DB2.
-
HIERARCHY_TABLE
A hierarchy table.Used by DB2.
-
INOPERATIVE_VIEW
An inoperative view.Used by DB2.
-
MATERIALIZED_QUERY_TABLE
A materialized query table.Used by DB2.
-
NICKNAME
A nickname.Used by DB2.
-
TYPED_TABLE
A typed table.Used by DB2.
-
TYPED_VIEW
A typed view.Used by DB2.
-
TEMPORAL_TABLE
A temporal table.Used by MS SQL, Oracle and others
-
OTHER
Table type not known to Calcite.If you get one of these, please fix the problem by adding an enum value.
-
-
Field Details
-
jdbcName
The name used in JDBC. For example "SYSTEM TABLE" rather than "SYSTEM_TABLE".
-
-
Method Details
-
values
Returns an array containing the constants of this enum type, in the order they are declared.- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
name
- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is null
-