Package com.illumon.iris.db.v2.locations
Interface TableLocationKey
- All Superinterfaces:
com.fishlib.base.log.LogOutputAppendable
,NamedImplementation
- All Known Subinterfaces:
DeephavenFormatTableLocation<CLT>
,IWritableLocalTableLocation
,ParquetFormatTableLocation<CLT>
,TableLocation<CLT>
- All Known Implementing Classes:
AbstractTableLocation
,DeferredTableLocation
,DeferredTableLocation.DataDriven
,DeferredTableLocation.SnapshotDriven
,LocalTableLocation
,ReadOnlyLocalTableLocation
,ReadOnlyParquetTableLocation
,SimpleTableLocationKey
,TableLocationLookupKey
,TableLocationLookupKey.Immutable
,TableLocationLookupKey.Reusable
,TableLocationMetadataIndex.TableLocationSnapshot
,WritableLocalTableLocation
public interface TableLocationKey extends NamedImplementation, com.fishlib.base.log.LogOutputAppendable
Interface that specifies key fields for any TableLocation.
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static class
TableLocationKey.ComparatorImpl
static class
TableLocationKey.KeyedObjectKeyImpl<VALUE_TYPE>
static class
TableLocationKey.SelfKeyedObjectKeyImpl<VALUE_TYPE extends TableLocationKey>
-
Field Summary
Fields Modifier and Type Field Description static Comparator<TableLocationKey>
COMPARATOR
Re-usable Comparator for TableLocationKey objects that disregards the implementation class.static String
NULL_PARTITION
Constant used to designate partition values for unpartitioned tables, i.e. -
Method Summary
Modifier and Type Method Description default com.fishlib.base.log.LogOutput
append(com.fishlib.base.log.LogOutput logOutput)
static boolean
areEqual(TableLocationKey key1, TableLocationKey key2)
CharSequence
getColumnPartition()
CharSequence
getInternalPartition()
static <VALUE_TYPE extends TableLocationKey>
com.fishlib.base.hash.KeyedObjectKey<TableLocationKey,VALUE_TYPE>getKeyedObjectKey()
Re-usable key object for TableLocationKeys that disregards the implementation class.static int
hash(TableLocationKey key)
default String
toStringHelper()
default void
writeTo(com.fishlib.net.impl.nio.WObjectWriter writer)
-
Field Details
-
NULL_PARTITION
Constant used to designate partition values for unpartitioned tables, i.e. "simple" tables. Also used for fully-standalone locations, e.g. for tables persisted or loaded outside of a Database/TableDataService framework.- See Also:
- Constant Field Values
-
COMPARATOR
Re-usable Comparator for TableLocationKey objects that disregards the implementation class.
-
-
Method Details
-
getInternalPartition
- Returns:
- The internal partition that encloses the identified table location, or null if none exists
-
getColumnPartition
- Returns:
- The column partition that encloses the identified table location, or null if none exists
-
append
default com.fishlib.base.log.LogOutput append(@NotNull com.fishlib.base.log.LogOutput logOutput)- Specified by:
append
in interfacecom.fishlib.base.log.LogOutputAppendable
-
toStringHelper
-
hash
-
areEqual
-
getKeyedObjectKey
static <VALUE_TYPE extends TableLocationKey> com.fishlib.base.hash.KeyedObjectKey<TableLocationKey,VALUE_TYPE> getKeyedObjectKey()Re-usable key object for TableLocationKeys that disregards the implementation class. -
writeTo
@FinalDefault default void writeTo(@NotNull com.fishlib.net.impl.nio.WObjectWriter writer) throws IOException- Throws:
IOException
-