T - the type of objects that are extractedpublic interface IExtractor<T>
| Modifier and Type | Method and Description |
|---|---|
void |
clear()
Closes potentially open readers/writers and finishes the Extraction process
if it is still ongoing.
|
T |
extract()
Extracts elements from a source repository.
|
String |
getUniqueVersionString()
Returns a string that can be hashed to generate a unique
identifier for the current version of the extractable elements.
|
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.
|
void init(AbstractETL<?,?> etl)
etl - the AbstractETL to which the extractor belongsT extract() throws ExtractorException
ExtractorException - thrown when the extraction failsString getUniqueVersionString()
int size()
void clear()
Copyright © 2017–2019. All rights reserved.