org.apache.solr.handler.dataimport
Class VariableResolverImpl
java.lang.Object
org.apache.solr.handler.dataimport.VariableResolver
org.apache.solr.handler.dataimport.VariableResolverImpl
public class VariableResolverImpl
- extends VariableResolver
The default implementation of VariableResolver interface
This API is experimental and may change in the future.
- Since:
- solr 1.3
- See Also:
VariableResolver
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
VariableResolverImpl
public VariableResolverImpl()
VariableResolverImpl
public VariableResolverImpl(Map defaults)
addNamespace
public VariableResolverImpl addNamespace(String name,
Map<String,Object> map)
removeNamespace
public void removeNamespace(String name)
replaceTokens
public String replaceTokens(String template)
- Description copied from class:
VariableResolver
- Given a String with place holders, replace them with the value tokens.
- Specified by:
replaceTokens
in class VariableResolver
- Returns:
- the string with the placeholders replaced with their values
resolve
public Object resolve(String name)
- Description copied from class:
VariableResolver
- Resolves a given value with a name
- Specified by:
resolve
in class VariableResolver
- Parameters:
name
- the String to be resolved
- Returns:
- an Object which is the result of evaluation of given name
Copyright © 2000-2012 Apache Software Foundation. All Rights Reserved.