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
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidacceptLocation(@NotNull Collection<String> partitionValueStrings) Accept an ordered collection ofstringsrepresenting partition values for a particular table location, parallel to a previously registered collection of partition keys.build()Build aTablewith 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.voidregisterPartitionKeys(@NotNull Collection<String> partitionKeys) Register an ordered collection ofstringsrepresenting partition keys.
-
Constructor Details
-
LocationTableBuilderCsv
-
-
Method Details
-
registerPartitionKeys
Description copied from interface:KeyValuePartitionLayout.LocationTableBuilderRegister an ordered collection ofstringsrepresenting partition keys. This should be called exactly once, and before any calls toacceptLocation.- Specified by:
registerPartitionKeysin interfaceKeyValuePartitionLayout.LocationTableBuilder- Parameters:
partitionKeys- The partition keys to register
-
acceptLocation
Description copied from interface:KeyValuePartitionLayout.LocationTableBuilderAccept an ordered collection ofstringsrepresenting 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:
acceptLocationin 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.LocationTableBuilderBuild aTablewith 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:
buildin interfaceKeyValuePartitionLayout.LocationTableBuilder- Returns:
- The
Table
-