public class FloatAssociationsPayloadIterator extends AssociationsPayloadIterator<CategoryFloatAssociation>
AssociationsPayloadIterator over integer association values.| Constructor and Description |
|---|
FloatAssociationsPayloadIterator(String field,
CategoryFloatAssociation association) |
| Modifier and Type | Method and Description |
|---|---|
IntToFloatMap |
getAssociations(int docID)
Returns the float 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,
CategoryFloatAssociation association)
A hook for extending classes to handle the given association value for the ordinal.
|
setNextDoc, setNextReaderpublic FloatAssociationsPayloadIterator(String field, CategoryFloatAssociation association) throws IOException
IOExceptionprotected void handleAssociation(int ordinal,
CategoryFloatAssociation association)
AssociationsPayloadIteratorhandleAssociation in class AssociationsPayloadIterator<CategoryFloatAssociation>public IntToFloatMap 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.