Class PromotableWriter
java.lang.Object
org.apache.arrow.vector.complex.impl.PromotableWriter
- All Implemented Interfaces:
AutoCloseable
,Positionable
,BaseWriter
,BaseWriter.ListWriter
,BaseWriter.MapWriter
,BaseWriter.ScalarWriter
,BaseWriter.StructWriter
,BigIntWriter
,BitWriter
,DateDayWriter
,DateMilliWriter
,Decimal256Writer
,DecimalWriter
,DurationWriter
,FieldWriter
,FixedSizeBinaryWriter
,Float2Writer
,Float4Writer
,Float8Writer
,IntervalDayWriter
,IntervalMonthDayNanoWriter
,IntervalYearWriter
,IntWriter
,LargeVarBinaryWriter
,LargeVarCharWriter
,SmallIntWriter
,TimeMicroWriter
,TimeMilliWriter
,TimeNanoWriter
,TimeSecWriter
,TimeStampMicroTZWriter
,TimeStampMicroWriter
,TimeStampMilliTZWriter
,TimeStampMilliWriter
,TimeStampNanoTZWriter
,TimeStampNanoWriter
,TimeStampSecTZWriter
,TimeStampSecWriter
,TinyIntWriter
,UInt1Writer
,UInt2Writer
,UInt4Writer
,UInt8Writer
,VarBinaryWriter
,VarCharWriter
,ViewVarBinaryWriter
,ViewVarCharWriter
This FieldWriter implementation delegates all FieldWriter API calls to an inner FieldWriter. This
inner field writer can start as a specific type, and this class will promote the writer to a
UnionWriter if a call is made that the specifically typed writer cannot handle. A new UnionVector
is created, wrapping the original vector, and replaces the original vector in the parent vector,
which can be either an AbstractStructVector or a ListVector.
The writer used can either be for single elements (struct) or lists.
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.apache.arrow.vector.complex.writer.BaseWriter
BaseWriter.ComplexWriter, BaseWriter.ListWriter, BaseWriter.MapWriter, BaseWriter.ScalarWriter, BaseWriter.StructOrListWriter, BaseWriter.StructWriter
-
Field Summary
-
Constructor Summary
ConstructorDescriptionPromotableWriter
(ValueVector v, AbstractStructVector parentContainer) Constructs a new instance.PromotableWriter
(ValueVector v, AbstractStructVector parentContainer, NullableStructWriterFactory nullableStructWriterFactory) Constructs a new instance.PromotableWriter
(ValueVector v, FixedSizeListVector fixedListVector) Constructs a new instance.PromotableWriter
(ValueVector v, FixedSizeListVector fixedListVector, NullableStructWriterFactory nullableStructWriterFactory) Constructs a new instance.PromotableWriter
(ValueVector v, LargeListVector largeListVector) Constructs a new instance.PromotableWriter
(ValueVector v, LargeListVector largeListVector, NullableStructWriterFactory nullableStructWriterFactory) Constructs a new instance.PromotableWriter
(ValueVector v, ListVector listVector) Constructs a new instance.PromotableWriter
(ValueVector v, ListVector listVector, NullableStructWriterFactory nullableStructWriterFactory) Constructs a new instance.PromotableWriter
(ValueVector v, ListViewVector listViewVector, NullableStructWriterFactory nullableStructWriterFactory) Constructs a new instance. -
Method Summary
Modifier and TypeMethodDescriptionvoid
allocate()
bigInt()
bit()
void
clear()
void
close()
void
copyReader
(FieldReader reader) void
copyReaderToField
(String name, FieldReader reader) dateDay()
decimal()
decimal256
(String name) decimal256
(String name, int scale, int precision) duration()
void
end()
void
endEntry()
void
endList()
void
endMap()
fixedSizeBinary
(String name) fixedSizeBinary
(String name, int byteWidth) float2()
float4()
float8()
getField()
int
int
protected FieldWriter
protected FieldWriter
getWriter
(Types.MinorType type) Retrieve the FieldWriter, promoting if it is not a FieldWriter of the specified typeprotected FieldWriter
getWriter
(Types.MinorType type, ArrowType arrowType) integer()
intervalDay
(String name) intervalMonthDayNano
(String name) intervalYear
(String name) boolean
This implementation returnsfalse
.key()
largeVarBinary
(String name) largeVarChar
(String name) list()
map()
map
(boolean keysSorted) void
setAddVectorAsNullable
(boolean nullable) Set flag to control the FieldType.nullable property when a writer creates a new vector.void
setPosition
(int index) smallInt()
void
start()
void
void
void
startMap()
struct()
timeNano()
timeSec()
timeStampMicro
(String name) timeStampMicroTZ
(String name) timeStampMicroTZ
(String name, String timezone) timeStampMilli
(String name) timeStampMilliTZ
(String name) timeStampMilliTZ
(String name, String timezone) timeStampNano
(String name) timeStampNanoTZ
(String name) timeStampNanoTZ
(String name, String timezone) timeStampSec
(String name) timeStampSecTZ
(String name) timeStampSecTZ
(String name, String timezone) tinyInt()
toString()
uInt1()
uInt2()
uInt4()
uInt8()
value()
varChar()
viewVarBinary
(String name) viewVarChar
(String name) void
write
(BigIntHolder holder) void
void
write
(DateDayHolder holder) void
write
(DateMilliHolder holder) void
write
(Decimal256Holder holder) void
write
(DecimalHolder holder) void
write
(DurationHolder holder) void
write
(FixedSizeBinaryHolder holder) void
write
(Float2Holder holder) void
write
(Float4Holder holder) void
write
(Float8Holder holder) void
write
(IntervalDayHolder holder) void
write
(IntervalMonthDayNanoHolder holder) void
write
(IntervalYearHolder holder) void
void
write
(LargeVarBinaryHolder holder) void
write
(LargeVarCharHolder holder) void
write
(SmallIntHolder holder) void
write
(TimeMicroHolder holder) void
write
(TimeMilliHolder holder) void
write
(TimeNanoHolder holder) void
write
(TimeSecHolder holder) void
write
(TimeStampMicroHolder holder) void
write
(TimeStampMicroTZHolder holder) void
write
(TimeStampMilliHolder holder) void
write
(TimeStampMilliTZHolder holder) void
write
(TimeStampNanoHolder holder) void
write
(TimeStampNanoTZHolder holder) void
write
(TimeStampSecHolder holder) void
write
(TimeStampSecTZHolder holder) void
write
(TinyIntHolder holder) void
write
(UInt1Holder holder) void
write
(UInt2Holder holder) void
write
(UInt4Holder holder) void
write
(UInt8Holder holder) void
write
(VarBinaryHolder holder) void
write
(VarCharHolder holder) void
write
(ViewVarBinaryHolder holder) void
write
(ViewVarCharHolder holder) void
writeBigEndianBytesToDecimal
(byte[] value) void
writeBigEndianBytesToDecimal
(byte[] value, ArrowType arrowType) void
writeBigEndianBytesToDecimal256
(byte[] value) void
writeBigEndianBytesToDecimal256
(byte[] value, ArrowType arrowType) void
writeBigInt
(long value) void
writeBit
(int value) void
writeDateDay
(int value) void
writeDateMilli
(long value) void
writeDecimal
(int start, ArrowBuf buffer) void
writeDecimal
(int start, ArrowBuf buffer, ArrowType arrowType) void
writeDecimal
(long start, ArrowBuf buffer) void
writeDecimal
(long start, ArrowBuf buffer, ArrowType arrowType) void
writeDecimal
(BigDecimal value) void
writeDecimal256
(long start, ArrowBuf buffer) void
writeDecimal256
(long start, ArrowBuf buffer, ArrowType arrowType) void
writeDecimal256
(BigDecimal value) void
writeDuration
(long value) Deprecated.If you experience errors with using this version of the method, switch to the holder version.void
writeFixedSizeBinary
(ArrowBuf buffer) Deprecated.If you experience errors with using this version of the method, switch to the holder version.void
writeFloat2
(short value) void
writeFloat4
(float value) void
writeFloat8
(double value) void
writeInt
(int value) void
writeIntervalDay
(int days, int milliseconds) void
writeIntervalMonthDayNano
(int months, int days, long nanoseconds) void
writeIntervalYear
(int value) void
writeLargeVarBinary
(byte[] value) void
writeLargeVarBinary
(byte[] value, int offset, int length) void
writeLargeVarBinary
(long start, long end, ArrowBuf buffer) void
writeLargeVarBinary
(ByteBuffer value) void
writeLargeVarBinary
(ByteBuffer value, int offset, int length) void
writeLargeVarChar
(long start, long end, ArrowBuf buffer) void
writeLargeVarChar
(String value) void
writeLargeVarChar
(Text value) void
void
writeSmallInt
(short value) void
writeTimeMicro
(long value) void
writeTimeMilli
(int value) void
writeTimeNano
(long value) void
writeTimeSec
(int value) void
writeTimeStampMicro
(long value) void
writeTimeStampMicroTZ
(long value) Deprecated.The holder version should be used instead otherwise the timezone will default to UTC.void
writeTimeStampMilli
(long value) void
writeTimeStampMilliTZ
(long value) Deprecated.The holder version should be used instead otherwise the timezone will default to UTC.void
writeTimeStampNano
(long value) void
writeTimeStampNanoTZ
(long value) Deprecated.The holder version should be used instead otherwise the timezone will default to UTC.void
writeTimeStampSec
(long value) void
writeTimeStampSecTZ
(long value) Deprecated.The holder version should be used instead otherwise the timezone will default to UTC.void
writeTinyInt
(byte value) void
writeUInt1
(byte value) void
writeUInt2
(char value) void
writeUInt4
(int value) void
writeUInt8
(long value) void
writeVarBinary
(byte[] value) void
writeVarBinary
(byte[] value, int offset, int length) void
writeVarBinary
(int start, int end, ArrowBuf buffer) void
writeVarBinary
(ByteBuffer value) void
writeVarBinary
(ByteBuffer value, int offset, int length) void
writeVarChar
(int start, int end, ArrowBuf buffer) void
writeVarChar
(String value) void
writeVarChar
(Text value) void
writeViewVarBinary
(byte[] value) void
writeViewVarBinary
(byte[] value, int offset, int length) void
writeViewVarBinary
(int start, int end, ArrowBuf buffer) void
writeViewVarBinary
(ByteBuffer value) void
writeViewVarBinary
(ByteBuffer value, int offset, int length) void
writeViewVarChar
(int start, int end, ArrowBuf buffer) void
writeViewVarChar
(String value) void
writeViewVarChar
(Text value) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
Methods inherited from interface org.apache.arrow.vector.complex.Positionable
getPosition
-
Field Details
-
addVectorAsNullable
protected boolean addVectorAsNullable
-
-
Constructor Details
-
PromotableWriter
Constructs a new instance.- Parameters:
v
- The vector to write.parentContainer
- The parent container for the vector.
-
PromotableWriter
public PromotableWriter(ValueVector v, AbstractStructVector parentContainer, NullableStructWriterFactory nullableStructWriterFactory) Constructs a new instance.- Parameters:
v
- The vector to initialize the writer with.parentContainer
- The parent container for the vector.nullableStructWriterFactory
- The factory to create the delegate writer.
-
PromotableWriter
Constructs a new instance.- Parameters:
v
- The vector to initialize the writer with.listVector
- The vector that serves as a parent of v.
-
PromotableWriter
Constructs a new instance.- Parameters:
v
- The vector to initialize the writer with.fixedListVector
- The vector that serves as a parent of v.
-
PromotableWriter
Constructs a new instance.- Parameters:
v
- The vector to initialize the writer with.largeListVector
- The vector that serves as a parent of v.
-
PromotableWriter
public PromotableWriter(ValueVector v, ListVector listVector, NullableStructWriterFactory nullableStructWriterFactory) Constructs a new instance.- Parameters:
v
- The vector to initialize the writer with.listVector
- The vector that serves as a parent of v.nullableStructWriterFactory
- The factory to create the delegate writer.
-
PromotableWriter
public PromotableWriter(ValueVector v, ListViewVector listViewVector, NullableStructWriterFactory nullableStructWriterFactory) Constructs a new instance.- Parameters:
v
- The vector to initialize the writer with.listViewVector
- The vector that serves as a parent of v.nullableStructWriterFactory
- The factory to create the delegate writer.
-
PromotableWriter
public PromotableWriter(ValueVector v, FixedSizeListVector fixedListVector, NullableStructWriterFactory nullableStructWriterFactory) Constructs a new instance.- Parameters:
v
- The vector to initialize the writer with.fixedListVector
- The vector that serves as a parent of v.nullableStructWriterFactory
- The factory to create the delegate writer.
-
PromotableWriter
public PromotableWriter(ValueVector v, LargeListVector largeListVector, NullableStructWriterFactory nullableStructWriterFactory) Constructs a new instance.- Parameters:
v
- The vector to initialize the writer with.largeListVector
- The vector that serves as a parent of v.nullableStructWriterFactory
- The factory to create the delegate writer.
-
-
Method Details
-
setAddVectorAsNullable
public void setAddVectorAsNullable(boolean nullable) Set flag to control the FieldType.nullable property when a writer creates a new vector. If true then vectors created will be nullable, this is the default behavior. If false then vectors created will be non-nullable.- Parameters:
nullable
- Whether or not to create nullable vectors (default behavior is true)
-
writeNull
public void writeNull()- Specified by:
writeNull
in interfaceBaseWriter
-
setPosition
public void setPosition(int index) - Specified by:
setPosition
in interfacePositionable
-
getWriter
-
isEmptyStruct
public boolean isEmptyStruct()This implementation returnsfalse
.Must be overridden by struct writers.
- Specified by:
isEmptyStruct
in interfaceBaseWriter.StructWriter
- Returns:
- whether the struct is empty
-
getWriter
- Returns:
- the current FieldWriter
-
write
- Specified by:
write
in interfaceDecimalWriter
-
writeDecimal
- Specified by:
writeDecimal
in interfaceDecimalWriter
-
writeDecimal
- Specified by:
writeDecimal
in interfaceDecimalWriter
-
writeBigEndianBytesToDecimal
- Specified by:
writeBigEndianBytesToDecimal
in interfaceDecimalWriter
-
write
- Specified by:
write
in interfaceDecimal256Writer
-
writeDecimal256
- Specified by:
writeDecimal256
in interfaceDecimal256Writer
-
writeDecimal256
- Specified by:
writeDecimal256
in interfaceDecimal256Writer
-
writeBigEndianBytesToDecimal256
- Specified by:
writeBigEndianBytesToDecimal256
in interfaceDecimal256Writer
-
writeVarBinary
public void writeVarBinary(byte[] value) - Specified by:
writeVarBinary
in interfaceVarBinaryWriter
-
writeVarBinary
public void writeVarBinary(byte[] value, int offset, int length) - Specified by:
writeVarBinary
in interfaceVarBinaryWriter
-
writeVarBinary
- Specified by:
writeVarBinary
in interfaceVarBinaryWriter
-
writeVarBinary
- Specified by:
writeVarBinary
in interfaceVarBinaryWriter
-
writeLargeVarBinary
public void writeLargeVarBinary(byte[] value) - Specified by:
writeLargeVarBinary
in interfaceLargeVarBinaryWriter
-
writeLargeVarBinary
public void writeLargeVarBinary(byte[] value, int offset, int length) - Specified by:
writeLargeVarBinary
in interfaceLargeVarBinaryWriter
-
writeLargeVarBinary
- Specified by:
writeLargeVarBinary
in interfaceLargeVarBinaryWriter
-
writeLargeVarBinary
- Specified by:
writeLargeVarBinary
in interfaceLargeVarBinaryWriter
-
writeVarChar
- Specified by:
writeVarChar
in interfaceVarCharWriter
-
writeVarChar
- Specified by:
writeVarChar
in interfaceVarCharWriter
-
writeLargeVarChar
- Specified by:
writeLargeVarChar
in interfaceLargeVarCharWriter
-
writeLargeVarChar
- Specified by:
writeLargeVarChar
in interfaceLargeVarCharWriter
-
allocate
public void allocate() -
clear
public void clear() -
getField
-
getValueCapacity
public int getValueCapacity() -
close
- Throws:
Exception
-
getWriter
Retrieve the FieldWriter, promoting if it is not a FieldWriter of the specified type- Parameters:
type
- the type of the values we want to write- Returns:
- the corresponding field writer
-
start
public void start()- Specified by:
start
in interfaceBaseWriter.StructWriter
-
end
public void end()- Specified by:
end
in interfaceBaseWriter.StructWriter
-
startList
public void startList()- Specified by:
startList
in interfaceBaseWriter.ListWriter
-
endList
public void endList()- Specified by:
endList
in interfaceBaseWriter.ListWriter
-
startMap
public void startMap()- Specified by:
startMap
in interfaceBaseWriter.MapWriter
-
endMap
public void endMap()- Specified by:
endMap
in interfaceBaseWriter.MapWriter
-
startEntry
public void startEntry()- Specified by:
startEntry
in interfaceBaseWriter.MapWriter
-
key
- Specified by:
key
in interfaceBaseWriter.MapWriter
-
value
- Specified by:
value
in interfaceBaseWriter.MapWriter
-
endEntry
public void endEntry()- Specified by:
endEntry
in interfaceBaseWriter.MapWriter
-
write
- Specified by:
write
in interfaceTinyIntWriter
-
writeTinyInt
public void writeTinyInt(byte value) - Specified by:
writeTinyInt
in interfaceTinyIntWriter
-
write
- Specified by:
write
in interfaceUInt1Writer
-
writeUInt1
public void writeUInt1(byte value) - Specified by:
writeUInt1
in interfaceUInt1Writer
-
write
- Specified by:
write
in interfaceUInt2Writer
-
writeUInt2
public void writeUInt2(char value) - Specified by:
writeUInt2
in interfaceUInt2Writer
-
write
- Specified by:
write
in interfaceSmallIntWriter
-
writeSmallInt
public void writeSmallInt(short value) - Specified by:
writeSmallInt
in interfaceSmallIntWriter
-
write
- Specified by:
write
in interfaceFloat2Writer
-
writeFloat2
public void writeFloat2(short value) - Specified by:
writeFloat2
in interfaceFloat2Writer
-
write
-
writeInt
public void writeInt(int value) -
write
- Specified by:
write
in interfaceUInt4Writer
-
writeUInt4
public void writeUInt4(int value) - Specified by:
writeUInt4
in interfaceUInt4Writer
-
write
- Specified by:
write
in interfaceFloat4Writer
-
writeFloat4
public void writeFloat4(float value) - Specified by:
writeFloat4
in interfaceFloat4Writer
-
write
- Specified by:
write
in interfaceDateDayWriter
-
writeDateDay
public void writeDateDay(int value) - Specified by:
writeDateDay
in interfaceDateDayWriter
-
write
- Specified by:
write
in interfaceIntervalYearWriter
-
writeIntervalYear
public void writeIntervalYear(int value) - Specified by:
writeIntervalYear
in interfaceIntervalYearWriter
-
write
- Specified by:
write
in interfaceTimeSecWriter
-
writeTimeSec
public void writeTimeSec(int value) - Specified by:
writeTimeSec
in interfaceTimeSecWriter
-
write
- Specified by:
write
in interfaceTimeMilliWriter
-
writeTimeMilli
public void writeTimeMilli(int value) - Specified by:
writeTimeMilli
in interfaceTimeMilliWriter
-
write
- Specified by:
write
in interfaceBigIntWriter
-
writeBigInt
public void writeBigInt(long value) - Specified by:
writeBigInt
in interfaceBigIntWriter
-
write
- Specified by:
write
in interfaceUInt8Writer
-
writeUInt8
public void writeUInt8(long value) - Specified by:
writeUInt8
in interfaceUInt8Writer
-
write
- Specified by:
write
in interfaceFloat8Writer
-
writeFloat8
public void writeFloat8(double value) - Specified by:
writeFloat8
in interfaceFloat8Writer
-
write
- Specified by:
write
in interfaceDateMilliWriter
-
writeDateMilli
public void writeDateMilli(long value) - Specified by:
writeDateMilli
in interfaceDateMilliWriter
-
write
- Specified by:
write
in interfaceDurationWriter
-
writeDuration
Deprecated.If you experience errors with using this version of the method, switch to the holder version. The errors occur when using an untyped or unioned PromotableWriter, because this version of the method does not have enough information to infer the ArrowType.- Specified by:
writeDuration
in interfaceDurationWriter
- See Also:
-
write
- Specified by:
write
in interfaceTimeStampSecWriter
-
writeTimeStampSec
public void writeTimeStampSec(long value) - Specified by:
writeTimeStampSec
in interfaceTimeStampSecWriter
-
write
- Specified by:
write
in interfaceTimeStampMilliWriter
-
writeTimeStampMilli
public void writeTimeStampMilli(long value) - Specified by:
writeTimeStampMilli
in interfaceTimeStampMilliWriter
-
write
- Specified by:
write
in interfaceTimeStampMicroWriter
-
writeTimeStampMicro
public void writeTimeStampMicro(long value) - Specified by:
writeTimeStampMicro
in interfaceTimeStampMicroWriter
-
write
- Specified by:
write
in interfaceTimeStampNanoWriter
-
writeTimeStampNano
public void writeTimeStampNano(long value) - Specified by:
writeTimeStampNano
in interfaceTimeStampNanoWriter
-
write
- Specified by:
write
in interfaceTimeStampSecTZWriter
-
writeTimeStampSecTZ
Deprecated.The holder version should be used instead otherwise the timezone will default to UTC.- Specified by:
writeTimeStampSecTZ
in interfaceTimeStampSecTZWriter
- See Also:
-
write
- Specified by:
write
in interfaceTimeStampMilliTZWriter
-
writeTimeStampMilliTZ
Deprecated.The holder version should be used instead otherwise the timezone will default to UTC.- Specified by:
writeTimeStampMilliTZ
in interfaceTimeStampMilliTZWriter
- See Also:
-
write
- Specified by:
write
in interfaceTimeStampMicroTZWriter
-
writeTimeStampMicroTZ
Deprecated.The holder version should be used instead otherwise the timezone will default to UTC.- Specified by:
writeTimeStampMicroTZ
in interfaceTimeStampMicroTZWriter
- See Also:
-
write
- Specified by:
write
in interfaceTimeStampNanoTZWriter
-
writeTimeStampNanoTZ
Deprecated.The holder version should be used instead otherwise the timezone will default to UTC.- Specified by:
writeTimeStampNanoTZ
in interfaceTimeStampNanoTZWriter
- See Also:
-
write
- Specified by:
write
in interfaceTimeMicroWriter
-
writeTimeMicro
public void writeTimeMicro(long value) - Specified by:
writeTimeMicro
in interfaceTimeMicroWriter
-
write
- Specified by:
write
in interfaceTimeNanoWriter
-
writeTimeNano
public void writeTimeNano(long value) - Specified by:
writeTimeNano
in interfaceTimeNanoWriter
-
write
- Specified by:
write
in interfaceIntervalDayWriter
-
writeIntervalDay
public void writeIntervalDay(int days, int milliseconds) - Specified by:
writeIntervalDay
in interfaceIntervalDayWriter
-
write
- Specified by:
write
in interfaceIntervalMonthDayNanoWriter
-
writeIntervalMonthDayNano
public void writeIntervalMonthDayNano(int months, int days, long nanoseconds) - Specified by:
writeIntervalMonthDayNano
in interfaceIntervalMonthDayNanoWriter
-
writeDecimal256
- Specified by:
writeDecimal256
in interfaceDecimal256Writer
- See Also:
-
writeBigEndianBytesToDecimal256
public void writeBigEndianBytesToDecimal256(byte[] value) - Specified by:
writeBigEndianBytesToDecimal256
in interfaceDecimal256Writer
- See Also:
-
writeDecimal
-
writeDecimal
-
writeBigEndianBytesToDecimal
public void writeBigEndianBytesToDecimal(byte[] value) - Specified by:
writeBigEndianBytesToDecimal
in interfaceDecimalWriter
- See Also:
-
write
- Specified by:
write
in interfaceFixedSizeBinaryWriter
-
writeFixedSizeBinary
Deprecated.If you experience errors with using this version of the method, switch to the holder version. The errors occur when using an untyped or unioned PromotableWriter, because this version of the method does not have enough information to infer the ArrowType.- Specified by:
writeFixedSizeBinary
in interfaceFixedSizeBinaryWriter
- See Also:
-
write
- Specified by:
write
in interfaceVarBinaryWriter
-
writeVarBinary
- Specified by:
writeVarBinary
in interfaceVarBinaryWriter
-
write
- Specified by:
write
in interfaceVarCharWriter
-
writeVarChar
- Specified by:
writeVarChar
in interfaceVarCharWriter
-
write
- Specified by:
write
in interfaceViewVarBinaryWriter
-
writeViewVarBinary
- Specified by:
writeViewVarBinary
in interfaceViewVarBinaryWriter
-
writeViewVarBinary
public void writeViewVarBinary(byte[] value) - Specified by:
writeViewVarBinary
in interfaceViewVarBinaryWriter
-
writeViewVarBinary
public void writeViewVarBinary(byte[] value, int offset, int length) - Specified by:
writeViewVarBinary
in interfaceViewVarBinaryWriter
-
writeViewVarBinary
- Specified by:
writeViewVarBinary
in interfaceViewVarBinaryWriter
-
writeViewVarBinary
- Specified by:
writeViewVarBinary
in interfaceViewVarBinaryWriter
-
write
- Specified by:
write
in interfaceViewVarCharWriter
-
writeViewVarChar
- Specified by:
writeViewVarChar
in interfaceViewVarCharWriter
-
writeViewVarChar
- Specified by:
writeViewVarChar
in interfaceViewVarCharWriter
-
writeViewVarChar
- Specified by:
writeViewVarChar
in interfaceViewVarCharWriter
-
write
- Specified by:
write
in interfaceLargeVarCharWriter
-
writeLargeVarChar
- Specified by:
writeLargeVarChar
in interfaceLargeVarCharWriter
-
write
- Specified by:
write
in interfaceLargeVarBinaryWriter
-
writeLargeVarBinary
- Specified by:
writeLargeVarBinary
in interfaceLargeVarBinaryWriter
-
write
-
writeBit
public void writeBit(int value) -
struct
- Specified by:
struct
in interfaceBaseWriter.ListWriter
-
list
- Specified by:
list
in interfaceBaseWriter.ListWriter
-
map
- Specified by:
map
in interfaceBaseWriter.ListWriter
-
map
- Specified by:
map
in interfaceBaseWriter.ListWriter
-
struct
- Specified by:
struct
in interfaceBaseWriter.StructWriter
-
list
- Specified by:
list
in interfaceBaseWriter.StructWriter
-
map
- Specified by:
map
in interfaceBaseWriter.StructWriter
-
map
- Specified by:
map
in interfaceBaseWriter.StructWriter
-
tinyInt
- Specified by:
tinyInt
in interfaceBaseWriter.StructWriter
-
tinyInt
- Specified by:
tinyInt
in interfaceBaseWriter.ListWriter
-
uInt1
- Specified by:
uInt1
in interfaceBaseWriter.StructWriter
-
uInt1
- Specified by:
uInt1
in interfaceBaseWriter.ListWriter
-
uInt2
- Specified by:
uInt2
in interfaceBaseWriter.StructWriter
-
uInt2
- Specified by:
uInt2
in interfaceBaseWriter.ListWriter
-
smallInt
- Specified by:
smallInt
in interfaceBaseWriter.StructWriter
-
smallInt
- Specified by:
smallInt
in interfaceBaseWriter.ListWriter
-
float2
- Specified by:
float2
in interfaceBaseWriter.StructWriter
-
float2
- Specified by:
float2
in interfaceBaseWriter.ListWriter
-
integer
- Specified by:
integer
in interfaceBaseWriter.StructWriter
-
integer
- Specified by:
integer
in interfaceBaseWriter.ListWriter
-
uInt4
- Specified by:
uInt4
in interfaceBaseWriter.StructWriter
-
uInt4
- Specified by:
uInt4
in interfaceBaseWriter.ListWriter
-
float4
- Specified by:
float4
in interfaceBaseWriter.StructWriter
-
float4
- Specified by:
float4
in interfaceBaseWriter.ListWriter
-
dateDay
- Specified by:
dateDay
in interfaceBaseWriter.StructWriter
-
dateDay
- Specified by:
dateDay
in interfaceBaseWriter.ListWriter
-
intervalYear
- Specified by:
intervalYear
in interfaceBaseWriter.StructWriter
-
intervalYear
- Specified by:
intervalYear
in interfaceBaseWriter.ListWriter
-
timeSec
- Specified by:
timeSec
in interfaceBaseWriter.StructWriter
-
timeSec
- Specified by:
timeSec
in interfaceBaseWriter.ListWriter
-
timeMilli
- Specified by:
timeMilli
in interfaceBaseWriter.StructWriter
-
timeMilli
- Specified by:
timeMilli
in interfaceBaseWriter.ListWriter
-
bigInt
- Specified by:
bigInt
in interfaceBaseWriter.StructWriter
-
bigInt
- Specified by:
bigInt
in interfaceBaseWriter.ListWriter
-
uInt8
- Specified by:
uInt8
in interfaceBaseWriter.StructWriter
-
uInt8
- Specified by:
uInt8
in interfaceBaseWriter.ListWriter
-
float8
- Specified by:
float8
in interfaceBaseWriter.StructWriter
-
float8
- Specified by:
float8
in interfaceBaseWriter.ListWriter
-
dateMilli
- Specified by:
dateMilli
in interfaceBaseWriter.StructWriter
-
dateMilli
- Specified by:
dateMilli
in interfaceBaseWriter.ListWriter
-
duration
- Specified by:
duration
in interfaceBaseWriter.StructWriter
-
duration
- Specified by:
duration
in interfaceBaseWriter.StructWriter
-
duration
- Specified by:
duration
in interfaceBaseWriter.ListWriter
-
timeStampSec
- Specified by:
timeStampSec
in interfaceBaseWriter.StructWriter
-
timeStampSec
- Specified by:
timeStampSec
in interfaceBaseWriter.ListWriter
-
timeStampMilli
- Specified by:
timeStampMilli
in interfaceBaseWriter.StructWriter
-
timeStampMilli
- Specified by:
timeStampMilli
in interfaceBaseWriter.ListWriter
-
timeStampMicro
- Specified by:
timeStampMicro
in interfaceBaseWriter.StructWriter
-
timeStampMicro
- Specified by:
timeStampMicro
in interfaceBaseWriter.ListWriter
-
timeStampNano
- Specified by:
timeStampNano
in interfaceBaseWriter.StructWriter
-
timeStampNano
- Specified by:
timeStampNano
in interfaceBaseWriter.ListWriter
-
timeStampSecTZ
- Specified by:
timeStampSecTZ
in interfaceBaseWriter.StructWriter
-
timeStampSecTZ
- Specified by:
timeStampSecTZ
in interfaceBaseWriter.StructWriter
-
timeStampSecTZ
- Specified by:
timeStampSecTZ
in interfaceBaseWriter.ListWriter
-
timeStampMilliTZ
- Specified by:
timeStampMilliTZ
in interfaceBaseWriter.StructWriter
-
timeStampMilliTZ
- Specified by:
timeStampMilliTZ
in interfaceBaseWriter.StructWriter
-
timeStampMilliTZ
- Specified by:
timeStampMilliTZ
in interfaceBaseWriter.ListWriter
-
timeStampMicroTZ
- Specified by:
timeStampMicroTZ
in interfaceBaseWriter.StructWriter
-
timeStampMicroTZ
- Specified by:
timeStampMicroTZ
in interfaceBaseWriter.StructWriter
-
timeStampMicroTZ
- Specified by:
timeStampMicroTZ
in interfaceBaseWriter.ListWriter
-
timeStampNanoTZ
- Specified by:
timeStampNanoTZ
in interfaceBaseWriter.StructWriter
-
timeStampNanoTZ
- Specified by:
timeStampNanoTZ
in interfaceBaseWriter.StructWriter
-
timeStampNanoTZ
- Specified by:
timeStampNanoTZ
in interfaceBaseWriter.ListWriter
-
timeMicro
- Specified by:
timeMicro
in interfaceBaseWriter.StructWriter
-
timeMicro
- Specified by:
timeMicro
in interfaceBaseWriter.ListWriter
-
timeNano
- Specified by:
timeNano
in interfaceBaseWriter.StructWriter
-
timeNano
- Specified by:
timeNano
in interfaceBaseWriter.ListWriter
-
intervalDay
- Specified by:
intervalDay
in interfaceBaseWriter.StructWriter
-
intervalDay
- Specified by:
intervalDay
in interfaceBaseWriter.ListWriter
-
intervalMonthDayNano
- Specified by:
intervalMonthDayNano
in interfaceBaseWriter.StructWriter
-
intervalMonthDayNano
- Specified by:
intervalMonthDayNano
in interfaceBaseWriter.ListWriter
-
decimal256
- Specified by:
decimal256
in interfaceBaseWriter.StructWriter
-
decimal256
- Specified by:
decimal256
in interfaceBaseWriter.StructWriter
-
decimal256
- Specified by:
decimal256
in interfaceBaseWriter.ListWriter
-
decimal
- Specified by:
decimal
in interfaceBaseWriter.StructWriter
-
decimal
- Specified by:
decimal
in interfaceBaseWriter.StructWriter
-
decimal
- Specified by:
decimal
in interfaceBaseWriter.ListWriter
-
fixedSizeBinary
- Specified by:
fixedSizeBinary
in interfaceBaseWriter.StructWriter
-
fixedSizeBinary
- Specified by:
fixedSizeBinary
in interfaceBaseWriter.StructWriter
-
fixedSizeBinary
- Specified by:
fixedSizeBinary
in interfaceBaseWriter.ListWriter
-
varBinary
- Specified by:
varBinary
in interfaceBaseWriter.StructWriter
-
varBinary
- Specified by:
varBinary
in interfaceBaseWriter.ListWriter
-
varChar
- Specified by:
varChar
in interfaceBaseWriter.StructWriter
-
varChar
- Specified by:
varChar
in interfaceBaseWriter.ListWriter
-
viewVarBinary
- Specified by:
viewVarBinary
in interfaceBaseWriter.StructWriter
-
viewVarBinary
- Specified by:
viewVarBinary
in interfaceBaseWriter.ListWriter
-
viewVarChar
- Specified by:
viewVarChar
in interfaceBaseWriter.StructWriter
-
viewVarChar
- Specified by:
viewVarChar
in interfaceBaseWriter.ListWriter
-
largeVarChar
- Specified by:
largeVarChar
in interfaceBaseWriter.StructWriter
-
largeVarChar
- Specified by:
largeVarChar
in interfaceBaseWriter.ListWriter
-
largeVarBinary
- Specified by:
largeVarBinary
in interfaceBaseWriter.StructWriter
-
largeVarBinary
- Specified by:
largeVarBinary
in interfaceBaseWriter.ListWriter
-
bit
- Specified by:
bit
in interfaceBaseWriter.StructWriter
-
bit
- Specified by:
bit
in interfaceBaseWriter.ListWriter
-
copyReader
- Specified by:
copyReader
in interfaceBaseWriter.ListWriter
-
copyReaderToField
- Specified by:
copyReaderToField
in interfaceBaseWriter.StructWriter
-
writeDecimal
- Specified by:
writeDecimal
in interfaceDecimalWriter
- See Also:
-
toString
-
getPosition
public int getPosition()- Specified by:
getPosition
in interfacePositionable
-