Class ExtendedJsonOutput
java.lang.Object
org.apache.drill.exec.vector.complex.fn.BasicJsonOutput
org.apache.drill.exec.vector.complex.fn.ExtendedJsonOutput
- All Implemented Interfaces:
JsonOutput
Writes JSON Output that will wrap Binary, Date, Time, Timestamp, Integer,
Decimal and Interval types with wrapping maps for better type resolution upon
deserialization.
-
Field Summary
Fields inherited from class org.apache.drill.exec.vector.complex.fn.BasicJsonOutput
gen
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
writeBigInt
(long value) void
void
writeBinary
(byte[] value) void
void
writeDate
(TemporalAccessor value) void
void
writeDecimal
(BigDecimal value) void
void
writeInt
(int value) void
writeInterval
(org.joda.time.Period value) void
void
void
writeSmallInt
(short value) void
void
writeTime
(TemporalAccessor value) void
void
writeTimestamp
(TemporalAccessor value) void
void
writeTinyInt
(byte value) void
Methods inherited from class org.apache.drill.exec.vector.complex.fn.BasicJsonOutput
flush, writeBigInt, writeBigInt, writeBinary, writeBinary, writeBoolean, writeBoolean, writeBoolean, writeBooleanNull, writeDate, writeDate, writeDecimal, writeDecimal, writeDouble, writeDouble, writeDouble, writeDoubleNull, writeEndArray, writeEndObject, writeFieldName, writeFloat, writeFloat, writeFloat, writeFloatNull, writeInt, writeInt, writeInterval, writeInterval, writeSmallInt, writeSmallInt, writeStartArray, writeStartObject, writeTime, writeTime, writeTimestamp, writeTimestamp, writeTinyInt, writeTinyInt, writeUntypedNull, writeVar16Char, writeVar16Char, writeVar16Char, writeVar16charNull, writeVarChar, writeVarChar, writeVarChar, writeVarcharNull
-
Constructor Details
-
ExtendedJsonOutput
public ExtendedJsonOutput(com.fasterxml.jackson.core.JsonGenerator gen)
-
-
Method Details
-
writeBigInt
- Specified by:
writeBigInt
in interfaceJsonOutput
- Overrides:
writeBigInt
in classBasicJsonOutput
- Throws:
IOException
-
writeBinary
- Specified by:
writeBinary
in interfaceJsonOutput
- Overrides:
writeBinary
in classBasicJsonOutput
- Throws:
IOException
-
writeDate
- Specified by:
writeDate
in interfaceJsonOutput
- Overrides:
writeDate
in classBasicJsonOutput
- Throws:
IOException
-
writeTime
- Specified by:
writeTime
in interfaceJsonOutput
- Overrides:
writeTime
in classBasicJsonOutput
- Throws:
IOException
-
writeTimestamp
- Specified by:
writeTimestamp
in interfaceJsonOutput
- Overrides:
writeTimestamp
in classBasicJsonOutput
- Throws:
IOException
-
writeInterval
- Specified by:
writeInterval
in interfaceJsonOutput
- Overrides:
writeInterval
in classBasicJsonOutput
- Throws:
IOException
-
writeBigIntNull
- Specified by:
writeBigIntNull
in interfaceJsonOutput
- Overrides:
writeBigIntNull
in classBasicJsonOutput
- Throws:
IOException
-
writeBinaryNull
- Specified by:
writeBinaryNull
in interfaceJsonOutput
- Overrides:
writeBinaryNull
in classBasicJsonOutput
- Throws:
IOException
-
writeDateNull
- Specified by:
writeDateNull
in interfaceJsonOutput
- Overrides:
writeDateNull
in classBasicJsonOutput
- Throws:
IOException
-
writeTimeNull
- Specified by:
writeTimeNull
in interfaceJsonOutput
- Overrides:
writeTimeNull
in classBasicJsonOutput
- Throws:
IOException
-
writeTimestampNull
- Specified by:
writeTimestampNull
in interfaceJsonOutput
- Overrides:
writeTimestampNull
in classBasicJsonOutput
- Throws:
IOException
-
writeIntervalNull
- Specified by:
writeIntervalNull
in interfaceJsonOutput
- Overrides:
writeIntervalNull
in classBasicJsonOutput
- Throws:
IOException
-
writeDecimal
- Specified by:
writeDecimal
in interfaceJsonOutput
- Overrides:
writeDecimal
in classBasicJsonOutput
- Throws:
IOException
-
writeDecimalNull
- Specified by:
writeDecimalNull
in interfaceJsonOutput
- Overrides:
writeDecimalNull
in classBasicJsonOutput
- Throws:
IOException
-
writeTinyInt
- Specified by:
writeTinyInt
in interfaceJsonOutput
- Overrides:
writeTinyInt
in classBasicJsonOutput
- Throws:
IOException
-
writeSmallInt
- Specified by:
writeSmallInt
in interfaceJsonOutput
- Overrides:
writeSmallInt
in classBasicJsonOutput
- Throws:
IOException
-
writeInt
- Specified by:
writeInt
in interfaceJsonOutput
- Overrides:
writeInt
in classBasicJsonOutput
- Throws:
IOException
-
writeTinyIntNull
- Specified by:
writeTinyIntNull
in interfaceJsonOutput
- Overrides:
writeTinyIntNull
in classBasicJsonOutput
- Throws:
IOException
-
writeSmallIntNull
- Specified by:
writeSmallIntNull
in interfaceJsonOutput
- Overrides:
writeSmallIntNull
in classBasicJsonOutput
- Throws:
IOException
-
writeIntNull
- Specified by:
writeIntNull
in interfaceJsonOutput
- Overrides:
writeIntNull
in classBasicJsonOutput
- Throws:
IOException
-