|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.lucene.search.DocIdSet
org.apache.lucene.util.SortedVIntList
public class SortedVIntList
Store and iterate sorted integers in compressed form in RAM.
The code for compressing the differences between ascending integers was
borrowed from IndexInput and
IndexOutput.
| Constructor Summary | |
|---|---|
SortedVIntList(BitSet bits)
Create a SortedVIntList from a BitSet. |
|
SortedVIntList(DocIdSetIterator docIdSetIterator)
Create a SortedVIntList. |
|
SortedVIntList(int[] sortedInts)
Create a SortedVIntList from all elements of an array of integers. |
|
SortedVIntList(int[] sortedInts,
int inputSize)
Create a SortedVIntList from an array of integers. |
|
SortedVIntList(OpenBitSet bits)
Create a SortedVIntList from an OpenBitSet. |
|
| Method Summary | |
|---|---|
int |
getByteSize()
|
DocIdSetIterator |
iterator()
|
int |
size()
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public SortedVIntList(int[] sortedInts)
sortedInts - A sorted array of non negative integers.
public SortedVIntList(int[] sortedInts,
int inputSize)
sortedInts - An array of sorted non negative integers.inputSize - The number of integers to be used from the array.public SortedVIntList(BitSet bits)
bits - A bit set representing a set of integers.public SortedVIntList(OpenBitSet bits)
bits - A bit set representing a set of integers.
public SortedVIntList(DocIdSetIterator docIdSetIterator)
throws IOException
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| Method Detail |
|---|
public int size()
public int getByteSize()
public DocIdSetIterator iterator()
iterator in class DocIdSet
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||