|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.solr.handler.dataimport.EntityProcessor
org.apache.solr.handler.dataimport.EntityProcessorBase
org.apache.solr.handler.dataimport.SqlEntityProcessor
public class SqlEntityProcessor
An EntityProcessor instance which provides support for reading from databases. It is used in conjunction with JdbcDataSource. This is the default EntityProcessor if none is specified explicitly in data-config.xml
Refer to http://wiki.apache.org/solr/DataImportHandler for more details.
This API is experimental and may change in the future.
Field Summary | |
---|---|
protected DataSource<Iterator<Map<String,Object>>> |
dataSource
|
static String |
DEL_PK_QUERY
|
static String |
DELTA_IMPORT_QUERY
|
static String |
DELTA_QUERY
|
static Pattern |
DOT_PATTERN
|
static String |
PARENT_DELTA_QUERY
|
static String |
QUERY
|
Fields inherited from class org.apache.solr.handler.dataimport.EntityProcessorBase |
---|
ABORT, CACHE_KEY, CACHE_LOOKUP, cachePk, cacheVariableName, cacheWithWhereClause, context, CONTINUE, dataSourceRowCache, entityName, isFirstInit, ON_ERROR, onError, query, resolver, rowIterator, simpleCache, SKIP, SKIP_DOC, TRANSFORM_ROW, TRANSFORMER, transformers |
Constructor Summary | |
---|---|
SqlEntityProcessor()
|
Method Summary | |
---|---|
String |
getDeltaImportQuery(String queryString)
|
String |
getQuery()
|
void |
init(Context context)
This method is called when it starts processing an entity. |
protected void |
initQuery(String q)
|
Map<String,Object> |
nextDeletedRowKey()
This is used during delta-import. |
Map<String,Object> |
nextModifiedParentRowKey()
This is used during delta-import. |
Map<String,Object> |
nextModifiedRowKey()
This is used for delta-import. |
Map<String,Object> |
nextRow()
For a simple implementation, this is the only method that the sub-class should implement. |
Methods inherited from class org.apache.solr.handler.dataimport.EntityProcessorBase |
---|
cacheInit, destroy, firstInit, getAllNonCachedRows, getFromRowCacheTransformed, getIdCacheData, getNext, getSimpleCacheData |
Methods inherited from class org.apache.solr.handler.dataimport.EntityProcessor |
---|
close, postTransform |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected DataSource<Iterator<Map<String,Object>>> dataSource
public static final String QUERY
public static final String DELTA_QUERY
public static final String DELTA_IMPORT_QUERY
public static final String PARENT_DELTA_QUERY
public static final String DEL_PK_QUERY
public static final Pattern DOT_PATTERN
Constructor Detail |
---|
public SqlEntityProcessor()
Method Detail |
---|
public void init(Context context)
EntityProcessor
init
in class EntityProcessorBase
context
- The current contextprotected void initQuery(String q)
public Map<String,Object> nextRow()
EntityProcessorBase
nextRow
in class EntityProcessorBase
public Map<String,Object> nextModifiedRowKey()
EntityProcessor
nextModifiedRowKey
in class EntityProcessorBase
public Map<String,Object> nextDeletedRowKey()
EntityProcessor
nextDeletedRowKey
in class EntityProcessorBase
public Map<String,Object> nextModifiedParentRowKey()
EntityProcessor
nextModifiedParentRowKey
in class EntityProcessorBase
public String getQuery()
public String getDeltaImportQuery(String queryString)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |