public class DocBuilder extends Object
DocBuilder
is responsible for creating Solr documents out of the given configuration. It also maintains
statistics information. It depends on the EntityProcessor
implementations to fetch data.
This API is experimental and subject to change
Modifier and Type | Class and Description |
---|---|
static class |
DocBuilder.Statistics |
Modifier and Type | Field and Description |
---|---|
static String |
DELETE_DOC_BY_ID |
static String |
DELETE_DOC_BY_QUERY |
static String |
DOC_BOOST |
DocBuilder.Statistics |
importStatistics |
static String |
INDEX_START_TIME |
static String |
LAST_INDEX_TIME |
static String |
SKIP_DOC |
static String |
SKIP_ROW |
static String |
TIME_ELAPSED |
Constructor and Description |
---|
DocBuilder(DataImporter dataImporter,
DIHWriter solrWriter,
DIHProperties propWriter,
RequestInfo reqParams) |
Modifier and Type | Method and Description |
---|---|
void |
abort() |
void |
addStatusMessage(String msg) |
Set<Map<String,Object>> |
collectDelta(EntityProcessorWrapper epw,
VariableResolver resolver,
Set<Map<String,Object>> deletedRows)
Collects unique keys of all Solr documents for whom one or more source tables have been changed since the last
indexed time.
|
void |
execute() |
EntityProcessorWrapper |
getEntityProcessorWrapper(Entity entity) |
RequestInfo |
getReqParams() |
public static final String DELETE_DOC_BY_ID
public static final String DELETE_DOC_BY_QUERY
public static final String DOC_BOOST
public static final String SKIP_DOC
public static final String SKIP_ROW
public DocBuilder.Statistics importStatistics
public static final String TIME_ELAPSED
public static final String LAST_INDEX_TIME
public static final String INDEX_START_TIME
public DocBuilder(DataImporter dataImporter, DIHWriter solrWriter, DIHProperties propWriter, RequestInfo reqParams)
public void execute()
public void addStatusMessage(String msg)
public EntityProcessorWrapper getEntityProcessorWrapper(Entity entity)
public Set<Map<String,Object>> collectDelta(EntityProcessorWrapper epw, VariableResolver resolver, Set<Map<String,Object>> deletedRows)
Collects unique keys of all Solr documents for whom one or more source tables have been changed since the last indexed time.
Note: In our definition, unique key of Solr document is the primary key of the top level entity (unless skipped using docRoot=false) in the Solr document in data-config.xml
public void abort()
public RequestInfo getReqParams()
Copyright © 2000-2019 Apache Software Foundation. All Rights Reserved.