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