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