public final class RecordDataHolder extends Object implements RecordDataSink
RecordDataSink.| Modifier and Type | Field and Description |
|---|---|
static int |
INITIAL_BUFSIZE
Initial size of the key/value byte buffers
|
ByteBuffer |
keyBuffer |
ByteBuffer |
valueBuffer |
| Constructor and Description |
|---|
RecordDataHolder() |
| Modifier and Type | Method and Description |
|---|---|
void |
clear() |
void |
flip() |
ByteBuffer |
getKeyBuffer(int keySize)
Provides a
ByteBuffer into which the key data should
be put. |
ByteBuffer |
getValueBuffer(int valueSize)
Provides a
ByteBuffer into which the value data should
be put. |
public static final int INITIAL_BUFSIZE
public ByteBuffer keyBuffer
public ByteBuffer valueBuffer
public ByteBuffer getKeyBuffer(int keySize)
RecordDataSinkByteBuffer into which the key data should
be put. The buffer will have sufficient remaining()
bytes to accommodate the requested key size.getKeyBuffer in interface RecordDataSinkkeySize - size of the record's keypublic ByteBuffer getValueBuffer(int valueSize)
RecordDataSinkByteBuffer into which the value data should
be put. The buffer will have sufficient remaining()
bytes to accommodate the requested value size.getValueBuffer in interface RecordDataSinkvalueSize - size of the record's valuepublic void clear()
public void flip()
Copyright © 2022 Hazelcast, Inc.. All Rights Reserved.