public class CacheMarshallersValue extends PluginListValue
Constructor and Description |
---|
CacheMarshallersValue(Configuration conf) |
Modifier and Type | Method and Description |
---|---|
Map<String,CacheMarshaller> |
getInstancesAsMap() |
static CacheMarshaller |
getMarshallerById(Configuration c,
String id)
Return the
CacheMarshaller to use for caching metadata of id
id . |
CacheMarshaller |
getMarshallerById(String id)
Return the
CacheMarshaller to use for caching metadata of id
id . |
protected void |
initialize() |
Object |
instantiate(Class<?> elemType,
Configuration conf,
boolean fatal)
Instantiate the plugins as instances of the given class.
|
getClassNames, getInternalString, getProperties, getString, getValueType, objectChanged, setClassNames, setInternalString, setProperties, setString
configure, configure, get, instantiate, newInstance, set, set, setInternalObject
addEquivalentKey, addListener, alias, alias, assertChangeable, clone, equals, getAliases, getDefault, getEquivalentKeys, getInstantiatingGetter, getListeners, getLoadKey, getOriginalValue, getProperty, getPropertyKeys, getScope, hashCode, hide, isAliasListComprehensive, isDynamic, isHidden, isPrivate, makePrivate, matches, removeListener, setAlias, setAlias, setAliases, setAliasListComprehensive, setDefault, setDynamic, setInstantiatingGetter, setLoadKey, setObject, setProperty, setScope, toString, unalias, unalias, valueChanged
public CacheMarshallersValue(Configuration conf)
public Object instantiate(Class<?> elemType, Configuration conf, boolean fatal)
PluginListValue
instantiate
in class PluginListValue
public CacheMarshaller getMarshallerById(String id)
CacheMarshaller
to use for caching metadata of id
id
. If no marshaller exists for the id, returns
NoOpCacheMarshaller
.public static CacheMarshaller getMarshallerById(Configuration c, String id)
CacheMarshaller
to use for caching metadata of id
id
. If no marshaller exists for the id, returns
NoOpCacheMarshaller
.public Map<String,CacheMarshaller> getInstancesAsMap()
protected void initialize()
Copyright © 2006–2019 Apache Software Foundation. All rights reserved.