Class LocationTableBuilderCsv
java.lang.Object
io.deephaven.parquet.table.layout.LocationTableBuilderCsv
- All Implemented Interfaces:
KeyValuePartitionLayout.LocationTableBuilder
public final class LocationTableBuilderCsv
extends Object
implements KeyValuePartitionLayout.LocationTableBuilder
LocationTableBuilder
implementation that uses the default
Deephaven CSV parser for type inference and coercion.-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
acceptLocation
(@NotNull Collection<String> partitionValueStrings) Accept an ordered collection ofstrings
representing partition values for a particular table location, parallel to a previously registered collection of partition keys.build()
Build aTable
with one column per partition key specified inregisterPartitionKeys
, and one row per location provided viaacceptLocation
, with cell values parallel to that location's partition values after any appropriate conversion has been applied.void
registerPartitionKeys
(@NotNull Collection<String> partitionKeys) Register an ordered collection ofstrings
representing partition keys.
-
Constructor Details
-
LocationTableBuilderCsv
-
-
Method Details
-
registerPartitionKeys
Description copied from interface:KeyValuePartitionLayout.LocationTableBuilder
Register an ordered collection ofstrings
representing partition keys. This should be called exactly once, and before any calls toacceptLocation
.- Specified by:
registerPartitionKeys
in interfaceKeyValuePartitionLayout.LocationTableBuilder
- Parameters:
partitionKeys
- The partition keys to register
-
acceptLocation
Description copied from interface:KeyValuePartitionLayout.LocationTableBuilder
Accept an ordered collection ofstrings
representing partition values for a particular table location, parallel to a previously registered collection of partition keys. Should be called after a single call toregisterPartitionKeys
.- Specified by:
acceptLocation
in interfaceKeyValuePartitionLayout.LocationTableBuilder
- Parameters:
partitionValueStrings
- The partition values to accept. Must have the same length as the previously registered partition keys.
-
build
Description copied from interface:KeyValuePartitionLayout.LocationTableBuilder
Build aTable
with one column per partition key specified inregisterPartitionKeys
, and one row per location provided viaacceptLocation
, with cell values parallel to that location's partition values after any appropriate conversion has been applied. The implementation is responsible for determining the appropriate column types.- Specified by:
build
in interfaceKeyValuePartitionLayout.LocationTableBuilder
- Returns:
- The
Table
-