Class FileTableLocationKey
java.lang.Object
io.deephaven.engine.table.impl.locations.impl.PartitionedTableLocationKey
io.deephaven.engine.table.impl.locations.local.FileTableLocationKey
- All Implemented Interfaces:
LogOutputAppendable
,ImmutableTableLocationKey
,TableLocationKey
,NamedImplementation
,Comparable<TableLocationKey>
Base
ImmutableTableLocationKey
implementation for table locations that may be enclosed by partitions and
described by a File
. Sub-classes should override compareTo(TableLocationKey)
and
equals(Object)
only if they need to prevent equality with other FileTableLocationKey
implementations.-
Nested Class Summary
Nested classes/interfaces inherited from class io.deephaven.engine.table.impl.locations.impl.PartitionedTableLocationKey
PartitionedTableLocationKey.PartitionsComparator, PartitionedTableLocationKey.PartitionsFormatter
-
Field Summary
Fields inherited from class io.deephaven.engine.table.impl.locations.impl.PartitionedTableLocationKey
partitions
Fields inherited from interface io.deephaven.engine.table.impl.locations.ImmutableTableLocationKey
ZERO_LENGTH_IMMUTABLE_TABLE_LOCATION_KEY_ARRAY
-
Constructor Summary
ConstructorDescriptionFileTableLocationKey
(@NotNull File file, int order, @Nullable Map<String, Comparable<?>> partitions) Construct a new FileTableLocationKey for the suppliedfile
andpartitions
. -
Method Summary
Modifier and TypeMethodDescriptionint
compareTo
(@NotNull TableLocationKey other) Precedence-wise this implementation comparesorder
, then applies aPartitionedTableLocationKey.PartitionsComparator
topartitions
, then comparesfile
.boolean
final File
getFile()
Get a name for the implementing class.int
hashCode()
toString()
Methods inherited from class io.deephaven.engine.table.impl.locations.impl.PartitionedTableLocationKey
getPartitionKeys, getPartitionValue
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
Methods inherited from interface io.deephaven.engine.table.impl.locations.ImmutableTableLocationKey
makeImmutable
-
Field Details
-
file
-
-
Constructor Details
-
FileTableLocationKey
public FileTableLocationKey(@NotNull @NotNull File file, int order, @Nullable @Nullable Map<String, Comparable<?>> partitions) Construct a new FileTableLocationKey for the suppliedfile
andpartitions
.- Parameters:
file
- The file (or directory) that backs the keyed location. Will be adjusted to an absolute path.order
- Explicit ordering value for this location key.Comparable.compareTo(Object)
will sort FileTableLocationKeys with a lowerorder
before other keys. Comparing this ordering value takes precedence over other fields.partitions
- The table partitions enclosing the table location keyed bythis
. Note that if this parameter isnull
, the location will be a member of no partitions. An ordered copy of the map will be made, so the calling code is free to mutate the map after this call completes, but the partition keys and values themselves must be effectively immutable.
-
-
Method Details
-
getFile
-
append
-
toString
-
compareTo
Precedence-wise this implementation comparesorder
, then applies aPartitionedTableLocationKey.PartitionsComparator
topartitions
, then comparesfile
. -
hashCode
public int hashCode() -
equals
-
getImplementationName
Description copied from interface:NamedImplementation
Get a name for the implementing class. Useful for abstract classes that implement
LogOutputAppendable
or overridetoString
.The default implementation is correct, but not suitable for high-frequency usage.
- Returns:
- A name for the implementing class
-