public class StateStoreConfiguration
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
KEY_KEYPATTERN
property name to the {@link String#format(String, Object...) pattern that combines shard part and segmented rest of
digest into an entry key.
|
static java.lang.String |
KEY_SEGMENTCOUNT
property name to configure the count of the segments in the remaining part of the entry key.
|
static java.lang.String |
KEY_SEGMENTLENGTH
property name to configure the length of the segments in the remaining part of the entry key.
|
static java.lang.String |
KEY_SHARDLENGTH
property name to configure the length of the "shard" part of the entry key.
|
Constructor and Description |
---|
StateStoreConfiguration(java.util.Properties properties)
create configuration from properties.
|
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getEntryKey(java.lang.String idDigest)
compute entry key from id digest according to configuration properties.
|
java.lang.String |
getEntryKey(java.lang.String idDigest,
java.lang.String compoundDigest)
compute entry key from id digest for a compound element according to configuration properties.
|
java.lang.String |
getShardKey(java.lang.String idDigest)
compute entry key from id digest according to configuration properties.
|
public static final java.lang.String KEY_SHARDLENGTH
public static final java.lang.String KEY_SEGMENTLENGTH
public static final java.lang.String KEY_SEGMENTCOUNT
public static final java.lang.String KEY_KEYPATTERN
public StateStoreConfiguration(java.util.Properties properties)
public java.lang.String getEntryKey(java.lang.String idDigest)
public java.lang.String getEntryKey(java.lang.String idDigest, java.lang.String compoundDigest)
public java.lang.String getShardKey(java.lang.String idDigest)