public class DimensionStoreKeyUtils extends Object
Modifier and Type | Field and Description |
---|---|
static String |
KEY_SEPARATOR |
static String |
ROW_KEY_SUFFIX |
Constructor and Description |
---|
DimensionStoreKeyUtils() |
Modifier and Type | Method and Description |
---|---|
static String |
getAllValuesKey()
Returns a key for accessing all the dimension values in a
KeyValueStore . |
static String |
getCardinalityKey()
Returns a key that, when fed into a
KeyValueStore returns the
cardinality of the dimensions. |
static String |
getColumnKey(String columnName)
Returns a key that, when fed into a
KeyValueStore returns the
field name used by Lucene. |
static String |
getLastUpdatedKey() |
static String |
getRowKey(String fieldName,
String fieldValue)
Returns a key that allows access to the dimension rows of a given dimension.
|
public static final String ROW_KEY_SUFFIX
public static final String KEY_SEPARATOR
public static String getLastUpdatedKey()
public static String getAllValuesKey()
KeyValueStore
.
When this key is passed into a KeyValueStore
, the
KeyValueStore will return a String representation of a list of all the dimension values stored in the key value
dimension store.
public static String getRowKey(@NotNull String fieldName, String fieldValue)
Given a dimension field name (such as "id"), and the id of the dimension desired, returns a key. When
this key is passed into the appropriate KeyValueStore
,
the KeyValueStore will return the metadata of the associated dimension.
fieldName
- The dimension field name to be appended to the beginning of the keyfieldValue
- The key of the dimension whose data is desiredpublic static String getColumnKey(String columnName)
KeyValueStore
returns the
field name used by Lucene.columnName
- The name of the column to extract from Lucene.public static String getCardinalityKey()
KeyValueStore
returns the
cardinality of the dimensions.Copyright © 2016–2018 Yahoo! Inc.. All rights reserved.