Package io.deephaven.iceberg.util
Interface SchemaProvider
- All Known Implementing Classes:
SchemaProvider.DirectSchema
,SchemaProvider.SchemaId
,SchemaProvider.SnapshotId
,SchemaProvider.TableSchema
,SchemaProvider.TableSnapshot
public interface SchemaProvider
A specification for extracting the schema from a table.
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic final class
static final class
static final class
static enum
static enum
static interface
-
Method Summary
Modifier and TypeMethodDescriptionstatic SchemaProvider.TableSchema
Use the current schema from the table.static SchemaProvider.TableSnapshot
Use the schema from the current snapshot of the table.static SchemaProvider.DirectSchema
fromSchema
(org.apache.iceberg.Schema schema) Use the given schema directly.static SchemaProvider.SchemaId
fromSchemaId
(int id) Use the schema with the given ID from the table.static SchemaProvider.SnapshotId
fromSnapshotId
(long snapshotId) Use the schema from the snapshot with the given ID.<T> T
walk
(SchemaProvider.Visitor<T> visitor)
-
Method Details
-
fromCurrent
Use the current schema from the table. -
fromSchemaId
Use the schema with the given ID from the table. -
fromSchema
Use the given schema directly. -
fromSnapshotId
Use the schema from the snapshot with the given ID. -
fromCurrentSnapshot
Use the schema from the current snapshot of the table. -
walk
-