com.browseengine.bobo.util
Class LazyBigIntArray
java.lang.Object
com.browseengine.bobo.util.BigSegmentedArray
com.browseengine.bobo.util.LazyBigIntArray
- All Implemented Interfaces:
- Serializable
public class LazyBigIntArray
- extends BigSegmentedArray
- implements Serializable
- Author:
- jko
BigSegmentedArray that creates segments only when the corresponding index is
being accessed.
- See Also:
- Serialized Form
|
Method Summary |
void |
add(int id,
int val)
|
void |
ensureCapacity(int size)
|
void |
fill(int val)
|
int |
findBits(int bits,
int id,
int maxId)
|
int |
findValue(int val,
int id,
int maxId)
|
int |
findValueRange(int minVal,
int maxVal,
int id,
int maxId)
|
int |
findValues(org.apache.lucene.util.BitVector bitset,
int id,
int maxId)
|
int |
findValues(org.apache.lucene.util.OpenBitSet bitset,
int id,
int maxId)
|
int |
get(int id)
|
int |
maxValue()
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
LazyBigIntArray
public LazyBigIntArray(int size)
get
public int get(int id)
- Specified by:
get in class BigSegmentedArray
add
public void add(int id,
int val)
- Specified by:
add in class BigSegmentedArray
fill
public void fill(int val)
- Specified by:
fill in class BigSegmentedArray
ensureCapacity
public void ensureCapacity(int size)
- Specified by:
ensureCapacity in class BigSegmentedArray
maxValue
public int maxValue()
- Specified by:
maxValue in class BigSegmentedArray
findValue
public int findValue(int val,
int id,
int maxId)
- Specified by:
findValue in class BigSegmentedArray
findValues
public int findValues(org.apache.lucene.util.OpenBitSet bitset,
int id,
int maxId)
- Specified by:
findValues in class BigSegmentedArray
findValues
public int findValues(org.apache.lucene.util.BitVector bitset,
int id,
int maxId)
- Specified by:
findValues in class BigSegmentedArray
findValueRange
public int findValueRange(int minVal,
int maxVal,
int id,
int maxId)
- Specified by:
findValueRange in class BigSegmentedArray
findBits
public int findBits(int bits,
int id,
int maxId)
- Specified by:
findBits in class BigSegmentedArray
Copyright © 2005-2013. All Rights Reserved.