public class IntAssociationsPayloadIterator extends AssociationsPayloadIterator<CategoryIntAssociation>
AssociationsPayloadIterator over integer association values.| Constructor and Description |
|---|
IntAssociationsPayloadIterator(String field,
CategoryIntAssociation association) |
| Modifier and Type | Method and Description |
|---|---|
IntToIntMap |
getAssociations(int docID)
Returns the integer association values of the categories that are
associated with the given document, or
null if the document has no
associations. |
protected void |
handleAssociation(int ordinal,
CategoryIntAssociation association)
A hook for extending classes to handle the given association value for the ordinal.
|
setNextDoc, setNextReaderpublic IntAssociationsPayloadIterator(String field, CategoryIntAssociation association) throws IOException
IOExceptionprotected void handleAssociation(int ordinal,
CategoryIntAssociation association)
AssociationsPayloadIteratorhandleAssociation in class AssociationsPayloadIterator<CategoryIntAssociation>public IntToIntMap getAssociations(int docID) throws IOException
null if the document has no
associations.
NOTE: you are not expected to modify the returned map.
IOExceptionCopyright © 2000-2013 Apache Software Foundation. All Rights Reserved.