public class JsonRecordWriter
extends org.apache.drill.exec.store.JSONOutputRecordWriter
implements org.apache.drill.exec.store.RecordWriter
| Modifier and Type | Class and Description |
|---|---|
class |
JsonRecordWriter.MapJsonConverter |
class |
JsonRecordWriter.RepeatedListJsonConverter |
class |
JsonRecordWriter.RepeatedMapJsonConverter |
class |
JsonRecordWriter.UnionJsonConverter |
org.apache.drill.exec.store.JSONOutputRecordWriter.BigIntJsonConverter, org.apache.drill.exec.store.JSONOutputRecordWriter.BitJsonConverter, org.apache.drill.exec.store.JSONOutputRecordWriter.DateJsonConverter, org.apache.drill.exec.store.JSONOutputRecordWriter.Decimal18JsonConverter, org.apache.drill.exec.store.JSONOutputRecordWriter.Decimal28DenseJsonConverter, org.apache.drill.exec.store.JSONOutputRecordWriter.Decimal28SparseJsonConverter, org.apache.drill.exec.store.JSONOutputRecordWriter.Decimal38DenseJsonConverter, org.apache.drill.exec.store.JSONOutputRecordWriter.Decimal38SparseJsonConverter, org.apache.drill.exec.store.JSONOutputRecordWriter.Decimal9JsonConverter, org.apache.drill.exec.store.JSONOutputRecordWriter.Float4JsonConverter, org.apache.drill.exec.store.JSONOutputRecordWriter.Float8JsonConverter, org.apache.drill.exec.store.JSONOutputRecordWriter.IntervalDayJsonConverter, org.apache.drill.exec.store.JSONOutputRecordWriter.IntervalJsonConverter, org.apache.drill.exec.store.JSONOutputRecordWriter.IntervalYearJsonConverter, org.apache.drill.exec.store.JSONOutputRecordWriter.IntJsonConverter, org.apache.drill.exec.store.JSONOutputRecordWriter.NullableBigIntJsonConverter, org.apache.drill.exec.store.JSONOutputRecordWriter.NullableBitJsonConverter, org.apache.drill.exec.store.JSONOutputRecordWriter.NullableDateJsonConverter, org.apache.drill.exec.store.JSONOutputRecordWriter.NullableDecimal18JsonConverter, org.apache.drill.exec.store.JSONOutputRecordWriter.NullableDecimal28DenseJsonConverter, org.apache.drill.exec.store.JSONOutputRecordWriter.NullableDecimal28SparseJsonConverter, org.apache.drill.exec.store.JSONOutputRecordWriter.NullableDecimal38DenseJsonConverter, org.apache.drill.exec.store.JSONOutputRecordWriter.NullableDecimal38SparseJsonConverter, org.apache.drill.exec.store.JSONOutputRecordWriter.NullableDecimal9JsonConverter, org.apache.drill.exec.store.JSONOutputRecordWriter.NullableFloat4JsonConverter, org.apache.drill.exec.store.JSONOutputRecordWriter.NullableFloat8JsonConverter, org.apache.drill.exec.store.JSONOutputRecordWriter.NullableIntervalDayJsonConverter, org.apache.drill.exec.store.JSONOutputRecordWriter.NullableIntervalJsonConverter, org.apache.drill.exec.store.JSONOutputRecordWriter.NullableIntervalYearJsonConverter, org.apache.drill.exec.store.JSONOutputRecordWriter.NullableIntJsonConverter, org.apache.drill.exec.store.JSONOutputRecordWriter.NullableSmallIntJsonConverter, org.apache.drill.exec.store.JSONOutputRecordWriter.NullableTimeJsonConverter, org.apache.drill.exec.store.JSONOutputRecordWriter.NullableTimeStampJsonConverter, org.apache.drill.exec.store.JSONOutputRecordWriter.NullableTinyIntJsonConverter, org.apache.drill.exec.store.JSONOutputRecordWriter.NullableUInt1JsonConverter, org.apache.drill.exec.store.JSONOutputRecordWriter.NullableUInt2JsonConverter, org.apache.drill.exec.store.JSONOutputRecordWriter.NullableUInt4JsonConverter, org.apache.drill.exec.store.JSONOutputRecordWriter.NullableUInt8JsonConverter, org.apache.drill.exec.store.JSONOutputRecordWriter.NullableVar16CharJsonConverter, org.apache.drill.exec.store.JSONOutputRecordWriter.NullableVarBinaryJsonConverter, org.apache.drill.exec.store.JSONOutputRecordWriter.NullableVarCharJsonConverter, org.apache.drill.exec.store.JSONOutputRecordWriter.NullableVarDecimalJsonConverter, org.apache.drill.exec.store.JSONOutputRecordWriter.RepeatedBigIntJsonConverter, org.apache.drill.exec.store.JSONOutputRecordWriter.RepeatedBitJsonConverter, org.apache.drill.exec.store.JSONOutputRecordWriter.RepeatedDateJsonConverter, org.apache.drill.exec.store.JSONOutputRecordWriter.RepeatedDecimal18JsonConverter, org.apache.drill.exec.store.JSONOutputRecordWriter.RepeatedDecimal28DenseJsonConverter, org.apache.drill.exec.store.JSONOutputRecordWriter.RepeatedDecimal28SparseJsonConverter, org.apache.drill.exec.store.JSONOutputRecordWriter.RepeatedDecimal38DenseJsonConverter, org.apache.drill.exec.store.JSONOutputRecordWriter.RepeatedDecimal38SparseJsonConverter, org.apache.drill.exec.store.JSONOutputRecordWriter.RepeatedDecimal9JsonConverter, org.apache.drill.exec.store.JSONOutputRecordWriter.RepeatedFloat4JsonConverter, org.apache.drill.exec.store.JSONOutputRecordWriter.RepeatedFloat8JsonConverter, org.apache.drill.exec.store.JSONOutputRecordWriter.RepeatedIntervalDayJsonConverter, org.apache.drill.exec.store.JSONOutputRecordWriter.RepeatedIntervalJsonConverter, org.apache.drill.exec.store.JSONOutputRecordWriter.RepeatedIntervalYearJsonConverter, org.apache.drill.exec.store.JSONOutputRecordWriter.RepeatedIntJsonConverter, org.apache.drill.exec.store.JSONOutputRecordWriter.RepeatedSmallIntJsonConverter, org.apache.drill.exec.store.JSONOutputRecordWriter.RepeatedTimeJsonConverter, org.apache.drill.exec.store.JSONOutputRecordWriter.RepeatedTimeStampJsonConverter, org.apache.drill.exec.store.JSONOutputRecordWriter.RepeatedTinyIntJsonConverter, org.apache.drill.exec.store.JSONOutputRecordWriter.RepeatedUInt1JsonConverter, org.apache.drill.exec.store.JSONOutputRecordWriter.RepeatedUInt2JsonConverter, org.apache.drill.exec.store.JSONOutputRecordWriter.RepeatedUInt4JsonConverter, org.apache.drill.exec.store.JSONOutputRecordWriter.RepeatedUInt8JsonConverter, org.apache.drill.exec.store.JSONOutputRecordWriter.RepeatedVar16CharJsonConverter, org.apache.drill.exec.store.JSONOutputRecordWriter.RepeatedVarBinaryJsonConverter, org.apache.drill.exec.store.JSONOutputRecordWriter.RepeatedVarCharJsonConverter, org.apache.drill.exec.store.JSONOutputRecordWriter.RepeatedVarDecimalJsonConverter, org.apache.drill.exec.store.JSONOutputRecordWriter.SmallIntJsonConverter, org.apache.drill.exec.store.JSONOutputRecordWriter.TimeJsonConverter, org.apache.drill.exec.store.JSONOutputRecordWriter.TimeStampJsonConverter, org.apache.drill.exec.store.JSONOutputRecordWriter.TinyIntJsonConverter, org.apache.drill.exec.store.JSONOutputRecordWriter.UInt1JsonConverter, org.apache.drill.exec.store.JSONOutputRecordWriter.UInt2JsonConverter, org.apache.drill.exec.store.JSONOutputRecordWriter.UInt4JsonConverter, org.apache.drill.exec.store.JSONOutputRecordWriter.UInt8JsonConverter, org.apache.drill.exec.store.JSONOutputRecordWriter.Var16CharJsonConverter, org.apache.drill.exec.store.JSONOutputRecordWriter.VarBinaryJsonConverter, org.apache.drill.exec.store.JSONOutputRecordWriter.VarCharJsonConverter, org.apache.drill.exec.store.JSONOutputRecordWriter.VarDecimalJsonConverter| Constructor and Description |
|---|
JsonRecordWriter(StorageStrategy storageStrategy,
org.apache.hadoop.conf.Configuration fsConf) |
| Modifier and Type | Method and Description |
|---|---|
void |
abort() |
void |
cleanup() |
void |
endRecord() |
org.apache.drill.exec.store.EventBasedRecordWriter.FieldConverter |
getNewMapConverter(int fieldId,
String fieldName,
FieldReader reader) |
org.apache.drill.exec.store.EventBasedRecordWriter.FieldConverter |
getNewRepeatedListConverter(int fieldId,
String fieldName,
FieldReader reader) |
org.apache.drill.exec.store.EventBasedRecordWriter.FieldConverter |
getNewRepeatedMapConverter(int fieldId,
String fieldName,
FieldReader reader) |
org.apache.drill.exec.store.EventBasedRecordWriter.FieldConverter |
getNewUnionConverter(int fieldId,
String fieldName,
FieldReader reader) |
void |
init(Map<String,String> writerOptions) |
void |
startRecord() |
void |
updateSchema(VectorAccessible batch) |
getNewBigIntConverter, getNewBitConverter, getNewDateConverter, getNewDecimal18Converter, getNewDecimal28DenseConverter, getNewDecimal28SparseConverter, getNewDecimal38DenseConverter, getNewDecimal38SparseConverter, getNewDecimal9Converter, getNewFloat4Converter, getNewFloat8Converter, getNewIntConverter, getNewIntervalConverter, getNewIntervalDayConverter, getNewIntervalYearConverter, getNewNullableBigIntConverter, getNewNullableBitConverter, getNewNullableDateConverter, getNewNullableDecimal18Converter, getNewNullableDecimal28DenseConverter, getNewNullableDecimal28SparseConverter, getNewNullableDecimal38DenseConverter, getNewNullableDecimal38SparseConverter, getNewNullableDecimal9Converter, getNewNullableFloat4Converter, getNewNullableFloat8Converter, getNewNullableIntConverter, getNewNullableIntervalConverter, getNewNullableIntervalDayConverter, getNewNullableIntervalYearConverter, getNewNullableSmallIntConverter, getNewNullableTimeConverter, getNewNullableTimeStampConverter, getNewNullableTinyIntConverter, getNewNullableUInt1Converter, getNewNullableUInt2Converter, getNewNullableUInt4Converter, getNewNullableUInt8Converter, getNewNullableVar16CharConverter, getNewNullableVarBinaryConverter, getNewNullableVarCharConverter, getNewNullableVarDecimalConverter, getNewRepeatedBigIntConverter, getNewRepeatedBitConverter, getNewRepeatedDateConverter, getNewRepeatedDecimal18Converter, getNewRepeatedDecimal28DenseConverter, getNewRepeatedDecimal28SparseConverter, getNewRepeatedDecimal38DenseConverter, getNewRepeatedDecimal38SparseConverter, getNewRepeatedDecimal9Converter, getNewRepeatedFloat4Converter, getNewRepeatedFloat8Converter, getNewRepeatedIntConverter, getNewRepeatedIntervalConverter, getNewRepeatedIntervalDayConverter, getNewRepeatedIntervalYearConverter, getNewRepeatedSmallIntConverter, getNewRepeatedTimeConverter, getNewRepeatedTimeStampConverter, getNewRepeatedTinyIntConverter, getNewRepeatedUInt1Converter, getNewRepeatedUInt2Converter, getNewRepeatedUInt4Converter, getNewRepeatedUInt8Converter, getNewRepeatedVar16CharConverter, getNewRepeatedVarBinaryConverter, getNewRepeatedVarCharConverter, getNewRepeatedVarDecimalConverter, getNewSmallIntConverter, getNewTimeConverter, getNewTimeStampConverter, getNewTinyIntConverter, getNewUInt1Converter, getNewUInt2Converter, getNewUInt4Converter, getNewUInt8Converter, getNewVar16CharConverter, getNewVarBinaryConverter, getNewVarCharConverter, getNewVarDecimalConvertercheckForNewPartition, getNewDictConverter, getNewRepeatedDictConverter, newPartition, postProcessing, setPartitionVectorclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitcheckForNewPartition, getNewBigIntConverter, getNewBitConverter, getNewDateConverter, getNewDecimal18Converter, getNewDecimal28DenseConverter, getNewDecimal28SparseConverter, getNewDecimal38DenseConverter, getNewDecimal38SparseConverter, getNewDecimal9Converter, getNewDictConverter, getNewFloat4Converter, getNewFloat8Converter, getNewIntConverter, getNewIntervalConverter, getNewIntervalDayConverter, getNewIntervalYearConverter, getNewNullableBigIntConverter, getNewNullableBitConverter, getNewNullableDateConverter, getNewNullableDecimal18Converter, getNewNullableDecimal28DenseConverter, getNewNullableDecimal28SparseConverter, getNewNullableDecimal38DenseConverter, getNewNullableDecimal38SparseConverter, getNewNullableDecimal9Converter, getNewNullableFloat4Converter, getNewNullableFloat8Converter, getNewNullableIntConverter, getNewNullableIntervalConverter, getNewNullableIntervalDayConverter, getNewNullableIntervalYearConverter, getNewNullableSmallIntConverter, getNewNullableTimeConverter, getNewNullableTimeStampConverter, getNewNullableTinyIntConverter, getNewNullableUInt1Converter, getNewNullableUInt2Converter, getNewNullableUInt4Converter, getNewNullableUInt8Converter, getNewNullableVar16CharConverter, getNewNullableVarBinaryConverter, getNewNullableVarCharConverter, getNewNullableVarDecimalConverter, getNewRepeatedBigIntConverter, getNewRepeatedBitConverter, getNewRepeatedDateConverter, getNewRepeatedDecimal18Converter, getNewRepeatedDecimal28DenseConverter, getNewRepeatedDecimal28SparseConverter, getNewRepeatedDecimal38DenseConverter, getNewRepeatedDecimal38SparseConverter, getNewRepeatedDecimal9Converter, getNewRepeatedDictConverter, getNewRepeatedFloat4Converter, getNewRepeatedFloat8Converter, getNewRepeatedIntConverter, getNewRepeatedIntervalConverter, getNewRepeatedIntervalDayConverter, getNewRepeatedIntervalYearConverter, getNewRepeatedSmallIntConverter, getNewRepeatedTimeConverter, getNewRepeatedTimeStampConverter, getNewRepeatedTinyIntConverter, getNewRepeatedUInt1Converter, getNewRepeatedUInt2Converter, getNewRepeatedUInt4Converter, getNewRepeatedUInt8Converter, getNewRepeatedVar16CharConverter, getNewRepeatedVarBinaryConverter, getNewRepeatedVarCharConverter, getNewRepeatedVarDecimalConverter, getNewSmallIntConverter, getNewTimeConverter, getNewTimeStampConverter, getNewTinyIntConverter, getNewUInt1Converter, getNewUInt2Converter, getNewUInt4Converter, getNewUInt8Converter, getNewVar16CharConverter, getNewVarBinaryConverter, getNewVarCharConverter, getNewVarDecimalConverter, postProcessingpublic JsonRecordWriter(StorageStrategy storageStrategy, org.apache.hadoop.conf.Configuration fsConf)
public void init(Map<String,String> writerOptions) throws IOException
init in interface org.apache.drill.exec.store.RecordWriterIOExceptionpublic void updateSchema(VectorAccessible batch) throws IOException
updateSchema in interface org.apache.drill.exec.store.RecordWriterIOExceptionpublic org.apache.drill.exec.store.EventBasedRecordWriter.FieldConverter getNewMapConverter(int fieldId,
String fieldName,
FieldReader reader)
getNewMapConverter in interface org.apache.drill.exec.store.RecordWritergetNewMapConverter in class org.apache.drill.exec.store.AbstractRecordWriterpublic org.apache.drill.exec.store.EventBasedRecordWriter.FieldConverter getNewUnionConverter(int fieldId,
String fieldName,
FieldReader reader)
getNewUnionConverter in interface org.apache.drill.exec.store.RecordWritergetNewUnionConverter in class org.apache.drill.exec.store.AbstractRecordWriterpublic org.apache.drill.exec.store.EventBasedRecordWriter.FieldConverter getNewRepeatedMapConverter(int fieldId,
String fieldName,
FieldReader reader)
getNewRepeatedMapConverter in interface org.apache.drill.exec.store.RecordWritergetNewRepeatedMapConverter in class org.apache.drill.exec.store.AbstractRecordWriterpublic org.apache.drill.exec.store.EventBasedRecordWriter.FieldConverter getNewRepeatedListConverter(int fieldId,
String fieldName,
FieldReader reader)
getNewRepeatedListConverter in interface org.apache.drill.exec.store.RecordWritergetNewRepeatedListConverter in class org.apache.drill.exec.store.AbstractRecordWriterpublic void startRecord()
throws IOException
startRecord in interface org.apache.drill.exec.store.RecordWriterIOExceptionpublic void endRecord()
throws IOException
endRecord in interface org.apache.drill.exec.store.RecordWriterIOExceptionpublic void abort()
throws IOException
abort in interface org.apache.drill.exec.store.RecordWriterIOExceptionpublic void cleanup()
throws IOException
cleanup in interface org.apache.drill.exec.store.RecordWriterIOExceptionCopyright © 2021 The Apache Software Foundation. All rights reserved.