|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.lucene.util.packed.AppendingLongBuffer
public final class AppendingLongBuffer
Utility class to buffer a list of signed longs in memory. This class only supports appending and is optimized for the case where values are close to each other.
Nested Class Summary | |
---|---|
class |
AppendingLongBuffer.Iterator
A long iterator. |
Constructor Summary | |
---|---|
AppendingLongBuffer()
Sole constructor. |
Method Summary | |
---|---|
void |
add(long l)
Append a value to this buffer. |
long |
get(long index)
Get a value from this buffer. |
AppendingLongBuffer.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 AppendingLongBuffer()
Method Detail |
---|
public AppendingLongBuffer.Iterator iterator()
public final long size()
public final void add(long l)
public final long get(long index)
public long ramBytesUsed()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |