Class DeephavenNestedPartitionLayout<TLK extends URITableLocationKey>
java.lang.Object
io.deephaven.parquet.table.layout.DeephavenNestedPartitionLayout<TLK>
- All Implemented Interfaces:
TableLocationKeyFinder<TLK>
public abstract class DeephavenNestedPartitionLayout<TLK extends URITableLocationKey>
extends Object
implements TableLocationKeyFinder<TLK>
TableLocationKeyFinder
that will traverse a directory hierarchy laid out in Deephaven's "nested-partitioned"
format, e.g.
tableRootDirectory/internalPartitionValue/columnPartitionValue/tableName/..., producing
URITableLocationKey
's with two partitions, for keys "__INTERNAL_PARTITION__" and the
specified columnPartitionKey
.-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionfinal void
Findkeys
and deliver them to thelocationKeyObserver
.forParquet
(@NotNull File tableRootDirectory, @NotNull String tableName, @NotNull String columnPartitionKey, @Nullable Predicate<String> internalPartitionValueFilter, @NotNull ParquetInstructions readInstructions) protected String
protected abstract TLK
makeKey
(@NotNull Path tableLeafDirectory, @NotNull Map<String, Comparable<?>> partitions) toString()
-
Field Details
-
PARQUET_FILE_NAME
- See Also:
-
INTERNAL_PARTITION_KEY
- See Also:
-
-
Constructor Details
-
DeephavenNestedPartitionLayout
protected DeephavenNestedPartitionLayout(@NotNull @NotNull File tableRootDirectory, @NotNull @NotNull String tableName, @NotNull @NotNull String columnPartitionKey, @Nullable @Nullable Predicate<String> internalPartitionValueFilter) - Parameters:
tableRootDirectory
- The directory to traverse fromtableName
- The table namecolumnPartitionKey
- The partitioning column nameinternalPartitionValueFilter
- Filter to control which internal partitions are included,null
for all
-
-
Method Details
-
forParquet
public static DeephavenNestedPartitionLayout<ParquetTableLocationKey> forParquet(@NotNull @NotNull File tableRootDirectory, @NotNull @NotNull String tableName, @NotNull @NotNull String columnPartitionKey, @Nullable @Nullable Predicate<String> internalPartitionValueFilter, @NotNull @NotNull ParquetInstructions readInstructions) -
toString
-
findKeys
Description copied from interface:TableLocationKeyFinder
Findkeys
and deliver them to thelocationKeyObserver
.- Specified by:
findKeys
in interfaceTableLocationKeyFinder<TLK extends URITableLocationKey>
- Parameters:
locationKeyObserver
- Per-key callback
-
makeKey
protected abstract TLK makeKey(@NotNull @NotNull Path tableLeafDirectory, @NotNull @NotNull Map<String, Comparable<?>> partitions) -
getColumnPartitionKey
-