Package | Description |
---|---|
org.apache.solr.search |
Modifier and Type | Method and Description |
---|---|
DocIterator |
SortedIntDocSet.iterator() |
DocIterator |
HashDocSet.iterator() |
DocIterator |
DocSlice.iterator() |
DocIterator |
DocSet.iterator()
Returns an iterator that may be used to iterate over all of the documents in the set.
|
DocIterator |
DocList.iterator()
Returns an iterator that may be used to iterate over the documents in this DocList
The order of the documents returned by this iterator is based on the
Sort order of the search that produced it.
|
DocIterator |
BitDocSet.iterator()
DocIterator using nextSetBit()
public DocIterator iterator() {
return new DocIterator() {
int pos=bits.nextSetBit(0);
public boolean hasNext() {
return pos>=0;
}
public Integer next() {
return nextDoc();
}
public void remove() {
bits.clear(pos);
}
public int nextDoc() {
int old=pos;
pos=bits.nextSetBit(old+1);
return old;
}
public float score() {
return 0.0f;
}
};
}
|