| Constructor and Description |
|---|
Tuple(byte[][] data)
Construct a populated tuple.
|
Tuple(byte[][] data,
int rowSize) |
Tuple(int length)
Construct an empty tuple.
|
| Modifier and Type | Method and Description |
|---|---|
int |
fieldCount()
Number of fields in the tuple
|
byte[] |
get(int index)
Get the data for the given field
|
int |
getTupleSize()
Total size in bytes (including overheads) of this Tuple instance on the heap (estimated)
|
int |
length()
Total length in bytes of the tuple data.
|
Tuple |
readOnlyCopy()
Create a read-only copy of the tuple
|
void |
set(int index,
byte[] fieldData)
Set the given field to the given data.
|
Tuple |
updateableCopy()
Create a copy of the tuple for updating.
|
public Tuple(int length)
length - the number of fields in the tuple.public Tuple(byte[][] data)
data - the tuple datapublic Tuple(byte[][] data,
int rowSize)
public int fieldCount()
public int length()
public int getTupleSize()
public byte[] get(int index)
index - 0-based field position in the tuplepublic Tuple updateableCopy()
public Tuple readOnlyCopy()
public void set(int index,
byte[] fieldData)
index - 0-based field positionfieldData - the data to setCopyright © 2024 Amazon.com Inc.. All rights reserved.