@ThriftStruct public final class PrestoThriftJson extends Object implements PrestoThriftColumnData
nulls array determine if a value for a corresponding row is null.
Each elements of sizes array contains the length in bytes for the corresponding element.
If row is null then the corresponding element in sizes is ignored.
bytes array contains UTF-8 encoded byte values for string representation of json.
Values for all rows are written to bytes array one after another.
The total number of bytes must be equal to the sum of all sizes.| Constructor and Description |
|---|
PrestoThriftJson(boolean[] nulls,
int[] sizes,
byte[] bytes) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object obj) |
static PrestoThriftBlock |
fromBlock(Block block,
Type type) |
byte[] |
getBytes() |
boolean[] |
getNulls() |
int[] |
getSizes() |
int |
hashCode() |
int |
numberOfRecords() |
Block |
toBlock(Type desiredType) |
String |
toString() |
@Nullable @ThriftField(value=1, requiredness=OPTIONAL) public boolean[] getNulls()
@Nullable @ThriftField(value=2, requiredness=OPTIONAL) public int[] getSizes()
@Nullable @ThriftField(value=3, requiredness=OPTIONAL) public byte[] getBytes()
public Block toBlock(Type desiredType)
toBlock in interface PrestoThriftColumnDatapublic int numberOfRecords()
numberOfRecords in interface PrestoThriftColumnDatapublic static PrestoThriftBlock fromBlock(Block block, Type type)
Copyright © 2012–2023. All rights reserved.