Class ParquetMetadataFileLayout
java.lang.Object
io.deephaven.parquet.table.layout.ParquetMetadataFileLayout
- All Implemented Interfaces:
TableLocationKeyFinder<ParquetTableLocationKey>
public class ParquetMetadataFileLayout
extends Object
implements TableLocationKeyFinder<ParquetTableLocationKey>
Location finder that will examine a parquet metadata file to discover locations.
Note that we expect to find the following files:
- "_metadata" - A file containing Parquet metadata for all
row groupsin all.parquetfiles for the entire data set, including schema information non-partitioning columns and key-value metadata - "_common_metadata" (optional) - A file containing Parquet metadata with
schema information that applies to the entire data set, including partitioning columns that are inferred from file
paths rather than explicitly written in
column chunkswithin.parquetfiles
-
Method Summary
Modifier and TypeMethodDescriptionstatic ParquetMetadataFileLayoutcreate(@NotNull URI source, @NotNull ParquetInstructions inputInstructions, @Nullable SeekableChannelsProvider channelsProvider) voidfindKeys(@NotNull Consumer<ParquetTableLocationKey> locationKeyObserver) Findkeysand deliver them to thelocationKeyObserver.toString()
-
Method Details
-
create
public static ParquetMetadataFileLayout create(@NotNull @NotNull URI source, @NotNull @NotNull ParquetInstructions inputInstructions, @Nullable @Nullable SeekableChannelsProvider channelsProvider) - Parameters:
source- The source URI for the metadata file or directory containing the metadata file.inputInstructions- The instructions for customizations while reading.channelsProvider- The provider for seekable channels. Ifnull, a new provider will be created and used for all location keys.
-
toString
-
getTableDefinition
-
getInstructions
-
findKeys
Description copied from interface:TableLocationKeyFinderFindkeysand deliver them to thelocationKeyObserver.- Specified by:
findKeysin interfaceTableLocationKeyFinder<ParquetTableLocationKey>- Parameters:
locationKeyObserver- Per-key callback
-