public class StructOrListWriterImpl extends Object implements BaseWriter.StructOrListWriter
BaseWriter.StructOrListWriter
.Modifier and Type | Field and Description |
---|---|
BaseWriter.ListWriter |
list |
BaseWriter.StructWriter |
struct |
Constructor and Description |
---|
StructOrListWriterImpl(BaseWriter.ListWriter writer)
Constructs a new instance using a
BaseWriter.ListWriter
(instead of a BaseWriter.StructWriter ). |
StructOrListWriterImpl(BaseWriter.StructWriter writer)
Constructs a new instance using a
BaseWriter.StructWriter
(instead of an BaseWriter.ListWriter ). |
Modifier and Type | Method and Description |
---|---|
BigIntWriter |
bigInt(String name) |
VarBinaryWriter |
binary(String name) |
BitWriter |
bit(String name) |
void |
end()
Finish writing to the list or struct.
|
Float4Writer |
float4(String name) |
Float8Writer |
float8(String name) |
IntWriter |
integer(String name) |
boolean |
isListWriter() |
boolean |
isStructWriter() |
BaseWriter.StructOrListWriter |
list(String name) |
BaseWriter.StructOrListWriter |
listoftstruct(String name)
Creates a new writer for a list of structs.
|
void |
start()
Start writing to either the list or the struct.
|
BaseWriter.StructOrListWriter |
struct(String name)
Creates a new writer for a struct with the given name.
|
VarCharWriter |
varChar(String name) |
public final BaseWriter.StructWriter struct
public final BaseWriter.ListWriter list
public StructOrListWriterImpl(BaseWriter.StructWriter writer)
BaseWriter.StructWriter
(instead of an BaseWriter.ListWriter
).public StructOrListWriterImpl(BaseWriter.ListWriter writer)
BaseWriter.ListWriter
(instead of a BaseWriter.StructWriter
).public void start()
start
in interface BaseWriter.StructOrListWriter
public void end()
end
in interface BaseWriter.StructOrListWriter
public BaseWriter.StructOrListWriter struct(String name)
struct
in interface BaseWriter.StructOrListWriter
public BaseWriter.StructOrListWriter listoftstruct(String name)
listoftstruct
in interface BaseWriter.StructOrListWriter
name
- Unused.public BaseWriter.StructOrListWriter list(String name)
list
in interface BaseWriter.StructOrListWriter
public boolean isStructWriter()
isStructWriter
in interface BaseWriter.StructOrListWriter
public boolean isListWriter()
isListWriter
in interface BaseWriter.StructOrListWriter
public VarCharWriter varChar(String name)
varChar
in interface BaseWriter.StructOrListWriter
public IntWriter integer(String name)
integer
in interface BaseWriter.StructOrListWriter
public BigIntWriter bigInt(String name)
bigInt
in interface BaseWriter.StructOrListWriter
public Float4Writer float4(String name)
float4
in interface BaseWriter.StructOrListWriter
public Float8Writer float8(String name)
float8
in interface BaseWriter.StructOrListWriter
public BitWriter bit(String name)
bit
in interface BaseWriter.StructOrListWriter
public VarBinaryWriter binary(String name)
binary
in interface BaseWriter.StructOrListWriter
Copyright © 2020 The Apache Software Foundation. All rights reserved.