S - the type of the documents to be loadedpublic abstract class AbstractIteratorLoader<S> extends Object implements ILoader<Iterator<S>>
| Modifier and Type | Field and Description |
|---|---|
protected AbstractIteratorETL<?,?> |
dedicatedEtl |
protected boolean |
hasLoadedDocuments |
| Constructor and Description |
|---|
AbstractIteratorLoader() |
| Modifier and Type | Method and Description |
|---|---|
void |
init(AbstractETL<?,?> etl)
Initializes the loader for a new harvest.
|
void |
load(Iterator<S> documents)
Loads the document to a targeted search index.
|
protected abstract void |
loadElement(S document)
Loads a single element of the Iterator.
|
protected void |
loadElementAndIncrement(S document)
Loads a single element of the Iterator and increments
the number of harvested documents of the dedicated harvester, regardless
of whether the loading succeeded or not.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitclear, unregisterParametersprotected AbstractIteratorETL<?,?> dedicatedEtl
protected boolean hasLoadedDocuments
public void init(AbstractETL<?,?> etl)
ILoaderinit in interface ILoader<Iterator<S>>etl - the AbstractETL to which the loader belongspublic void load(Iterator<S> documents) throws LoaderException
ILoaderload in interface ILoader<Iterator<S>>documents - the document that is to be loadedLoaderException - when the load did not work properlyprotected void loadElementAndIncrement(S document) throws LoaderException
document - a document that is to be loadedLoaderException - when the load failedprotected abstract void loadElement(S document) throws LoaderException
document - a document that is to be loadedLoaderException - when the load failedCopyright © 2017–2019. All rights reserved.