|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
@NotThreadSafe public interface Adder
Document adder for full indexers. Implementations are not thread-safe.
| Method Summary | |
|---|---|
void |
add(Document document)
Adds a document to the index. |
void |
add(Document document,
Analyzer analyzer)
Adds a document to the index. |
String |
getCheckpoint()
Returns the current checkpoint. |
void |
setCheckpoint(String checkpoint)
Sets the current checkpoint. |
void |
skip()
Notifies the adder that the current run should be skipped. |
| Method Detail |
|---|
String getCheckpoint()
throws InterruptedException
null if no checkpoint is available.
InterruptedException - if the current task has been interrupted.
void setCheckpoint(@Nullable
String checkpoint)
throws InterruptedException
checkpoint - New checkpoint.
InterruptedException - if the current task has been interrupted.
void skip()
throws InterruptedException
InterruptedException - if the current task has been interrupted.
void add(Document document)
throws InterruptedException
document - Document to add.
IndexException - if an error occurs.
InterruptedException - if the current task has been interrupted.
void add(Document document,
Analyzer analyzer)
throws InterruptedException
document - Document to add.analyzer - Analzer to use.
IndexException - if an error occurs.
InterruptedException - if the current task has been interrupted.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||