Class ParquetKeyValuePartitionedLayout
java.lang.Object
io.deephaven.engine.table.impl.locations.local.KeyValuePartitionLayout<TLK,URI>
io.deephaven.engine.table.impl.locations.local.URIStreamKeyValuePartitionLayout<ParquetTableLocationKey>
io.deephaven.parquet.table.layout.ParquetKeyValuePartitionedLayout
- All Implemented Interfaces:
TableLocationKeyFinder<ParquetTableLocationKey>
public class ParquetKeyValuePartitionedLayout
extends URIStreamKeyValuePartitionLayout<ParquetTableLocationKey>
implements TableLocationKeyFinder<ParquetTableLocationKey>
KeyValuePartitionLayout for Parquet data.- ImplNote:
- Unless a
TableDefinitionis provided, type inference for partitioning column usesCsvTools.readCsvas a conversion tool, and hence follows the same rules. - Column names will be legalized via
NameValidator.legalizeColumnName.
- Unless a
-
Nested Class Summary
Nested classes/interfaces inherited from class io.deephaven.engine.table.impl.locations.local.KeyValuePartitionLayout
KeyValuePartitionLayout.LocationTableBuilder -
Field Summary
Fields inherited from class io.deephaven.engine.table.impl.locations.local.URIStreamKeyValuePartitionLayout
tableRootDirectory -
Method Summary
Modifier and TypeMethodDescriptioncreate(@NotNull URI tableRootDirectory, int maxPartitioningLevels, @NotNull ParquetInstructions readInstructions, @Nullable SeekableChannelsProvider channelsProvider) Create a newParquetKeyValuePartitionedLayoutfor the giventableRootDirectory.create(@NotNull URI tableRootDirectory, @NotNull TableDefinition tableDefinition, @NotNull ParquetInstructions readInstructions, @Nullable SeekableChannelsProvider channelsProvider) final voidfindKeys(@NotNull Consumer<ParquetTableLocationKey> locationKeyObserver) Findkeysand deliver them to thelocationKeyObserver.Methods inherited from class io.deephaven.engine.table.impl.locations.local.URIStreamKeyValuePartitionLayout
findKeys, toString
-
Method Details
-
create
public static ParquetKeyValuePartitionedLayout create(@NotNull @NotNull URI tableRootDirectory, @NotNull @NotNull TableDefinition tableDefinition, @NotNull @NotNull ParquetInstructions readInstructions, @Nullable @Nullable SeekableChannelsProvider channelsProvider) - Parameters:
tableRootDirectory- The root directory for the table.tableDefinition- The table definition to use for the layout.readInstructions- 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.
-
create
public static ParquetKeyValuePartitionedLayout create(@NotNull @NotNull URI tableRootDirectory, int maxPartitioningLevels, @NotNull @NotNull ParquetInstructions readInstructions, @Nullable @Nullable SeekableChannelsProvider channelsProvider) Create a newParquetKeyValuePartitionedLayoutfor the giventableRootDirectory. The table definition will be inferred from the data usingCsvTools.readCsv.- Parameters:
tableRootDirectory- The root directory for the table.maxPartitioningLevels- The maximum number of partitioning levels to use.readInstructions- 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.
-
findKeys
Description copied from interface:TableLocationKeyFinderFindkeysand deliver them to thelocationKeyObserver.- Specified by:
findKeysin interfaceTableLocationKeyFinder<ParquetTableLocationKey>- Parameters:
locationKeyObserver- Per-key callback
-