Interface BaseWriter.StructWriter
- All Superinterfaces:
AutoCloseable
,BaseWriter
,Positionable
- All Known Subinterfaces:
FieldWriter
- All Known Implementing Classes:
BigIntWriterImpl
,BitWriterImpl
,ComplexWriterImpl
,DateDayWriterImpl
,DateMilliWriterImpl
,Decimal256WriterImpl
,DecimalWriterImpl
,DenseUnionWriter
,DurationWriterImpl
,FixedSizeBinaryWriterImpl
,Float2WriterImpl
,Float4WriterImpl
,Float8WriterImpl
,IntervalDayWriterImpl
,IntervalMonthDayNanoWriterImpl
,IntervalYearWriterImpl
,IntWriterImpl
,LargeVarBinaryWriterImpl
,LargeVarCharWriterImpl
,NullableCaseSensitiveStructWriter
,NullableStructWriter
,PromotableWriter
,SingleCaseSensitiveStructWriter
,SingleStructWriter
,SmallIntWriterImpl
,TimeMicroWriterImpl
,TimeMilliWriterImpl
,TimeNanoWriterImpl
,TimeSecWriterImpl
,TimeStampMicroTZWriterImpl
,TimeStampMicroWriterImpl
,TimeStampMilliTZWriterImpl
,TimeStampMilliWriterImpl
,TimeStampNanoTZWriterImpl
,TimeStampNanoWriterImpl
,TimeStampSecTZWriterImpl
,TimeStampSecWriterImpl
,TinyIntWriterImpl
,UInt1WriterImpl
,UInt2WriterImpl
,UInt4WriterImpl
,UInt8WriterImpl
,UnionFixedSizeListWriter
,UnionLargeListWriter
,UnionListViewWriter
,UnionListWriter
,UnionMapWriter
,UnionWriter
,VarBinaryWriterImpl
,VarCharWriterImpl
,ViewVarBinaryWriterImpl
,ViewVarCharWriterImpl
- Enclosing interface:
- BaseWriter
-
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
-
Method Summary
Modifier and TypeMethodDescriptionvoid
copyReaderToField
(String name, FieldReader reader) decimal256
(String name) decimal256
(String name, int scale, int precision) void
end()
fixedSizeBinary
(String name) fixedSizeBinary
(String name, int byteWidth) getField()
intervalDay
(String name) intervalMonthDayNano
(String name) intervalYear
(String name) boolean
Whether this writer is a struct writer and is empty (has no children).largeVarBinary
(String name) largeVarChar
(String name) void
start()
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) viewVarBinary
(String name) viewVarChar
(String name) Methods inherited from interface java.lang.AutoCloseable
close
Methods inherited from interface org.apache.arrow.vector.complex.writer.BaseWriter
getValueCapacity, writeNull
Methods inherited from interface org.apache.arrow.vector.complex.Positionable
getPosition, setPosition
-
Method Details
-
getField
Field getField() -
isEmptyStruct
boolean isEmptyStruct()Whether this writer is a struct writer and is empty (has no children).Intended only for use in determining whether to add dummy vector to avoid empty (zero-column) schema, as in JsonReader.
- Returns:
- whether the struct is empty
-
tinyInt
-
uInt1
-
uInt2
-
smallInt
-
float2
-
integer
-
uInt4
-
float4
-
dateDay
-
intervalYear
-
timeSec
-
timeMilli
-
bigInt
-
uInt8
-
float8
-
dateMilli
-
duration
-
duration
-
timeStampSec
-
timeStampMilli
-
timeStampMicro
-
timeStampNano
-
timeStampSecTZ
-
timeStampSecTZ
-
timeStampMilliTZ
-
timeStampMilliTZ
-
timeStampMicroTZ
-
timeStampMicroTZ
-
timeStampNanoTZ
-
timeStampNanoTZ
-
timeMicro
-
timeNano
-
intervalDay
-
intervalMonthDayNano
-
decimal256
-
decimal256
-
decimal
-
decimal
-
fixedSizeBinary
-
fixedSizeBinary
-
varBinary
-
varChar
-
viewVarBinary
-
viewVarChar
-
largeVarChar
-
largeVarBinary
-
bit
-
copyReaderToField
-
struct
-
list
-
map
-
map
-
start
void start() -
end
void end()
-