|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.lucene.util.packed.MonotonicAppendingLongBuffer
public final class MonotonicAppendingLongBuffer
Utility class to buffer signed longs in memory, which is optimized for the case where the sequence is monotonic, although it can encode any sequence of arbitrary longs. It only supports appending.
Nested Class Summary | |
---|---|
class |
MonotonicAppendingLongBuffer.Iterator
A long iterator. |
Constructor Summary | |
---|---|
MonotonicAppendingLongBuffer()
Sole constructor. |
Method Summary | |
---|---|
void |
add(long l)
Append a value to this buffer. |
long |
get(long index)
Get a value from this buffer. |
MonotonicAppendingLongBuffer.Iterator |
iterator()
Return an iterator over the values of this buffer. |
long |
ramBytesUsed()
Return the number of bytes used by this instance. |
long |
size()
Get the number of values that have been added to the buffer. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public MonotonicAppendingLongBuffer()
Method Detail |
---|
public MonotonicAppendingLongBuffer.Iterator iterator()
public long ramBytesUsed()
public final long size()
public final void add(long l)
public final long get(long index)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |