public class JsonStatisticsRecordWriter extends org.apache.drill.exec.store.JSONBaseStatisticsRecordWriter implements StatisticsRecordWriter
org.apache.drill.exec.store.JSONBaseStatisticsRecordWriter.BigIntJsonConverter, org.apache.drill.exec.store.JSONBaseStatisticsRecordWriter.BitJsonConverter, org.apache.drill.exec.store.JSONBaseStatisticsRecordWriter.DateJsonConverter, org.apache.drill.exec.store.JSONBaseStatisticsRecordWriter.Decimal18JsonConverter, org.apache.drill.exec.store.JSONBaseStatisticsRecordWriter.Decimal28DenseJsonConverter, org.apache.drill.exec.store.JSONBaseStatisticsRecordWriter.Decimal28SparseJsonConverter, org.apache.drill.exec.store.JSONBaseStatisticsRecordWriter.Decimal38DenseJsonConverter, org.apache.drill.exec.store.JSONBaseStatisticsRecordWriter.Decimal38SparseJsonConverter, org.apache.drill.exec.store.JSONBaseStatisticsRecordWriter.Decimal9JsonConverter, org.apache.drill.exec.store.JSONBaseStatisticsRecordWriter.Float4JsonConverter, org.apache.drill.exec.store.JSONBaseStatisticsRecordWriter.Float8JsonConverter, org.apache.drill.exec.store.JSONBaseStatisticsRecordWriter.IntervalDayJsonConverter, org.apache.drill.exec.store.JSONBaseStatisticsRecordWriter.IntervalJsonConverter, org.apache.drill.exec.store.JSONBaseStatisticsRecordWriter.IntervalYearJsonConverter, org.apache.drill.exec.store.JSONBaseStatisticsRecordWriter.IntJsonConverter, org.apache.drill.exec.store.JSONBaseStatisticsRecordWriter.NullableBigIntJsonConverter, org.apache.drill.exec.store.JSONBaseStatisticsRecordWriter.NullableBitJsonConverter, org.apache.drill.exec.store.JSONBaseStatisticsRecordWriter.NullableDateJsonConverter, org.apache.drill.exec.store.JSONBaseStatisticsRecordWriter.NullableDecimal18JsonConverter, org.apache.drill.exec.store.JSONBaseStatisticsRecordWriter.NullableDecimal28DenseJsonConverter, org.apache.drill.exec.store.JSONBaseStatisticsRecordWriter.NullableDecimal28SparseJsonConverter, org.apache.drill.exec.store.JSONBaseStatisticsRecordWriter.NullableDecimal38DenseJsonConverter, org.apache.drill.exec.store.JSONBaseStatisticsRecordWriter.NullableDecimal38SparseJsonConverter, org.apache.drill.exec.store.JSONBaseStatisticsRecordWriter.NullableDecimal9JsonConverter, org.apache.drill.exec.store.JSONBaseStatisticsRecordWriter.NullableFloat4JsonConverter, org.apache.drill.exec.store.JSONBaseStatisticsRecordWriter.NullableFloat8JsonConverter, org.apache.drill.exec.store.JSONBaseStatisticsRecordWriter.NullableIntervalDayJsonConverter, org.apache.drill.exec.store.JSONBaseStatisticsRecordWriter.NullableIntervalJsonConverter, org.apache.drill.exec.store.JSONBaseStatisticsRecordWriter.NullableIntervalYearJsonConverter, org.apache.drill.exec.store.JSONBaseStatisticsRecordWriter.NullableIntJsonConverter, org.apache.drill.exec.store.JSONBaseStatisticsRecordWriter.NullableSmallIntJsonConverter, org.apache.drill.exec.store.JSONBaseStatisticsRecordWriter.NullableTimeJsonConverter, org.apache.drill.exec.store.JSONBaseStatisticsRecordWriter.NullableTimeStampJsonConverter, org.apache.drill.exec.store.JSONBaseStatisticsRecordWriter.NullableTinyIntJsonConverter, org.apache.drill.exec.store.JSONBaseStatisticsRecordWriter.NullableUInt1JsonConverter, org.apache.drill.exec.store.JSONBaseStatisticsRecordWriter.NullableUInt2JsonConverter, org.apache.drill.exec.store.JSONBaseStatisticsRecordWriter.NullableUInt4JsonConverter, org.apache.drill.exec.store.JSONBaseStatisticsRecordWriter.NullableUInt8JsonConverter, org.apache.drill.exec.store.JSONBaseStatisticsRecordWriter.NullableVar16CharJsonConverter, org.apache.drill.exec.store.JSONBaseStatisticsRecordWriter.NullableVarBinaryJsonConverter, org.apache.drill.exec.store.JSONBaseStatisticsRecordWriter.NullableVarCharJsonConverter, org.apache.drill.exec.store.JSONBaseStatisticsRecordWriter.NullableVarDecimalJsonConverter, org.apache.drill.exec.store.JSONBaseStatisticsRecordWriter.RepeatedBigIntJsonConverter, org.apache.drill.exec.store.JSONBaseStatisticsRecordWriter.RepeatedBitJsonConverter, org.apache.drill.exec.store.JSONBaseStatisticsRecordWriter.RepeatedDateJsonConverter, org.apache.drill.exec.store.JSONBaseStatisticsRecordWriter.RepeatedDecimal18JsonConverter, org.apache.drill.exec.store.JSONBaseStatisticsRecordWriter.RepeatedDecimal28DenseJsonConverter, org.apache.drill.exec.store.JSONBaseStatisticsRecordWriter.RepeatedDecimal28SparseJsonConverter, org.apache.drill.exec.store.JSONBaseStatisticsRecordWriter.RepeatedDecimal38DenseJsonConverter, org.apache.drill.exec.store.JSONBaseStatisticsRecordWriter.RepeatedDecimal38SparseJsonConverter, org.apache.drill.exec.store.JSONBaseStatisticsRecordWriter.RepeatedDecimal9JsonConverter, org.apache.drill.exec.store.JSONBaseStatisticsRecordWriter.RepeatedFloat4JsonConverter, org.apache.drill.exec.store.JSONBaseStatisticsRecordWriter.RepeatedFloat8JsonConverter, org.apache.drill.exec.store.JSONBaseStatisticsRecordWriter.RepeatedIntervalDayJsonConverter, org.apache.drill.exec.store.JSONBaseStatisticsRecordWriter.RepeatedIntervalJsonConverter, org.apache.drill.exec.store.JSONBaseStatisticsRecordWriter.RepeatedIntervalYearJsonConverter, org.apache.drill.exec.store.JSONBaseStatisticsRecordWriter.RepeatedIntJsonConverter, org.apache.drill.exec.store.JSONBaseStatisticsRecordWriter.RepeatedSmallIntJsonConverter, org.apache.drill.exec.store.JSONBaseStatisticsRecordWriter.RepeatedTimeJsonConverter, org.apache.drill.exec.store.JSONBaseStatisticsRecordWriter.RepeatedTimeStampJsonConverter, org.apache.drill.exec.store.JSONBaseStatisticsRecordWriter.RepeatedTinyIntJsonConverter, org.apache.drill.exec.store.JSONBaseStatisticsRecordWriter.RepeatedUInt1JsonConverter, org.apache.drill.exec.store.JSONBaseStatisticsRecordWriter.RepeatedUInt2JsonConverter, org.apache.drill.exec.store.JSONBaseStatisticsRecordWriter.RepeatedUInt4JsonConverter, org.apache.drill.exec.store.JSONBaseStatisticsRecordWriter.RepeatedUInt8JsonConverter, org.apache.drill.exec.store.JSONBaseStatisticsRecordWriter.RepeatedVar16CharJsonConverter, org.apache.drill.exec.store.JSONBaseStatisticsRecordWriter.RepeatedVarBinaryJsonConverter, org.apache.drill.exec.store.JSONBaseStatisticsRecordWriter.RepeatedVarCharJsonConverter, org.apache.drill.exec.store.JSONBaseStatisticsRecordWriter.RepeatedVarDecimalJsonConverter, org.apache.drill.exec.store.JSONBaseStatisticsRecordWriter.SmallIntJsonConverter, org.apache.drill.exec.store.JSONBaseStatisticsRecordWriter.TimeJsonConverter, org.apache.drill.exec.store.JSONBaseStatisticsRecordWriter.TimeStampJsonConverter, org.apache.drill.exec.store.JSONBaseStatisticsRecordWriter.TinyIntJsonConverter, org.apache.drill.exec.store.JSONBaseStatisticsRecordWriter.UInt1JsonConverter, org.apache.drill.exec.store.JSONBaseStatisticsRecordWriter.UInt2JsonConverter, org.apache.drill.exec.store.JSONBaseStatisticsRecordWriter.UInt4JsonConverter, org.apache.drill.exec.store.JSONBaseStatisticsRecordWriter.UInt8JsonConverter, org.apache.drill.exec.store.JSONBaseStatisticsRecordWriter.Var16CharJsonConverter, org.apache.drill.exec.store.JSONBaseStatisticsRecordWriter.VarBinaryJsonConverter, org.apache.drill.exec.store.JSONBaseStatisticsRecordWriter.VarCharJsonConverter, org.apache.drill.exec.store.JSONBaseStatisticsRecordWriter.VarDecimalJsonConverter| Constructor and Description |
|---|
JsonStatisticsRecordWriter(org.apache.hadoop.conf.Configuration fsConf,
FormatPlugin formatPlugin) |
| Modifier and Type | Method and Description |
|---|---|
void |
abort() |
void |
checkForNewPartition(int index)
Check if the writer should start a new partition, and if so, start a new partition
|
void |
cleanup() |
void |
endStatisticsRecord() |
void |
flushBlockingWriter()
For a blocking writer, called after processing all the records to flush out the writes
|
org.apache.drill.exec.store.EventBasedRecordWriter.FieldConverter |
getNewBigIntConverter(int fieldId,
String fieldName,
FieldReader reader) |
org.apache.drill.exec.store.EventBasedRecordWriter.FieldConverter |
getNewDateConverter(int fieldId,
String fieldName,
FieldReader reader) |
org.apache.drill.exec.store.EventBasedRecordWriter.FieldConverter |
getNewIntConverter(int fieldId,
String fieldName,
FieldReader reader) |
org.apache.drill.exec.store.EventBasedRecordWriter.FieldConverter |
getNewNullableBigIntConverter(int fieldId,
String fieldName,
FieldReader reader) |
org.apache.drill.exec.store.EventBasedRecordWriter.FieldConverter |
getNewNullableFloat8Converter(int fieldId,
String fieldName,
FieldReader reader) |
org.apache.drill.exec.store.EventBasedRecordWriter.FieldConverter |
getNewNullableVarBinaryConverter(int fieldId,
String fieldName,
FieldReader reader) |
org.apache.drill.exec.store.EventBasedRecordWriter.FieldConverter |
getNewVarCharConverter(int fieldId,
String fieldName,
FieldReader reader) |
DrillStatsTable.TableStatistics |
getStatistics() |
boolean |
hasStatistics() |
void |
init(Map<String,String> writerOptions)
Initialize the writer.
|
boolean |
isBlockingWriter()
Returns if the writer is a blocking writer i.e.
|
void |
startStatisticsRecord() |
void |
updateSchema(VectorAccessible batch)
Update the schema in RecordWriter.
|
getNewBitConverter, getNewDecimal18Converter, getNewDecimal28DenseConverter, getNewDecimal28SparseConverter, getNewDecimal38DenseConverter, getNewDecimal38SparseConverter, getNewDecimal9Converter, getNewFloat4Converter, getNewFloat8Converter, getNewIntervalConverter, getNewIntervalDayConverter, getNewIntervalYearConverter, getNewNullableBitConverter, getNewNullableDateConverter, getNewNullableDecimal18Converter, getNewNullableDecimal28DenseConverter, getNewNullableDecimal28SparseConverter, getNewNullableDecimal38DenseConverter, getNewNullableDecimal38SparseConverter, getNewNullableDecimal9Converter, getNewNullableFloat4Converter, getNewNullableIntConverter, getNewNullableIntervalConverter, getNewNullableIntervalDayConverter, getNewNullableIntervalYearConverter, getNewNullableSmallIntConverter, getNewNullableTimeConverter, getNewNullableTimeStampConverter, getNewNullableTinyIntConverter, getNewNullableUInt1Converter, getNewNullableUInt2Converter, getNewNullableUInt4Converter, getNewNullableUInt8Converter, getNewNullableVar16CharConverter, 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, getNewVarDecimalConverterclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetNewBitConverter, getNewDecimal18Converter, getNewDecimal28DenseConverter, getNewDecimal28SparseConverter, getNewDecimal38DenseConverter, getNewDecimal38SparseConverter, getNewDecimal9Converter, getNewFloat4Converter, getNewFloat8Converter, getNewIntervalConverter, getNewIntervalDayConverter, getNewIntervalYearConverter, getNewNullableBitConverter, getNewNullableDateConverter, getNewNullableDecimal18Converter, getNewNullableDecimal28DenseConverter, getNewNullableDecimal28SparseConverter, getNewNullableDecimal38DenseConverter, getNewNullableDecimal38SparseConverter, getNewNullableDecimal9Converter, getNewNullableFloat4Converter, getNewNullableIntConverter, getNewNullableIntervalConverter, getNewNullableIntervalDayConverter, getNewNullableIntervalYearConverter, getNewNullableSmallIntConverter, getNewNullableTimeConverter, getNewNullableTimeStampConverter, getNewNullableTinyIntConverter, getNewNullableUInt1Converter, getNewNullableUInt2Converter, getNewNullableUInt4Converter, getNewNullableUInt8Converter, getNewNullableVar16CharConverter, 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, getNewVarDecimalConverterpublic JsonStatisticsRecordWriter(org.apache.hadoop.conf.Configuration fsConf,
FormatPlugin formatPlugin)
public void init(Map<String,String> writerOptions)
StatisticsRecordWriterinit in interface StatisticsRecordWriterwriterOptions - Contains key, value pair of settings.public void updateSchema(VectorAccessible batch)
StatisticsRecordWriterupdateSchema in interface StatisticsRecordWriterpublic boolean isBlockingWriter()
StatisticsRecordWriterisBlockingWriter in interface StatisticsRecordWriterpublic void checkForNewPartition(int index)
StatisticsRecordWritercheckForNewPartition in interface StatisticsRecordWriterpublic org.apache.drill.exec.store.EventBasedRecordWriter.FieldConverter getNewBigIntConverter(int fieldId,
String fieldName,
FieldReader reader)
getNewBigIntConverter in interface org.apache.drill.exec.store.StatisticsRecordCollectorgetNewBigIntConverter in class org.apache.drill.exec.store.JSONBaseStatisticsRecordWriterpublic org.apache.drill.exec.store.EventBasedRecordWriter.FieldConverter getNewIntConverter(int fieldId,
String fieldName,
FieldReader reader)
getNewIntConverter in interface org.apache.drill.exec.store.StatisticsRecordCollectorgetNewIntConverter in class org.apache.drill.exec.store.JSONBaseStatisticsRecordWriterpublic org.apache.drill.exec.store.EventBasedRecordWriter.FieldConverter getNewDateConverter(int fieldId,
String fieldName,
FieldReader reader)
getNewDateConverter in interface org.apache.drill.exec.store.StatisticsRecordCollectorgetNewDateConverter in class org.apache.drill.exec.store.JSONBaseStatisticsRecordWriterpublic org.apache.drill.exec.store.EventBasedRecordWriter.FieldConverter getNewVarCharConverter(int fieldId,
String fieldName,
FieldReader reader)
getNewVarCharConverter in interface org.apache.drill.exec.store.StatisticsRecordCollectorgetNewVarCharConverter in class org.apache.drill.exec.store.JSONBaseStatisticsRecordWriterpublic org.apache.drill.exec.store.EventBasedRecordWriter.FieldConverter getNewNullableBigIntConverter(int fieldId,
String fieldName,
FieldReader reader)
getNewNullableBigIntConverter in interface org.apache.drill.exec.store.StatisticsRecordCollectorgetNewNullableBigIntConverter in class org.apache.drill.exec.store.JSONBaseStatisticsRecordWriterpublic org.apache.drill.exec.store.EventBasedRecordWriter.FieldConverter getNewNullableVarBinaryConverter(int fieldId,
String fieldName,
FieldReader reader)
getNewNullableVarBinaryConverter in interface org.apache.drill.exec.store.StatisticsRecordCollectorgetNewNullableVarBinaryConverter in class org.apache.drill.exec.store.JSONBaseStatisticsRecordWriterpublic org.apache.drill.exec.store.EventBasedRecordWriter.FieldConverter getNewNullableFloat8Converter(int fieldId,
String fieldName,
FieldReader reader)
getNewNullableFloat8Converter in interface org.apache.drill.exec.store.StatisticsRecordCollectorgetNewNullableFloat8Converter in class org.apache.drill.exec.store.JSONBaseStatisticsRecordWriterpublic void startStatisticsRecord()
startStatisticsRecord in interface org.apache.drill.exec.store.StatisticsRecordCollectorpublic void endStatisticsRecord()
endStatisticsRecord in interface org.apache.drill.exec.store.StatisticsRecordCollectorpublic boolean hasStatistics()
hasStatistics in interface org.apache.drill.exec.store.StatisticsRecordCollectorpublic DrillStatsTable.TableStatistics getStatistics()
getStatistics in interface org.apache.drill.exec.store.StatisticsRecordCollectorpublic void flushBlockingWriter()
throws IOException
StatisticsRecordWriterflushBlockingWriter in interface StatisticsRecordWriterIOExceptionpublic void abort()
abort in interface StatisticsRecordWriterpublic void cleanup()
cleanup in interface StatisticsRecordWriterCopyright © 2021 The Apache Software Foundation. All rights reserved.