Constructor and Description |
---|
Tuple(byte[][] data)
Construct a populated tuple.
|
Tuple(int length)
Construct an empty tuple.
|
Modifier and Type | Method and Description |
---|---|
@NonNegative int |
fieldCount()
Number of fields in the tuple
|
byte[] |
get(@NonNegative int index)
Get the data for the given field
|
@NonNegative int |
length()
Total length in bytes of the tuple data.
|
Tuple |
readOnlyCopy()
Create a read-only copy of the tuple
|
void |
set(@NonNegative 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 @NonNegative int fieldCount()
public @NonNegative int length()
@Pure public byte[] get(@NonNegative int index)
index
- 0-based field position in the tuplepublic Tuple updateableCopy()
public Tuple readOnlyCopy()
public void set(@NonNegative int index, byte[] fieldData)
index
- 0-based field positionfieldData
- the data to setCopyright © 1997-2020 PostgreSQL Global Development Group. All Rights Reserved.