Class StructOrListWriterImpl
java.lang.Object
org.apache.arrow.vector.complex.impl.StructOrListWriterImpl
- All Implemented Interfaces:
BaseWriter.StructOrListWriter
Concrete implementation of
BaseWriter.StructOrListWriter
.-
Field Summary
-
Constructor Summary
ConstructorDescriptionConstructs a new instance using aBaseWriter.ListWriter
(instead of aBaseWriter.StructWriter
).Constructs a new instance using aBaseWriter.StructWriter
(instead of anBaseWriter.ListWriter
). -
Method Summary
Modifier and TypeMethodDescriptionvoid
end()
Finish writing to the list or struct.boolean
boolean
listOfStruct
(String name) Creates a new writer for a list of structs.listoftstruct
(String name) Deprecated.void
start()
Start writing to either the list or the struct.Creates a new writer for a struct with the given name.
-
Field Details
-
struct
-
list
-
-
Constructor Details
-
StructOrListWriterImpl
Constructs a new instance using aBaseWriter.StructWriter
(instead of anBaseWriter.ListWriter
). -
StructOrListWriterImpl
Constructs a new instance using aBaseWriter.ListWriter
(instead of aBaseWriter.StructWriter
).
-
-
Method Details
-
start
public void start()Start writing to either the list or the struct.- Specified by:
start
in interfaceBaseWriter.StructOrListWriter
-
end
public void end()Finish writing to the list or struct.- Specified by:
end
in interfaceBaseWriter.StructOrListWriter
-
struct
Creates a new writer for a struct with the given name.- Specified by:
struct
in interfaceBaseWriter.StructOrListWriter
-
listoftstruct
Deprecated.uselistOfStruct(String)
instead.Creates a new writer for a list of structs.- Specified by:
listoftstruct
in interfaceBaseWriter.StructOrListWriter
- Parameters:
name
- Unused.
-
listOfStruct
Creates a new writer for a list of structs.- Specified by:
listOfStruct
in interfaceBaseWriter.StructOrListWriter
- Parameters:
name
- Unused.
-
list
- Specified by:
list
in interfaceBaseWriter.StructOrListWriter
-
isStructWriter
public boolean isStructWriter()- Specified by:
isStructWriter
in interfaceBaseWriter.StructOrListWriter
-
isListWriter
public boolean isListWriter()- Specified by:
isListWriter
in interfaceBaseWriter.StructOrListWriter
-
varChar
- Specified by:
varChar
in interfaceBaseWriter.StructOrListWriter
-
integer
- Specified by:
integer
in interfaceBaseWriter.StructOrListWriter
-
bigInt
- Specified by:
bigInt
in interfaceBaseWriter.StructOrListWriter
-
float4
- Specified by:
float4
in interfaceBaseWriter.StructOrListWriter
-
float8
- Specified by:
float8
in interfaceBaseWriter.StructOrListWriter
-
bit
- Specified by:
bit
in interfaceBaseWriter.StructOrListWriter
-
binary
- Specified by:
binary
in interfaceBaseWriter.StructOrListWriter
-
listOfStruct(String)
instead.