public class CompositeKey
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
NAMESPACE |
Constructor and Description |
---|
CompositeKey(java.lang.String objectType,
java.util.List<java.lang.String> attributes) |
CompositeKey(java.lang.String objectType,
java.lang.String... attributes) |
Modifier and Type | Method and Description |
---|---|
java.util.List<java.lang.String> |
getAttributes() |
java.lang.String |
getObjectType() |
static CompositeKey |
parseCompositeKey(java.lang.String compositeKey) |
java.lang.String |
toString() |
static void |
validateSimpleKeys(java.lang.String... keys)
To ensure that simple keys do not go into composite key namespace, we
validate simple key to check whether the key starts with 0x00 (which is the
namespace for compositeKey).
|
public CompositeKey(java.lang.String objectType, java.lang.String... attributes)
objectType
- attributes
- public CompositeKey(java.lang.String objectType, java.util.List<java.lang.String> attributes)
objectType
- attributes
- public java.lang.String getObjectType()
public java.util.List<java.lang.String> getAttributes()
public java.lang.String toString()
toString
in class java.lang.Object
public static CompositeKey parseCompositeKey(java.lang.String compositeKey)
compositeKey
- public static void validateSimpleKeys(java.lang.String... keys)
keys
- the list of simple keysCompositeKeyFormatException
- if First character of the key