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 class
FullTableLocationKey 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.LogOutput
append
(com.fishlib.base.log.LogOutput logOutput) boolean
equalKey
(FullTableLocationKey other) Compare a key against the key of an object.boolean
Get theTableKey
portion of this FullTableLocationKey.Get theTableLocationKey
part of the FullTableLocationKey.int
hashCode()
int
hashKey()
Returns the hash code of a key.boolean
FullTableLocationKey.AggregateTableLocationKey
isn't as independent as was originally hoped.makeFullKey
(String internalPartitionValue) Construct an immutable FullTableLocationKey from anFullTableLocationKey.AggregateTableLocationKey
and an internal partition value.toString()
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
Methods 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:
append
in interfacecom.fishlib.base.log.LogOutputAppendable
-
toSimpleString
-
getInternalPartition
-
getColumnPartition
-
getTableType
-
getTableName
-
getNamespace
-
getTableKey
Get theTableKey
portion of this FullTableLocationKey.- Returns:
- an immutable TableKey
-
getTableLocationKey
Get theTableLocationKey
part of the FullTableLocationKey.- Returns:
- an immutable TableLocationKey
-
isAggregateKey
public boolean isAggregateKey()FullTableLocationKey.AggregateTableLocationKey
isn'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.AggregateTableLocationKey
and 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
-