java.lang.Object | ||
↳ | org.apache.lucene.search.DocIdSet | |
↳ | org.apache.lucene.util.SortedVIntList |
Stores and iterate on sorted integers in compressed form in RAM.
The code for compressing the differences between ascending integers was
borrowed from IndexInput
and
IndexOutput
.
NOTE: this class assumes the stored integers are doc Ids (hence why it
extends DocIdSet
). Therefore its iterator()
assumes NO_MORE_DOCS
can be used as sentinel. If you intent to use
this value, then make sure it's not used during search flow.
[Expand]
Inherited Fields | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
From class
org.apache.lucene.search.DocIdSet
|
Public Constructors | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Create a SortedVIntList from all elements of an array of integers.
| |||||||||||
Create a SortedVIntList from an array of integers.
| |||||||||||
Create a SortedVIntList from a BitSet.
| |||||||||||
Create a SortedVIntList from an OpenBitSet.
| |||||||||||
Create a SortedVIntList.
|
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
This DocIdSet implementation is cacheable.
| |||||||||||
Provides a
DocIdSetIterator to access the set. | |||||||||||
[Expand]
Inherited Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
From class
org.apache.lucene.search.DocIdSet
| |||||||||||
From class
java.lang.Object
|
Create a SortedVIntList from all elements of an array of integers.
sortedInts | A sorted array of non negative integers. |
---|
Create a SortedVIntList from an array of integers.
sortedInts | An array of sorted non negative integers. |
---|---|
inputSize | The number of integers to be used from the array. |
Create a SortedVIntList from a BitSet.
bits | A bit set representing a set of integers. |
---|
Create a SortedVIntList from an OpenBitSet.
bits | A bit set representing a set of integers. |
---|
Create a SortedVIntList.
docIdSetIterator | An iterator providing document numbers as a set of integers. This DocIdSetIterator is iterated completely when this constructor is called and it must provide the integers in non decreasing order. |
---|
IOException |
---|
This DocIdSet implementation is cacheable.
Provides a DocIdSetIterator
to access the set.
This implementation can return null
or
if there
are no docs that match. EMPTY_DOCIDSET
.iterator()