public class SqlEntityProcessor extends EntityProcessorBase
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.| Modifier and Type | Field and Description |
|---|---|
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 |
ABORT, cacheSupport, context, CONTINUE, entityName, isFirstInit, ON_ERROR, onError, query, rowIterator, SKIP, TRANSFORM_ROW, TRANSFORMER| Constructor and Description |
|---|
SqlEntityProcessor() |
| Modifier and Type | Method and Description |
|---|---|
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.
|
destroy, firstInit, getNext, initCacheclose, postTransformprotected 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
public void init(Context context)
EntityProcessorinit in class EntityProcessorBasecontext - The current contextprotected void initQuery(String q)
public Map<String,Object> nextRow()
EntityProcessorBasenextRow in class EntityProcessorBasepublic Map<String,Object> nextModifiedRowKey()
EntityProcessornextModifiedRowKey in class EntityProcessorBasepublic Map<String,Object> nextDeletedRowKey()
EntityProcessornextDeletedRowKey in class EntityProcessorBasepublic Map<String,Object> nextModifiedParentRowKey()
EntityProcessornextModifiedParentRowKey in class EntityProcessorBasepublic String getQuery()
Copyright © 2000-2015 Apache Software Foundation. All Rights Reserved.