Skip to content

TableProvider

TableProvider is an abstraction of table providers (for DataSourceV2Utils utility when requested for a Table).

Contract

Creating Table

Table getTable(
  StructType schema,
  Transform[] partitioning,
  Map<String, String> properties)

Creates a Table for the given schema, partitioning (as Transforms) and properties.

Used when:

Inferring Partitioning

Transform[] inferPartitioning(
  CaseInsensitiveStringMap options)

Default: No partitions (as Transforms)

Used when:

Inferring Schema

StructType inferSchema(
  CaseInsensitiveStringMap options)

Used when:

supportsExternalMetadata

boolean supportsExternalMetadata()

Default: false

Used when:

Implementations


Last update: 2020-11-06