public abstract class AssociationsPayloadIterator<T extends CategoryAssociation> extends Object
Constructor and Description |
---|
AssociationsPayloadIterator(String field,
T association)
Construct a new associations iterator.
|
Modifier and Type | Method and Description |
---|---|
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. |
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
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)
Copyright © 2000-2013 Apache Software Foundation. All Rights Reserved.