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
Nested Classes -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final IcebergReadInstructionsThe defaultIcebergReadInstructionsto use when reading Iceberg data files. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuilder()Deprecated.The data instructions to use for reading the Iceberg data files (might be S3Instructions or other cloud provider-specific instructions).booleanControls whether to ignore unexpected resolving errors by silently returningnulldata for columns that can't be resolved inDataFilewhere they should be present.abstract Optional<org.apache.iceberg.Snapshot>snapshot()The snapshot to load for reading.abstract OptionalLongThe identifier of the snapshot to load for reading.final Optional<TableDefinition>Deprecated.TheIcebergUpdateModemode to use when reading the Iceberg data files.final IcebergReadInstructionswithColumnRenames(Map<String, ? extends String> entries) Deprecated.abstract IcebergReadInstructionswithSnapshot(org.apache.iceberg.Snapshot value) Return a copy of this instructions object with the snapshot replaced byvalue.abstract IcebergReadInstructionswithSnapshotId(long value) Return a copy of this instructions object with the snapshot ID replaced byvalue.
-
Field Details
-
DEFAULT
The defaultIcebergReadInstructionsto 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
Deprecated.TheTableDefinitionto 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). If not provided, data instructions will be derived from the properties of the catalog. -
columnRenames
Deprecated.Amapof rename instructions from Iceberg to Deephaven column names to use when reading the Iceberg data files. -
withColumnRenames
@Deprecated public final IcebergReadInstructions withColumnRenames(Map<String, ? extends String> entries) Deprecated.Return a copy of this instructions object with the column renames replaced byentries. -
updateMode
TheIcebergUpdateModemode 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. -
ignoreResolvingErrors
@Default public boolean ignoreResolvingErrors()Controls whether to ignore unexpected resolving errors by silently returningnulldata for columns that can't be resolved inDataFilewhere they should be present. These errors may be a sign of an incorrectResolverorNameMapping; or an Iceberg metadata / data issue. By default, isfalse.
-