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 TypeMethodDescriptionvoidflush()voidwriteBigInt(int index, FieldReader reader) voidwriteBigInt(long value) voidwriteBigInt(FieldReader reader) voidvoidwriteBinary(byte[] value) voidwriteBinary(int index, FieldReader reader) voidwriteBinary(FieldReader reader) voidvoidwriteBoolean(boolean value) voidwriteBoolean(int index, FieldReader reader) voidwriteBoolean(FieldReader reader) voidvoidwriteDate(int index, FieldReader reader) voidwriteDate(TemporalAccessor value) voidwriteDate(FieldReader reader) voidvoidwriteDecimal(int index, FieldReader reader) voidwriteDecimal(BigDecimal value) voidwriteDecimal(FieldReader reader) voidvoidwriteDouble(double value) voidwriteDouble(int index, FieldReader reader) voidwriteDouble(FieldReader reader) voidvoidvoidvoidwriteFieldName(String name) voidwriteFloat(float value) voidwriteFloat(int index, FieldReader reader) voidwriteFloat(FieldReader reader) voidvoidwriteInt(int value) voidwriteInt(int index, FieldReader reader) voidwriteInt(FieldReader reader) voidwriteInterval(int index, FieldReader reader) voidwriteInterval(FieldReader reader) voidwriteInterval(org.joda.time.Period value) voidvoidvoidwriteSmallInt(int index, FieldReader reader) voidwriteSmallInt(short value) voidwriteSmallInt(FieldReader reader) voidvoidvoidvoidwriteTime(int index, FieldReader reader) voidwriteTime(TemporalAccessor value) voidwriteTime(FieldReader reader) voidvoidwriteTimestamp(int index, FieldReader reader) voidwriteTimestamp(TemporalAccessor value) voidwriteTimestamp(FieldReader reader) voidvoidwriteTinyInt(byte value) voidwriteTinyInt(int index, FieldReader reader) voidwriteTinyInt(FieldReader reader) voidvoidvoidwriteVar16Char(int index, FieldReader reader) voidwriteVar16Char(String value) voidwriteVar16Char(FieldReader reader) voidvoidwriteVarChar(int index, FieldReader reader) voidwriteVarChar(String value) voidwriteVarChar(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
-