|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
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 |
public java.util.Collection pop()
public boolean hasMore()
public int size()
public ObjectQueue.Processor getProcessor()
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||