public class AssociationsPayloadIterator
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
static org.apache.lucene.index.Term |
ASSOCIATION_POSTING_TERM
Default Term for associations
|
static long |
NO_ASSOCIATION
The long-special-value returned for ordinals which have no associated int
value.
|
Constructor and Description |
---|
AssociationsPayloadIterator(org.apache.lucene.index.IndexReader reader,
java.lang.String field)
Construct a new association-iterator, initializing the inner payload
iterator, with the supplied term and checking whether there are any
associations within the given index
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(java.lang.Object obj) |
IntIterator |
getAssociatedOrdinals()
Get an iterator over the ordinals which has an association for the
document set by
setNextDoc(int) . |
long |
getAssociation(int ordinal)
Get int association value for the given ordinal.
|
int |
hashCode() |
boolean |
setNextDoc(int docId)
Skipping to the next document, fetching its associations & populating the
map.
|
public static final org.apache.lucene.index.Term ASSOCIATION_POSTING_TERM
public static final long NO_ASSOCIATION
public AssociationsPayloadIterator(org.apache.lucene.index.IndexReader reader, java.lang.String field) throws java.io.IOException
reader
- a reader containing the postings to be iteratedfield
- the field containing the relevant associations list termjava.io.IOException
public boolean setNextDoc(int docId) throws java.io.IOException
docId
- document id to be skipped tojava.io.IOException
- on errorpublic long getAssociation(int ordinal)
NO_ASSOCIATION
which is 'pure long' value (e.g not in the int
range of values)ordinal
- for which the association value is requestedNO_ASSOCIATION
otherwisepublic IntIterator getAssociatedOrdinals()
setNextDoc(int)
.public int hashCode()
hashCode
in class java.lang.Object
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
Copyright © 2000-2024 Apache Software Foundation. All Rights Reserved.