Package io.deephaven.iceberg.util
Class IcebergReadInstructions
java.lang.Object
io.deephaven.iceberg.util.IcebergReadInstructions
This class provides instructions intended for reading Iceberg catalogs and tables. The default values documented in
this class may change in the future. As such, callers may wish to explicitly set the values.
-
Nested Class Summary
-
Field Summary
Modifier and TypeFieldDescriptionstatic final IcebergReadInstructions
The defaultIcebergReadInstructions
to use when reading Iceberg data files. -
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuilder()
Amap
of rename instructions from Iceberg to Deephaven column names to use when reading the Iceberg data files.The data instructions to use for reading the Iceberg data files (might be S3Instructions or other cloud provider-specific instructions).abstract Optional<org.apache.iceberg.Snapshot>
snapshot()
The snapshot to load for reading.abstract OptionalLong
The identifier of the snapshot to load for reading.abstract Optional<TableDefinition>
TheTableDefinition
to use when reading Iceberg data files.TheIcebergUpdateMode
mode to use when reading the Iceberg data files.abstract IcebergReadInstructions
withColumnRenames
(Map<String, ? extends String> entries) Return a copy of this instructions object with the column renames replaced byentries
.abstract IcebergReadInstructions
withSnapshot
(org.apache.iceberg.Snapshot value) Return a copy of this instructions object with the snapshot replaced byvalue
.abstract IcebergReadInstructions
withSnapshotId
(long value) Return a copy of this instructions object with the snapshot ID replaced byvalue
.
-
Field Details
-
DEFAULT
The defaultIcebergReadInstructions
to use when reading Iceberg data files. Providing this will use system defaults for cloud provider-specific parameters.
-
-
Constructor Details
-
IcebergReadInstructions
public IcebergReadInstructions()
-
-
Method Details
-
builder
-
tableDefinition
TheTableDefinition
to use when reading Iceberg data files. -
dataInstructions
The data instructions to use for reading the Iceberg data files (might be S3Instructions or other cloud provider-specific instructions). -
columnRenames
Amap
of rename instructions from Iceberg to Deephaven column names to use when reading the Iceberg data files. -
withColumnRenames
Return a copy of this instructions object with the column renames replaced byentries
. -
updateMode
TheIcebergUpdateMode
mode to use when reading the Iceberg data files. Default isIcebergUpdateMode.staticMode()
. -
snapshotId
The identifier of the snapshot to load for reading. If both this andsnapshot()
are provided, theSnapshot.snapshotId()
should match this. Otherwise, only one of them should be provided. If neither is provided, the latest snapshot will be loaded. -
withSnapshotId
Return a copy of this instructions object with the snapshot ID replaced byvalue
. -
snapshot
The snapshot to load for reading. If both this andsnapshotId()
are provided, theSnapshot.snapshotId()
should match thesnapshotId()
. Otherwise, only one of them should be provided. If neither is provided, the latest snapshot will be loaded. -
withSnapshot
Return a copy of this instructions object with the snapshot replaced byvalue
.
-