@NotThreadSafe public static interface QueryIndex.ResultWriter
QueryIndex.Operation
instance when the query engine needs additional results for the query.
Instances of this type are created by ModeShape and passed into the Operation#getNextBatch(ResultWriter, int)
method. Thus, providers do not need to implement this interface (except maybe for testing purposes).
Modifier and Type | Method and Description |
---|---|
void |
add(Iterable<NodeKey> nodeKeys,
float score)
Add to the current batch a series of node keys with the same score for each node key.
|
void |
add(Iterator<NodeKey> nodeKeys,
float score)
Add to the current batch a series of node keys with the same score for each node key.
|
void |
add(NodeKey nodeKey,
float score)
Add to the current batch a single node key with a score.
|
void add(NodeKey nodeKey, float score)
nodeKey
- the node key; may not be nullscore
- the score; must be positivevoid add(Iterable<NodeKey> nodeKeys, float score)
nodeKeys
- the node keys; may not be nullscore
- the score; must be positiveCopyright © 2008-2014 JBoss, a division of Red Hat. All Rights Reserved.