|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.lucene.search.DocIdSet
org.elasticsearch.common.lucene.docset.DocSet
org.elasticsearch.common.lucene.docset.SlicedOpenBitSet
public class SlicedOpenBitSet
Derived from OpenBitSet
but works from a slice out of a provided long[] array.
It does not expand, as it assumes that the slice is from a cached long[] array, so we can't really expand...
Nested Class Summary | |
---|---|
static class |
SlicedOpenBitSet.SlicedIterator
An iterator to iterate over set bits in an OpenBitSet. |
Field Summary |
---|
Fields inherited from class org.elasticsearch.common.lucene.docset.DocSet |
---|
EMPTY_DOC_SET |
Fields inherited from class org.apache.lucene.search.DocIdSet |
---|
EMPTY_DOCIDSET |
Constructor Summary | |
---|---|
SlicedOpenBitSet(long[] bits,
int wlen,
int from)
|
|
SlicedOpenBitSet(long[] bits,
int from,
org.apache.lucene.util.OpenBitSet setToCopy)
|
Method Summary | |
---|---|
long |
capacity()
Returns the current capacity in bits (1 greater than the index of the last bit) |
long |
cardinality()
|
boolean |
fastGet(int index)
Returns true or false for the specified bit index. |
boolean |
fastGet(long index)
Returns true or false for the specified bit index. |
void |
fastSet(int index)
Sets the bit at the specified index. |
void |
fastSet(long index)
Sets the bit at the specified index. |
boolean |
get(int index)
Returns true or false for the specified bit index. |
boolean |
get(long index)
Returns true or false for the specified bit index |
boolean |
isCacheable()
|
org.apache.lucene.search.DocIdSetIterator |
iterator()
|
long |
size()
Returns the current capacity of this set. |
long |
sizeInBytes()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public SlicedOpenBitSet(long[] bits, int from, org.apache.lucene.util.OpenBitSet setToCopy)
public SlicedOpenBitSet(long[] bits, int wlen, int from)
Method Detail |
---|
public boolean isCacheable()
isCacheable
in class org.apache.lucene.search.DocIdSet
public long sizeInBytes()
sizeInBytes
in class DocSet
public long capacity()
public long size()
cardinality()
public long cardinality()
public boolean get(int index)
get
in class DocSet
public boolean fastGet(int index)
public boolean get(long index)
public boolean fastGet(long index)
public void fastSet(int index)
public void fastSet(long index)
public org.apache.lucene.search.DocIdSetIterator iterator() throws java.io.IOException
iterator
in class org.apache.lucene.search.DocIdSet
java.io.IOException
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |