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:
- Serialized Form
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classFullTableLocationKey.AggregateTableLocationKeyFullTableLocationKey representing all internal partition values. -
Constructor Summary
Constructors Constructor Description FullTableLocationKey(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 Type Method Description com.fishlib.base.log.LogOutputappend(com.fishlib.base.log.LogOutput logOutput)booleanequalKey(FullTableLocationKey other)Compare a key against the key of an object.booleanequals(Object obj)StringgetColumnPartition()StringgetInternalPartition()StringgetNamespace()TableKeygetTableKey()Get theTableKeyportion of this FullTableLocationKey.TableLocationKeygetTableLocationKey()Get theTableLocationKeypart of the FullTableLocationKey.StringgetTableName()TableTypegetTableType()inthashCode()inthashKey()Returns the hash code of a key.booleanisAggregateKey()FullTableLocationKey.AggregateTableLocationKeyisn't as independent as was originally hoped.FullTableLocationKeymakeFullKey(String internalPartitionValue)Construct an immutable FullTableLocationKey from anFullTableLocationKey.AggregateTableLocationKeyand an internal partition value.StringtoSimpleString()StringtoString()
-
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
-