public class BinaryRow extends Object implements Row
Row backed by binary buffer instead of java objects.
Equality comparison and hashing of rows can be performed on raw bytes since if two rows are identical so should be their bit-wise representation.
| Constructor and Description |
|---|
BinaryRow(org.apache.arrow.vector.types.pojo.Schema schema) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
anyNull() |
void |
assertIndexIsValid(int index) |
Row |
copy() |
BinaryArray |
getArray(int ordinal) |
int |
getBaseOffset() |
byte[] |
getBinary(int ordinal) |
boolean |
getBoolean(int ordinal) |
MemoryBuffer |
getBuffer() |
MemoryBuffer |
getBuffer(int ordinal) |
byte |
getByte(int ordinal) |
int |
getDate(int ordinal) |
BigDecimal |
getDecimal(int ordinal) |
float |
getFloat32(int ordinal) |
double |
getFloat64(int ordinal) |
short |
getInt16(int ordinal) |
int |
getInt32(int ordinal) |
long |
getInt64(int ordinal) |
BinaryMap |
getMap(int ordinal) |
int |
getOffset(int ordinal) |
org.apache.arrow.vector.types.pojo.Schema |
getSchema() |
int |
getSizeInBytes() |
String |
getString(int ordinal) |
BinaryRow |
getStruct(int ordinal) |
long |
getTimestamp(int ordinal) |
static boolean |
isFixedLength(org.apache.arrow.vector.types.pojo.ArrowType type)
If it is a fixed-length field, we can call this BinaryRow's setXX method for in-place updates.
|
boolean |
isNullAt(int ordinal) |
int |
numFields() |
void |
pointTo(MemoryBuffer buffer,
int offset,
int sizeInBytes) |
void |
setBoolean(int ordinal,
boolean value) |
void |
setByte(int ordinal,
byte value) |
void |
setDate(int ordinal,
int value) |
void |
setFloat32(int ordinal,
float value) |
void |
setFloat64(int ordinal,
double value) |
void |
setInt16(int ordinal,
short value) |
void |
setInt32(int ordinal,
int value) |
void |
setInt64(int ordinal,
long value) |
void |
setNotNullAt(int ordinal) |
void |
setNullAt(int ordinal) |
void |
setTimestamp(int ordinal,
long value) |
byte[] |
toBytes() |
String |
toDebugString() |
Map<String,Object> |
toMap() |
String |
toString() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitget, getBinary, getBoolean, getBuffer, getByte, getDate, getFloat32, getFloat64, getInt16, getInt32, getInt64, getString, getTimestampsetArray, setBinary, setBoolean, setByte, setDate, setDecimal, setFloat32, setFloat64, setInt16, setInt32, setInt64, setMap, setString, setStruct, setTimestamppublic void pointTo(MemoryBuffer buffer, int offset, int sizeInBytes)
public org.apache.arrow.vector.types.pojo.Schema getSchema()
public int getSizeInBytes()
public int getBaseOffset()
public MemoryBuffer getBuffer()
public int getOffset(int ordinal)
public void assertIndexIsValid(int index)
public void setNotNullAt(int ordinal)
public BigDecimal getDecimal(int ordinal)
getDecimal in interface Getterspublic BinaryArray getArray(int ordinal)
public String toDebugString()
public byte[] toBytes()
public static boolean isFixedLength(org.apache.arrow.vector.types.pojo.ArrowType type)
public MemoryBuffer getBuffer(int ordinal)
public boolean getBoolean(int ordinal)
getBoolean in interface Getterspublic float getFloat32(int ordinal)
getFloat32 in interface Getterspublic double getFloat64(int ordinal)
getFloat64 in interface Getterspublic long getTimestamp(int ordinal)
getTimestamp in interface Getterspublic void setBoolean(int ordinal,
boolean value)
setBoolean in interface Setterspublic void setFloat32(int ordinal,
float value)
setFloat32 in interface Setterspublic void setFloat64(int ordinal,
double value)
setFloat64 in interface Setterspublic void setTimestamp(int ordinal,
long value)
setTimestamp in interface SettersCopyright © 2023-2024, The Apache Software Foundation. Apache Fury™, Fury™, and Apache are either registered trademarks or trademarks of the Apache Software Foundation.