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 allrow 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 incolumn chunkswithin.parquetfiles
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionParquetMetadataFileLayout(@NotNull File directory) ParquetMetadataFileLayout(@NotNull File directory, @NotNull ParquetInstructions inputInstructions) ParquetMetadataFileLayout(@NotNull File metadataFile, @Nullable File commonMetadataFile) ParquetMetadataFileLayout(@NotNull File metadataFile, @Nullable File commonMetadataFile, @NotNull ParquetInstructions inputInstructions) -
Method Summary
Modifier and TypeMethodDescriptionvoidfindKeys(@NotNull Consumer<ParquetTableLocationKey> locationKeyObserver) Findkeysand deliver them to thelocationKeyObserver.toString()
-
Field Details
-
METADATA_FILE_NAME
- See Also:
-
COMMON_METADATA_FILE_NAME
- See Also:
-
-
Constructor Details
-
ParquetMetadataFileLayout
-
ParquetMetadataFileLayout
public ParquetMetadataFileLayout(@NotNull @NotNull File directory, @NotNull @NotNull ParquetInstructions inputInstructions) -
ParquetMetadataFileLayout
-
ParquetMetadataFileLayout
public ParquetMetadataFileLayout(@NotNull @NotNull File metadataFile, @Nullable @Nullable File commonMetadataFile, @NotNull @NotNull ParquetInstructions inputInstructions)
-
-
Method Details
-
toString
-
getTableDefinition
-
getInstructions
-
findKeys
Description copied from interface:TableLocationKeyFinderFindkeysand deliver them to thelocationKeyObserver.- Specified by:
findKeysin interfaceTableLocationKeyFinder<ParquetTableLocationKey>- Parameters:
locationKeyObserver- Per-key callback
-