public final class MonotonicAppendingLongBuffer extends Object
Modifier and Type | Class and Description |
---|---|
class |
MonotonicAppendingLongBuffer.Iterator
A long iterator.
|
Constructor and Description |
---|
MonotonicAppendingLongBuffer()
Create an
MonotonicAppendingLongBuffer with initialPageCount=16
and pageSize=1024. |
MonotonicAppendingLongBuffer(int initialPageCount,
int pageSize) |
Modifier and Type | Method and Description |
---|---|
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.
|
public MonotonicAppendingLongBuffer(int initialPageCount, int pageSize)
initialPageCount
- the initial number of pagespageSize
- the size of a single pagepublic MonotonicAppendingLongBuffer()
MonotonicAppendingLongBuffer
with initialPageCount=16
and pageSize=1024.public MonotonicAppendingLongBuffer.Iterator iterator()
public long ramBytesUsed()
public final long size()
public final void add(long l)
public final long get(long index)
Copyright © 2000-2013 Apache Software Foundation. All Rights Reserved.