|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface ObjectQueue
Queue of objects that need to be indexed. Partitions the total collection of objects to be indexed into sub-collections that individual threads can grab and process.
An ObjectQueue MUST be read-only and MUST NOT be externally modified once it has been created.
There is no need for implementations to be thread-safe. Synchronization will be handled by clients.
| Nested Class Summary | |
|---|---|
static interface |
ObjectQueue.Processor
Creates Documents from objects via
ObjectToDocumentConverter, then passes the created Document to a Callback. |
| Method Summary | |
|---|---|
ObjectQueue.Processor |
getProcessor()
Get this queue's processor. |
boolean |
hasMore()
Are there more objects in the queue? |
java.util.Collection |
pop()
Pops a block of objects to index. |
int |
size()
Size of queue. |
| Method Detail |
|---|
java.util.Collection pop()
boolean hasMore()
int size()
ObjectQueue.Processor getProcessor()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||