Skip to content

Table

Table is an abstraction of logical structured data set:

  • a directory or files on a file system
  • a topic of Apache Kafka
  • a table in a catalog

Table can be loaded using TableCatalog.

Contract

Capabilities

Set<TableCapability> capabilities()

TableCapabilities of the table

Used when Table is asked whether or not it supports a given capability

Columns

Column[] columns()

Columns of this table

Default: structTypeToV2Columns based on the schema

Used when Table is asked whether or not it supports a given capability

Name

String name()

Name of the table

Partitioning

Transform[] partitioning()

Partitions of the table (as Transforms)

Default: (empty)

Used when:

Properties

Map<String, String> properties()

Table properties

Default: (empty)

Used when:

Schema

StructType schema()

Deprecated

Use columns instead.

StructType of the table

Used when:

Implementations