|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.solr.handler.dataimport.Context
org.apache.solr.handler.dataimport.ContextImpl
org.apache.solr.handler.dataimport.ThreadedContext
public class ThreadedContext
Context implementation used when run multi threaded.
Field Summary |
---|
Fields inherited from class org.apache.solr.handler.dataimport.ContextImpl |
---|
entity |
Fields inherited from class org.apache.solr.handler.dataimport.Context |
---|
DELTA_DUMP, FIND_DELTA, FULL_DUMP, SCOPE_DOC, SCOPE_ENTITY, SCOPE_GLOBAL, SCOPE_SOLR_CORE |
Constructor Summary | |
---|---|
ThreadedContext(org.apache.solr.handler.dataimport.DocBuilder.EntityRunner entityRunner,
DocBuilder docBuilder,
VariableResolverImpl resolver)
|
Method Summary | |
---|---|
String |
currentProcess()
Returns the current process FULL_DUMP, DELTA_DUMP, FIND_DELTA |
DataSource |
getDataSource()
Gets the datasource instance defined for this entity. |
EntityProcessor |
getEntityProcessor()
Returns the instance of EntityProcessor used for this entity |
Context |
getParentContext()
Get the context instance for the parent entity. |
String |
getResolvedEntityAttribute(String name)
Get the value of any attribute put into this entity after resolving all variables found in the attribute value |
VariableResolver |
getVariableResolver()
Returns the VariableResolver used in this entity which can be used to resolve the tokens in ${ |
String |
replaceTokens(String template)
Resolve variables in a template |
Object |
resolve(String var)
Use this directly to resolve variable |
void |
setSessionAttribute(String name,
Object val,
String scope)
Store values in a certain name and scope (entity, document,global) |
Methods inherited from class org.apache.solr.handler.dataimport.ContextImpl |
---|
deleteDoc, deleteDocByQuery, getAllEntityFields, getDataSource, getEntityAttribute, getRequestParameters, getScript, getScriptLanguage, getSessionAttribute, getSolrCore, getStats, isRootEntity, setDoc |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ThreadedContext(org.apache.solr.handler.dataimport.DocBuilder.EntityRunner entityRunner, DocBuilder docBuilder, VariableResolverImpl resolver)
Method Detail |
---|
public VariableResolver getVariableResolver()
Context
getVariableResolver
in class ContextImpl
VariableResolver
public Context getParentContext()
Context
getParentContext
in class ContextImpl
public String currentProcess()
Context
currentProcess
in class ContextImpl
public EntityProcessor getEntityProcessor()
Context
getEntityProcessor
in class ContextImpl
EntityProcessor
public DataSource getDataSource()
Context
getDataSource
in class ContextImpl
DataSource
,
Context.getDataSource(String)
public String getResolvedEntityAttribute(String name)
Context
getResolvedEntityAttribute
in class ContextImpl
name
- name of the attribute
public void setSessionAttribute(String name, Object val, String scope)
Context
setSessionAttribute
in class ContextImpl
name
- the keyval
- the valuescope
- the scope in which the given key, value pair is to be storedpublic Object resolve(String var)
Context
resolve
in class ContextImpl
var
- the variable neme
public String replaceTokens(String template)
Context
replaceTokens
in class ContextImpl
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |