Package com.illumon.iris.db.v2.locations
Interface TableKey
- All Superinterfaces:
com.fishlib.base.log.LogOutputAppendable,NamedImplementation
- All Known Subinterfaces:
TableLocationProvider
- All Known Implementing Classes:
AbstractTableLocationProvider,ReadOnlyLocalTableLocationProvider,SingleTableLocationProvider,StandaloneTableKey,TableLookupKey,TableLookupKey.Immutable,TableLookupKey.Reusable,WritableLocalTableLocationProvider
public interface TableKey extends NamedImplementation, com.fishlib.base.log.LogOutputAppendable
Interface that specifies key fields for any table-keyed object (i.e. TableLocationProvider).
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static classTableKey.KeyedObjectKeyImpl<VALUE_TYPE>static classTableKey.SelfKeyedObjectKeyImpl<VALUE_TYPE extends TableKey> -
Field Summary
-
Method Summary
Modifier and Type Method Description default com.fishlib.base.log.LogOutputappend(com.fishlib.base.log.LogOutput logOutput)static booleanareEqual(TableKey key1, TableKey key2)default TableIdentifierasTableIdentifier()static <VALUE_TYPE extends TableKey>
com.fishlib.base.hash.KeyedObjectKey<TableKey,VALUE_TYPE>getKeyedObjectKey()Re-usable key object for TableKeys that disregards the implementation class.CharSequencegetNamespace()CharSequencegetTableName()TableTypegetTableType()static inthash(TableKey key)default StringtoStringDetailed()Optional toString path with more implementation detail.default StringtoStringHelper()default voidwriteTo(com.fishlib.net.impl.nio.WObjectWriter writer)
-
Field Details
-
NULL_NAME
Constant used to designate namespace or table name values for fully-standalone tables/locations, e.g. for tables persisted or loaded outside of a Database/TableDataService framework.- See Also:
- Constant Field Values
-
-
Method Details
-
getNamespace
- Returns:
- The namespace enclosing this table
-
getTableName
- Returns:
- The name of this table
-
getTableType
- Returns:
- The type of this table (which generally dictates storage, metadata-availability, etc)
-
append
@FinalDefault default com.fishlib.base.log.LogOutput append(@NotNull com.fishlib.base.log.LogOutput logOutput)- Specified by:
appendin interfacecom.fishlib.base.log.LogOutputAppendable
-
toStringHelper
-
toStringDetailed
Optional toString path with more implementation detail.- Returns:
- detailed conversion to string
-
hash
-
areEqual
-
getKeyedObjectKey
static <VALUE_TYPE extends TableKey> com.fishlib.base.hash.KeyedObjectKey<TableKey,VALUE_TYPE> getKeyedObjectKey()Re-usable key object for TableKeys that disregards the implementation class. -
writeTo
@FinalDefault default void writeTo(@NotNull com.fishlib.net.impl.nio.WObjectWriter writer) throws IOException- Throws:
IOException
-
asTableIdentifier
-