public class HadoopOffheapBuffer extends Object
| Constructor and Description |
|---|
HadoopOffheapBuffer(long bufPtr,
long bufSize) |
| Modifier and Type | Method and Description |
|---|---|
long |
begin() |
long |
capacity() |
boolean |
isInside(long ptr) |
long |
move(long size) |
long |
moveBackward(long size) |
long |
pointer() |
void |
pointer(long ptr) |
long |
remaining() |
void |
reset()
Resets position to the beginning of buffer.
|
void |
set(long bufPtr,
long bufSize) |
public HadoopOffheapBuffer(long bufPtr,
long bufSize)
bufPtr - Pointer to buffer begin.bufSize - Size of the buffer.public void set(long bufPtr,
long bufSize)
bufPtr - Pointer to buffer begin.bufSize - Size of the buffer.public long begin()
public long capacity()
public long remaining()
public long pointer()
public void pointer(long ptr)
ptr - Absolute pointer to the current position inside of the buffer.public long move(long size)
size - Size move on.0 if move goes beyond the end of the buffer.public long moveBackward(long size)
size - Size move on.0 if move goes beyond the begin of the buffer.public boolean isInside(long ptr)
ptr - Pointer.true If the given pointer is inside of this buffer.public void reset()
Follow @ApacheIgnite
Ignite Fabric : ver. 2.5.1-p166 Release Date : September 3 2019