Package com.illumon.iris.db.v2.locations
Class FullTableLocationKey
java.lang.Object
com.illumon.iris.db.v2.locations.FullTableLocationKey
- All Implemented Interfaces:
com.fishlib.base.log.LogOutputAppendable,NamedImplementation,Serializable
- Direct Known Subclasses:
FullTableLocationKey.AggregateTableLocationKey
public class FullTableLocationKey
extends Object
implements com.fishlib.base.log.LogOutputAppendable, Serializable, NamedImplementation
Immutable class holding the information necessary to fully identify a table location (
TableKey + TableLocationKey)- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classFullTableLocationKey representing all internal partition values. -
Constructor Summary
ConstructorsConstructorDescriptionFullTableLocationKey(TableKey tableKey, TableLocationKey locationKey) Construct an immutable table identifier from location key values.FullTableLocationKey(String namespace, String tableName, TableType tableType, String internalPartition, String columnPartition) Construct an immutable FullTableLocationKey from component string values. -
Method Summary
Modifier and TypeMethodDescriptioncom.fishlib.base.log.LogOutputappend(com.fishlib.base.log.LogOutput logOutput) booleanequalKey(FullTableLocationKey other) Compare a key against the key of an object.booleanGet theTableKeyportion of this FullTableLocationKey.Get theTableLocationKeypart of the FullTableLocationKey.inthashCode()inthashKey()Returns the hash code of a key.booleanFullTableLocationKey.AggregateTableLocationKeyisn't as independent as was originally hoped.makeFullKey(String internalPartitionValue) Construct an immutable FullTableLocationKey from anFullTableLocationKey.AggregateTableLocationKeyand an internal partition value.toString()Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface com.illumon.util.type.NamedImplementation
getImplementationName
-
Constructor Details
-
FullTableLocationKey
public FullTableLocationKey(@NotNull String namespace, @NotNull String tableName, @NotNull TableType tableType, @NotNull String internalPartition, @NotNull String columnPartition) Construct an immutable FullTableLocationKey from component string values.- Parameters:
namespace- the namespacetableName- the table nametableType- the type of the tableinternalPartition- the internal partition valuecolumnPartition- the column partition value
-
FullTableLocationKey
Construct an immutable table identifier from location key values.- Parameters:
tableKey- a valid table keylocationKey- a valid table location key
-
-
Method Details
-
toString
-
append
public com.fishlib.base.log.LogOutput append(@NotNull com.fishlib.base.log.LogOutput logOutput) - Specified by:
appendin interfacecom.fishlib.base.log.LogOutputAppendable
-
toSimpleString
-
getInternalPartition
-
getColumnPartition
-
getTableType
-
getTableName
-
getNamespace
-
getTableKey
Get theTableKeyportion of this FullTableLocationKey.- Returns:
- an immutable TableKey
-
getTableLocationKey
Get theTableLocationKeypart of the FullTableLocationKey.- Returns:
- an immutable TableLocationKey
-
isAggregateKey
public boolean isAggregateKey()FullTableLocationKey.AggregateTableLocationKeyisn't as independent as was originally hoped. This method grants a peek into the implementation.- Returns:
- true if this is an aggregate key, false if a full key (has an internal partition)
-
makeFullKey
Construct an immutable FullTableLocationKey from anFullTableLocationKey.AggregateTableLocationKeyand an internal partition value.- Parameters:
internalPartitionValue- the internal partition value to add
-
hashKey
public int hashKey()Returns the hash code of a key. SeeKeyedObjectKey.hashKey(Object).- Returns:
- the hash code of the object's key
-
hashCode
public int hashCode() -
equalKey
Compare a key against the key of an object. SeeKeyedObjectKey.equalKey(Object, Object).- Parameters:
other- the other FullTableLocationKey- Returns:
- true if this key is the same as the other key.
-
equals
-