Interface JsonOutput
- All Known Implementing Classes:
BasicJsonOutput
,ExtendedJsonOutput
public interface JsonOutput
Interface through which UDFs, RecordWriters and other systems can write out a
JSON output. Generally used to control how non-JSON types are mapped to a
JSON output stream.
-
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
-
Method Details
-
flush
- Throws:
IOException
-
writeStartArray
- Throws:
IOException
-
writeEndArray
- Throws:
IOException
-
writeStartObject
- Throws:
IOException
-
writeEndObject
- Throws:
IOException
-
writeUntypedNull
- Throws:
IOException
-
writeFieldName
- Throws:
IOException
-
writeDecimal
- Throws:
IOException
-
writeTinyInt
- Throws:
IOException
-
writeSmallInt
- Throws:
IOException
-
writeInt
- Throws:
IOException
-
writeBigInt
- Throws:
IOException
-
writeFloat
- Throws:
IOException
-
writeDouble
- Throws:
IOException
-
writeVarChar
- Throws:
IOException
-
writeVar16Char
- Throws:
IOException
-
writeBinary
- Throws:
IOException
-
writeBoolean
- Throws:
IOException
-
writeDate
- Throws:
IOException
-
writeTime
- Throws:
IOException
-
writeTimestamp
- Throws:
IOException
-
writeInterval
- Throws:
IOException
-
writeDecimalNull
- Throws:
IOException
-
writeTinyIntNull
- Throws:
IOException
-
writeSmallIntNull
- Throws:
IOException
-
writeIntNull
- Throws:
IOException
-
writeBigIntNull
- Throws:
IOException
-
writeFloatNull
- Throws:
IOException
-
writeDoubleNull
- Throws:
IOException
-
writeVarcharNull
- Throws:
IOException
-
writeVar16charNull
- Throws:
IOException
-
writeBinaryNull
- Throws:
IOException
-
writeBooleanNull
- Throws:
IOException
-
writeDateNull
- Throws:
IOException
-
writeTimeNull
- Throws:
IOException
-
writeTimestampNull
- Throws:
IOException
-
writeIntervalNull
- Throws:
IOException
-
writeDecimal
- Throws:
IOException
-
writeTinyInt
- Throws:
IOException
-
writeSmallInt
- Throws:
IOException
-
writeInt
- Throws:
IOException
-
writeBigInt
- Throws:
IOException
-
writeFloat
- Throws:
IOException
-
writeDouble
- Throws:
IOException
-
writeVarChar
- Throws:
IOException
-
writeVar16Char
- Throws:
IOException
-
writeBinary
- Throws:
IOException
-
writeBoolean
- Throws:
IOException
-
writeDate
- Throws:
IOException
-
writeTime
- Throws:
IOException
-
writeTimestamp
- Throws:
IOException
-
writeInterval
- Throws:
IOException
-
writeDecimal
- Throws:
IOException
-
writeTinyInt
- Throws:
IOException
-
writeSmallInt
- Throws:
IOException
-
writeInt
- Throws:
IOException
-
writeBigInt
- Throws:
IOException
-
writeFloat
- Throws:
IOException
-
writeDouble
- Throws:
IOException
-
writeVarChar
- Throws:
IOException
-
writeVar16Char
- Throws:
IOException
-
writeBinary
- Throws:
IOException
-
writeBoolean
- Throws:
IOException
-
writeDate
- Throws:
IOException
-
writeTime
- Throws:
IOException
-
writeTimestamp
- Throws:
IOException
-
writeInterval
- Throws:
IOException
-