|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.lucene.facet.associations.AssociationsPayloadIterator<T>
public abstract class AssociationsPayloadIterator<T extends CategoryAssociation>
An iterator over a document's category associations.
Constructor Summary | |
---|---|
AssociationsPayloadIterator(String field,
T association)
Construct a new associations iterator. |
Method Summary | |
---|---|
protected abstract void |
handleAssociation(int ordinal,
T association)
A hook for extending classes to handle the given association value for the ordinal. |
protected boolean |
setNextDoc(int docID)
Skip to the requested document. |
boolean |
setNextReader(AtomicReaderContext context)
Sets the AtomicReaderContext for which setNextDoc(int)
calls will be made. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public AssociationsPayloadIterator(String field, T association) throws IOException
CategoryAssociation
is used to deserialize the association values.
It is assumed that all association values can be deserialized with the
given CategoryAssociation
.
IOException
Method Detail |
---|
public final boolean setNextReader(AtomicReaderContext context) throws IOException
AtomicReaderContext
for which setNextDoc(int)
calls will be made. Returns true iff this reader has associations for any
of the documents belonging to the association given to the constructor.
IOException
protected final boolean setNextDoc(int docID) throws IOException
handleAssociation(int, CategoryAssociation)
by
extending classes.
IOException
protected abstract void handleAssociation(int ordinal, T association)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |