public class DefaultPartitionKey extends HashMap<String,Object>
Map. This
key can be used together with DefaultPartitionStrategy.AbstractMap.SimpleEntry<K,V>, AbstractMap.SimpleImmutableEntry<K,V>| Modifier and Type | Field and Description |
|---|---|
static String |
KEY_CONTENT |
static String |
KEY_TIMESTAMP |
| Constructor and Description |
|---|
DefaultPartitionKey()
Instantiates a new default partition key.
|
DefaultPartitionKey(long timestamp)
Instantiates a new default partition key using
a given timestamp.
|
DefaultPartitionKey(long timestamp,
Object content)
Instantiates a new default partition key using
a given timestamp and a content object.
|
DefaultPartitionKey(Map<? extends String,? extends Object> map)
Instantiates a new default partition key
with a
Map. |
DefaultPartitionKey(Object content)
Instantiates a new default partition key using
a content object.
|
clear, clone, containsKey, containsValue, entrySet, get, isEmpty, keySet, put, putAll, remove, size, valuesequals, hashCode, toStringpublic static final String KEY_TIMESTAMP
public static final String KEY_CONTENT
public DefaultPartitionKey()
public DefaultPartitionKey(long timestamp)
timestamp - the timestamppublic DefaultPartitionKey(long timestamp,
Object content)
timestamp - the timestampcontent - the contentpublic DefaultPartitionKey(Object content)
content - the content