public interface IndexSource
| Modifier and Type | Method and Description |
|---|---|
void |
endIndexing(List<IndexRow> failed)
This method must be called after the indexing is finished to allow data cleanup and handling of failed indexing data
|
IndexSourceMetadata |
getConfiguration()
Gets the metadata information for this index source.
|
Iterable<IndexRow> |
getDeleted()
Gets the list of index data need to be deleted that this index source contains.
|
QueryExpression |
getDeleteQuery()
Gets the QueryExpression that SearchEngine could use to delete all the data that satisfy the QueryExpression.
|
Iterable<IndexRow> |
getModified()
Gets the list of updated index data that this index source contains.
|
String |
getName()
Gets the name of the IndexSource.
|
Iterable<IndexRow> |
getNew()
Gets the list of new index data that this index source contains.
|
void |
startIndexing()
This method must to be called before actual indexing begins so that IndexSource would prepare the data needed
|
String getName()
Iterable<IndexRow> getNew() throws IndexSourceException
IndexSourceException - throws IndexSourceException if error met in getting the new index dataIterable<IndexRow> getModified() throws IndexSourceException
IndexSourceException - throws IndexSourceException if error met in getting the updated index dataIterable<IndexRow> getDeleted() throws IndexSourceException
IndexSourceException - throws IndexSourceException if error met in getting the index dataQueryExpression getDeleteQuery()
void startIndexing()
throws IndexSourceException
IndexSourceException - throws IndexSourceException if error metvoid endIndexing(List<IndexRow> failed)
failed - a list of IndexRow which failed to indexIndexSourceMetadata getConfiguration()