public class BasicTSKey
extends com.fasterxml.clustermate.api.EntryKey
Modifier and Type | Field and Description |
---|---|
static String |
KEY_PREFIX
Let's model external key presentation as an URI of sort.
|
static char |
KEY_SEPARATOR
And use meow char for separating optional partition from path
|
Modifier | Constructor and Description |
---|---|
protected |
BasicTSKey(com.fasterxml.storemate.shared.StorableKey raw,
int partitionIdLength) |
Modifier and Type | Method and Description |
---|---|
byte[] |
asBytes() |
com.fasterxml.storemate.shared.StorableKey |
asStorableKey() |
boolean |
equals(Object o) |
String |
getPartitionAndPath()
Accessor for getting concatenation of partition id (if any) and path.
|
String |
getPartitionId()
Accessor for getting partition id part of key, if any; if no partition id,
returns null.
|
byte[] |
getPartitionIdAsBytes() |
int |
getPartitionIdLength() |
String |
getPath()
Accessor for getting path part of key, not including partition id.
|
int |
hashCode() |
boolean |
hasPartitionId() |
String |
toString() |
<T> T |
withPartitionPrefix(com.fasterxml.storemate.shared.util.WithBytesCallback<T> cb)
Callback-based accessor for accessing part of key formed when path itself
is dropped, and only client id and group id are included.
|
public static final String KEY_PREFIX
public static final char KEY_SEPARATOR
protected BasicTSKey(com.fasterxml.storemate.shared.StorableKey raw, int partitionIdLength)
public com.fasterxml.storemate.shared.StorableKey asStorableKey()
asStorableKey
in class com.fasterxml.clustermate.api.EntryKey
public byte[] asBytes()
asBytes
in class com.fasterxml.clustermate.api.EntryKey
public String getPath()
public String getPartitionAndPath()
public String getPartitionId()
public byte[] getPartitionIdAsBytes()
public <T> T withPartitionPrefix(com.fasterxml.storemate.shared.util.WithBytesCallback<T> cb)
IllegalStateException
will be thrown.public boolean hasPartitionId()
public int getPartitionIdLength()
Copyright © 2013 FasterXML. All Rights Reserved.