Package io.deephaven.iceberg.layout
Class IcebergBaseLayout
java.lang.Object
io.deephaven.iceberg.layout.IcebergBaseLayout
- All Implemented Interfaces:
TableLocationKeyFinder<IcebergTableLocationKey>
- Direct Known Subclasses:
IcebergFlatLayout
,IcebergKeyValuePartitionedLayout
public abstract class IcebergBaseLayout
extends Object
implements TableLocationKeyFinder<IcebergTableLocationKey>
-
Constructor Summary
ConstructorDescriptionIcebergBaseLayout
(@NotNull TableDefinition tableDef, @NotNull org.apache.iceberg.Table table, @NotNull org.apache.iceberg.Snapshot tableSnapshot, @NotNull org.apache.iceberg.io.FileIO fileIO, @NotNull IcebergInstructions instructions) -
Method Summary
Modifier and TypeMethodDescriptionvoid
findKeys
(@NotNull Consumer<IcebergTableLocationKey> locationKeyObserver) Findkeys
and deliver them to thelocationKeyObserver
.protected IcebergTableLocationKey
locationKey
(org.apache.iceberg.FileFormat format, URI fileUri, @Nullable Map<String, Comparable<?>> partitions)
-
Constructor Details
-
IcebergBaseLayout
public IcebergBaseLayout(@NotNull @NotNull TableDefinition tableDef, @NotNull @NotNull org.apache.iceberg.Table table, @NotNull @NotNull org.apache.iceberg.Snapshot tableSnapshot, @NotNull @NotNull org.apache.iceberg.io.FileIO fileIO, @NotNull @NotNull IcebergInstructions instructions) - Parameters:
tableDef
- TheTableDefinition
that will be used for the table.table
- TheTable
to discover locations for.tableSnapshot
- TheSnapshot
from which to discover data files.fileIO
- The file IO to use for reading manifest data files.instructions
- The instructions for customizations while reading.
-
-
Method Details
-
locationKey
protected IcebergTableLocationKey locationKey(org.apache.iceberg.FileFormat format, URI fileUri, @Nullable @Nullable Map<String, Comparable<?>> partitions) -
findKeys
Description copied from interface:TableLocationKeyFinder
Findkeys
and deliver them to thelocationKeyObserver
.- Specified by:
findKeys
in interfaceTableLocationKeyFinder<IcebergTableLocationKey>
- Parameters:
locationKeyObserver
- Per-key callback
-