Class BasicJsonOutput
java.lang.Object
org.apache.drill.exec.vector.complex.fn.BasicJsonOutput
- All Implemented Interfaces:
JsonOutput
- Direct Known Subclasses:
ExtendedJsonOutput
A JSON output class that generates standard JSON. By default, literals are
output such that they can be implicitly cast.
-
Field Summary
-
Constructor Summary
ModifierConstructorDescriptionBasicJsonOutput
(com.fasterxml.jackson.core.JsonGenerator gen) protected
BasicJsonOutput
(com.fasterxml.jackson.core.JsonGenerator gen, DateOutputFormat dateOutput) -
Method Summary
Modifier and TypeMethodDescriptionvoid
flush()
void
writeBigInt
(int index, FieldReader reader) void
writeBigInt
(long value) void
writeBigInt
(FieldReader reader) void
void
writeBinary
(byte[] value) void
writeBinary
(int index, FieldReader reader) void
writeBinary
(FieldReader reader) void
void
writeBoolean
(boolean value) void
writeBoolean
(int index, FieldReader reader) void
writeBoolean
(FieldReader reader) void
void
writeDate
(int index, FieldReader reader) void
writeDate
(TemporalAccessor value) void
writeDate
(FieldReader reader) void
void
writeDecimal
(int index, FieldReader reader) void
writeDecimal
(BigDecimal value) void
writeDecimal
(FieldReader reader) void
void
writeDouble
(double value) void
writeDouble
(int index, FieldReader reader) void
writeDouble
(FieldReader reader) void
void
void
void
writeFieldName
(String name) void
writeFloat
(float value) void
writeFloat
(int index, FieldReader reader) void
writeFloat
(FieldReader reader) void
void
writeInt
(int value) void
writeInt
(int index, FieldReader reader) void
writeInt
(FieldReader reader) void
writeInterval
(int index, FieldReader reader) void
writeInterval
(FieldReader reader) void
writeInterval
(org.joda.time.Period value) void
void
void
writeSmallInt
(int index, FieldReader reader) void
writeSmallInt
(short value) void
writeSmallInt
(FieldReader reader) void
void
void
void
writeTime
(int index, FieldReader reader) void
writeTime
(TemporalAccessor value) void
writeTime
(FieldReader reader) void
void
writeTimestamp
(int index, FieldReader reader) void
writeTimestamp
(TemporalAccessor value) void
writeTimestamp
(FieldReader reader) void
void
writeTinyInt
(byte value) void
writeTinyInt
(int index, FieldReader reader) void
writeTinyInt
(FieldReader reader) void
void
void
writeVar16Char
(int index, FieldReader reader) void
writeVar16Char
(String value) void
writeVar16Char
(FieldReader reader) void
void
writeVarChar
(int index, FieldReader reader) void
writeVarChar
(String value) void
writeVarChar
(FieldReader reader) void
-
Field Details
-
gen
protected final com.fasterxml.jackson.core.JsonGenerator gen
-
-
Constructor Details
-
BasicJsonOutput
public BasicJsonOutput(com.fasterxml.jackson.core.JsonGenerator gen) -
BasicJsonOutput
protected BasicJsonOutput(com.fasterxml.jackson.core.JsonGenerator gen, DateOutputFormat dateOutput)
-
-
Method Details
-
flush
- Specified by:
flush
in interfaceJsonOutput
- Throws:
IOException
-
writeStartArray
- Specified by:
writeStartArray
in interfaceJsonOutput
- Throws:
IOException
-
writeEndArray
- Specified by:
writeEndArray
in interfaceJsonOutput
- Throws:
IOException
-
writeStartObject
- Specified by:
writeStartObject
in interfaceJsonOutput
- Throws:
IOException
-
writeEndObject
- Specified by:
writeEndObject
in interfaceJsonOutput
- Throws:
IOException
-
writeUntypedNull
- Specified by:
writeUntypedNull
in interfaceJsonOutput
- Throws:
IOException
-
writeFieldName
- Specified by:
writeFieldName
in interfaceJsonOutput
- Throws:
IOException
-
writeDecimal
- Specified by:
writeDecimal
in interfaceJsonOutput
- Throws:
IOException
-
writeTinyInt
- Specified by:
writeTinyInt
in interfaceJsonOutput
- Throws:
IOException
-
writeSmallInt
- Specified by:
writeSmallInt
in interfaceJsonOutput
- Throws:
IOException
-
writeInt
- Specified by:
writeInt
in interfaceJsonOutput
- Throws:
IOException
-
writeBigInt
- Specified by:
writeBigInt
in interfaceJsonOutput
- Throws:
IOException
-
writeFloat
- Specified by:
writeFloat
in interfaceJsonOutput
- Throws:
IOException
-
writeDouble
- Specified by:
writeDouble
in interfaceJsonOutput
- Throws:
IOException
-
writeVarChar
- Specified by:
writeVarChar
in interfaceJsonOutput
- Throws:
IOException
-
writeVar16Char
- Specified by:
writeVar16Char
in interfaceJsonOutput
- Throws:
IOException
-
writeBinary
- Specified by:
writeBinary
in interfaceJsonOutput
- Throws:
IOException
-
writeBoolean
- Specified by:
writeBoolean
in interfaceJsonOutput
- Throws:
IOException
-
writeDate
- Specified by:
writeDate
in interfaceJsonOutput
- Throws:
IOException
-
writeTime
- Specified by:
writeTime
in interfaceJsonOutput
- Throws:
IOException
-
writeTimestamp
- Specified by:
writeTimestamp
in interfaceJsonOutput
- Throws:
IOException
-
writeInterval
- Specified by:
writeInterval
in interfaceJsonOutput
- Throws:
IOException
-
writeTinyInt
- Specified by:
writeTinyInt
in interfaceJsonOutput
- Throws:
IOException
-
writeSmallInt
- Specified by:
writeSmallInt
in interfaceJsonOutput
- Throws:
IOException
-
writeInt
- Specified by:
writeInt
in interfaceJsonOutput
- Throws:
IOException
-
writeBigInt
- Specified by:
writeBigInt
in interfaceJsonOutput
- Throws:
IOException
-
writeFloat
- Specified by:
writeFloat
in interfaceJsonOutput
- Throws:
IOException
-
writeDouble
- Specified by:
writeDouble
in interfaceJsonOutput
- Throws:
IOException
-
writeVarChar
- Specified by:
writeVarChar
in interfaceJsonOutput
- Throws:
IOException
-
writeVar16Char
- Specified by:
writeVar16Char
in interfaceJsonOutput
- Throws:
IOException
-
writeBinary
- Specified by:
writeBinary
in interfaceJsonOutput
- Throws:
IOException
-
writeBoolean
- Specified by:
writeBoolean
in interfaceJsonOutput
- Throws:
IOException
-
writeDate
- Specified by:
writeDate
in interfaceJsonOutput
- Throws:
IOException
-
writeTime
- Specified by:
writeTime
in interfaceJsonOutput
- Throws:
IOException
-
writeTimestamp
- Specified by:
writeTimestamp
in interfaceJsonOutput
- Throws:
IOException
-
writeInterval
- Specified by:
writeInterval
in interfaceJsonOutput
- Throws:
IOException
-
writeDecimal
- Specified by:
writeDecimal
in interfaceJsonOutput
- Throws:
IOException
-
writeDecimal
- Specified by:
writeDecimal
in interfaceJsonOutput
- Throws:
IOException
-
writeTinyInt
- Specified by:
writeTinyInt
in interfaceJsonOutput
- Throws:
IOException
-
writeSmallInt
- Specified by:
writeSmallInt
in interfaceJsonOutput
- Throws:
IOException
-
writeInt
- Specified by:
writeInt
in interfaceJsonOutput
- Throws:
IOException
-
writeBigInt
- Specified by:
writeBigInt
in interfaceJsonOutput
- Throws:
IOException
-
writeFloat
- Specified by:
writeFloat
in interfaceJsonOutput
- Throws:
IOException
-
writeDouble
- Specified by:
writeDouble
in interfaceJsonOutput
- Throws:
IOException
-
writeVarChar
- Specified by:
writeVarChar
in interfaceJsonOutput
- Throws:
IOException
-
writeVar16Char
- Specified by:
writeVar16Char
in interfaceJsonOutput
- Throws:
IOException
-
writeBinary
- Specified by:
writeBinary
in interfaceJsonOutput
- Throws:
IOException
-
writeBoolean
- Specified by:
writeBoolean
in interfaceJsonOutput
- Throws:
IOException
-
writeDate
- Specified by:
writeDate
in interfaceJsonOutput
- Throws:
IOException
-
writeTime
- Specified by:
writeTime
in interfaceJsonOutput
- Throws:
IOException
-
writeTimestamp
- Specified by:
writeTimestamp
in interfaceJsonOutput
- Throws:
IOException
-
writeInterval
- Specified by:
writeInterval
in interfaceJsonOutput
- Throws:
IOException
-
writeDecimalNull
- Specified by:
writeDecimalNull
in interfaceJsonOutput
- Throws:
IOException
-
writeTinyIntNull
- Specified by:
writeTinyIntNull
in interfaceJsonOutput
- Throws:
IOException
-
writeSmallIntNull
- Specified by:
writeSmallIntNull
in interfaceJsonOutput
- Throws:
IOException
-
writeIntNull
- Specified by:
writeIntNull
in interfaceJsonOutput
- Throws:
IOException
-
writeBigIntNull
- Specified by:
writeBigIntNull
in interfaceJsonOutput
- Throws:
IOException
-
writeFloatNull
- Specified by:
writeFloatNull
in interfaceJsonOutput
- Throws:
IOException
-
writeDoubleNull
- Specified by:
writeDoubleNull
in interfaceJsonOutput
- Throws:
IOException
-
writeVarcharNull
- Specified by:
writeVarcharNull
in interfaceJsonOutput
- Throws:
IOException
-
writeVar16charNull
- Specified by:
writeVar16charNull
in interfaceJsonOutput
- Throws:
IOException
-
writeBinaryNull
- Specified by:
writeBinaryNull
in interfaceJsonOutput
- Throws:
IOException
-
writeBooleanNull
- Specified by:
writeBooleanNull
in interfaceJsonOutput
- Throws:
IOException
-
writeDateNull
- Specified by:
writeDateNull
in interfaceJsonOutput
- Throws:
IOException
-
writeTimeNull
- Specified by:
writeTimeNull
in interfaceJsonOutput
- Throws:
IOException
-
writeTimestampNull
- Specified by:
writeTimestampNull
in interfaceJsonOutput
- Throws:
IOException
-
writeIntervalNull
- Specified by:
writeIntervalNull
in interfaceJsonOutput
- Throws:
IOException
-