public class JavaTableConfig extends MapConfig
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
STORE_KEY_SERDE |
static java.lang.String |
STORE_MSG_SERDE |
static java.lang.String |
TABLE_ID_PREFIX |
static java.lang.String |
TABLE_PROVIDER_FACTORY |
static java.lang.String |
TABLE_PROVIDER_FACTORY_SUFFIX |
static java.lang.String |
TABLES_PREFIX |
SENSITIVE_MASK, SENSITIVE_PREFIX
Constructor and Description |
---|
JavaTableConfig(java.util.Map<java.lang.String,java.lang.String> config) |
Modifier and Type | Method and Description |
---|---|
static java.lang.String |
buildKey(java.lang.String tableId,
java.lang.String key)
Build complete config key for a config item
|
java.lang.String |
getForTable(java.lang.String tableId,
java.lang.String key)
Get table config value for a key
|
java.lang.String |
getForTable(java.lang.String tableId,
java.lang.String key,
java.lang.String defaultValue)
Get table config value for a key
|
java.lang.String |
getKeySerde(java.lang.String tableId)
Get registry keys of key serde for this table
|
java.lang.String |
getMsgSerde(java.lang.String tableId)
Get registry keys of value serde for this table
|
java.util.List<java.lang.String> |
getTableIds()
Get Id's of all tables
|
java.lang.String |
getTableProviderFactory(java.lang.String tableId)
Get the
TableProviderFactory class name for a table |
containsKey, containsValue, entrySet, equals, get, hashCode, isEmpty, keySet, sanitize, size, toString, values
clear, get, getBoolean, getBoolean, getClass, getDate, getDate, getDate, getDate, getDate, getDate, getDouble, getDouble, getInt, getInt, getList, getList, getLong, getLong, getNewInstance, getShort, getShort, put, putAll, regexSubset, remove, replaceAll, subset, subset
public static final java.lang.String TABLES_PREFIX
public static final java.lang.String TABLE_ID_PREFIX
public static final java.lang.String TABLE_PROVIDER_FACTORY_SUFFIX
public static final java.lang.String TABLE_PROVIDER_FACTORY
public static final java.lang.String STORE_KEY_SERDE
public static final java.lang.String STORE_MSG_SERDE
public JavaTableConfig(java.util.Map<java.lang.String,java.lang.String> config)
public java.util.List<java.lang.String> getTableIds()
public java.lang.String getTableProviderFactory(java.lang.String tableId)
TableProviderFactory
class name for a tabletableId
- Id of the tableTableProviderFactory
class namepublic java.lang.String getKeySerde(java.lang.String tableId)
tableId
- Id of the tablepublic java.lang.String getMsgSerde(java.lang.String tableId)
tableId
- Id of the tablepublic java.lang.String getForTable(java.lang.String tableId, java.lang.String key, java.lang.String defaultValue)
tableId
- Id of the tablekey
- Key for the config itemdefaultValue
- default value if absent in configpublic java.lang.String getForTable(java.lang.String tableId, java.lang.String key)
tableId
- Id of the tablekey
- Key for the config itempublic static java.lang.String buildKey(java.lang.String tableId, java.lang.String key)
tableId
- Id of the tablekey
- Key for the config item