Class LocationTableBuilderDefinition
java.lang.Object
io.deephaven.engine.table.impl.locations.local.LocationTableBuilderDefinition
- All Implemented Interfaces:
KeyValuePartitionLayout.LocationTableBuilder
public final class LocationTableBuilderDefinition
extends Object
implements KeyValuePartitionLayout.LocationTableBuilder
LocationTableBuilder
implementation that uses the a
TableDefinition
and PartitionParsers
to assemble location tables.-
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
-
LocationTableBuilderDefinition
-
-
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
-