public final class BinaryArrayWriter extends AbstractBinaryWriter
BinaryArray.cursor, outputView, segment| Constructor and Description |
|---|
BinaryArrayWriter(BinaryArray array,
int numElements,
int elementSize) |
| Modifier and Type | Method and Description |
|---|---|
void |
afterGrow()
After grow, need point to new memory.
|
void |
complete()
Finally, complete write to set real size to row.
|
int |
getFieldOffset(int pos)
Get field offset.
|
int |
getNumElements() |
void |
reset()
First, reset.
|
void |
setNullAt(int ordinal)
Set null to this field.
|
void |
setNullAt(int pos,
org.apache.flink.table.types.logical.LogicalType type) |
void |
setNullBit(int ordinal) |
void |
setNullBoolean(int ordinal) |
void |
setNullByte(int ordinal) |
void |
setNullDouble(int ordinal) |
void |
setNullFloat(int ordinal) |
void |
setNullInt(int ordinal) |
void |
setNullLong(int ordinal) |
void |
setNullShort(int ordinal) |
void |
setOffsetAndSize(int pos,
int offset,
long size)
Set offset and size to fix len part.
|
void |
writeBoolean(int pos,
boolean value) |
void |
writeByte(int pos,
byte value) |
void |
writeDouble(int pos,
double value) |
void |
writeFloat(int pos,
float value) |
void |
writeInt(int pos,
int value) |
void |
writeLong(int pos,
long value) |
void |
writeShort(int pos,
short value) |
ensureCapacity, roundNumberOfBytesToNearestWord, writeArray, writeBinary, writeDecimal, writeGeneric, writeMap, writeRow, writeString, zeroOutPaddingBytesclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitwritepublic BinaryArrayWriter(BinaryArray array, int numElements, int elementSize)
public void reset()
public void setNullBit(int ordinal)
setNullBit in class AbstractBinaryWriterpublic void setNullBoolean(int ordinal)
public void setNullByte(int ordinal)
public void setNullShort(int ordinal)
public void setNullInt(int ordinal)
public void setNullLong(int ordinal)
public void setNullFloat(int ordinal)
public void setNullDouble(int ordinal)
public void setNullAt(int ordinal)
BinaryWriterpublic void setNullAt(int pos,
org.apache.flink.table.types.logical.LogicalType type)
public int getFieldOffset(int pos)
AbstractBinaryWritergetFieldOffset in class AbstractBinaryWriterpublic void setOffsetAndSize(int pos,
int offset,
long size)
AbstractBinaryWritersetOffsetAndSize in class AbstractBinaryWriterpublic void writeBoolean(int pos,
boolean value)
public void writeByte(int pos,
byte value)
public void writeShort(int pos,
short value)
public void writeInt(int pos,
int value)
public void writeLong(int pos,
long value)
public void writeFloat(int pos,
float value)
public void writeDouble(int pos,
double value)
public void afterGrow()
AbstractBinaryWriterafterGrow in class AbstractBinaryWriterpublic void complete()
public int getNumElements()
Copyright © 2014–2020 The Apache Software Foundation. All rights reserved.