T - the type of objects that are extractedpublic abstract class AbstractIteratorExtractor<T> extends Object implements IExtractor<Iterator<T>>
| Modifier and Type | Field and Description |
|---|---|
protected int |
endIndex |
protected int |
startIndex |
| Constructor and Description |
|---|
AbstractIteratorExtractor() |
| Modifier and Type | Method and Description |
|---|---|
Iterator<T> |
extract()
Extracts elements from a source repository.
|
protected abstract Iterator<T> |
extractAll()
This method extracts everything there is to extract.
|
void |
init(AbstractETL<?,?> etl)
Initializes the extractor for a new harvest.
|
int |
size()
Returns the number of extractable documents, or -1 if they cannot
be estimated.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitclear, getUniqueVersionStringpublic void init(AbstractETL<?,?> etl)
IExtractorinit in interface IExtractor<Iterator<T>>etl - the AbstractETL to which the extractor belongsprotected abstract Iterator<T> extractAll() throws ExtractorException
ExtractorException - thrown when the extraction failspublic Iterator<T> extract() throws ExtractorException
IExtractorextract in interface IExtractor<Iterator<T>>ExtractorException - thrown when the extraction failspublic int size()
IExtractorsize in interface IExtractor<Iterator<T>>Copyright © 2017–2019. All rights reserved.