public class StatisticsCollectorImpl extends JSONBaseStatisticsRecordWriter
Modifier and Type | Class and Description |
---|---|
class |
StatisticsCollectorImpl.BigIntJsonConverter |
class |
StatisticsCollectorImpl.DateJsonConverter |
class |
StatisticsCollectorImpl.IntJsonConverter |
class |
StatisticsCollectorImpl.NullableBigIntJsonConverter |
class |
StatisticsCollectorImpl.NullableFloat8JsonConverter |
class |
StatisticsCollectorImpl.NullableVarBinaryJsonConverter |
class |
StatisticsCollectorImpl.VarCharJsonConverter |
JSONBaseStatisticsRecordWriter.BitJsonConverter, JSONBaseStatisticsRecordWriter.Decimal18JsonConverter, JSONBaseStatisticsRecordWriter.Decimal28DenseJsonConverter, JSONBaseStatisticsRecordWriter.Decimal28SparseJsonConverter, JSONBaseStatisticsRecordWriter.Decimal38DenseJsonConverter, JSONBaseStatisticsRecordWriter.Decimal38SparseJsonConverter, JSONBaseStatisticsRecordWriter.Decimal9JsonConverter, JSONBaseStatisticsRecordWriter.Float4JsonConverter, JSONBaseStatisticsRecordWriter.Float8JsonConverter, JSONBaseStatisticsRecordWriter.IntervalDayJsonConverter, JSONBaseStatisticsRecordWriter.IntervalJsonConverter, JSONBaseStatisticsRecordWriter.IntervalYearJsonConverter, JSONBaseStatisticsRecordWriter.NullableBitJsonConverter, JSONBaseStatisticsRecordWriter.NullableDateJsonConverter, JSONBaseStatisticsRecordWriter.NullableDecimal18JsonConverter, JSONBaseStatisticsRecordWriter.NullableDecimal28DenseJsonConverter, JSONBaseStatisticsRecordWriter.NullableDecimal28SparseJsonConverter, JSONBaseStatisticsRecordWriter.NullableDecimal38DenseJsonConverter, JSONBaseStatisticsRecordWriter.NullableDecimal38SparseJsonConverter, JSONBaseStatisticsRecordWriter.NullableDecimal9JsonConverter, JSONBaseStatisticsRecordWriter.NullableFloat4JsonConverter, JSONBaseStatisticsRecordWriter.NullableIntervalDayJsonConverter, JSONBaseStatisticsRecordWriter.NullableIntervalJsonConverter, JSONBaseStatisticsRecordWriter.NullableIntervalYearJsonConverter, JSONBaseStatisticsRecordWriter.NullableIntJsonConverter, JSONBaseStatisticsRecordWriter.NullableSmallIntJsonConverter, JSONBaseStatisticsRecordWriter.NullableTimeJsonConverter, JSONBaseStatisticsRecordWriter.NullableTimeStampJsonConverter, JSONBaseStatisticsRecordWriter.NullableTinyIntJsonConverter, JSONBaseStatisticsRecordWriter.NullableUInt1JsonConverter, JSONBaseStatisticsRecordWriter.NullableUInt2JsonConverter, JSONBaseStatisticsRecordWriter.NullableUInt4JsonConverter, JSONBaseStatisticsRecordWriter.NullableUInt8JsonConverter, JSONBaseStatisticsRecordWriter.NullableVar16CharJsonConverter, JSONBaseStatisticsRecordWriter.NullableVarCharJsonConverter, JSONBaseStatisticsRecordWriter.NullableVarDecimalJsonConverter, JSONBaseStatisticsRecordWriter.RepeatedBigIntJsonConverter, JSONBaseStatisticsRecordWriter.RepeatedBitJsonConverter, JSONBaseStatisticsRecordWriter.RepeatedDateJsonConverter, JSONBaseStatisticsRecordWriter.RepeatedDecimal18JsonConverter, JSONBaseStatisticsRecordWriter.RepeatedDecimal28DenseJsonConverter, JSONBaseStatisticsRecordWriter.RepeatedDecimal28SparseJsonConverter, JSONBaseStatisticsRecordWriter.RepeatedDecimal38DenseJsonConverter, JSONBaseStatisticsRecordWriter.RepeatedDecimal38SparseJsonConverter, JSONBaseStatisticsRecordWriter.RepeatedDecimal9JsonConverter, JSONBaseStatisticsRecordWriter.RepeatedFloat4JsonConverter, JSONBaseStatisticsRecordWriter.RepeatedFloat8JsonConverter, JSONBaseStatisticsRecordWriter.RepeatedIntervalDayJsonConverter, JSONBaseStatisticsRecordWriter.RepeatedIntervalJsonConverter, JSONBaseStatisticsRecordWriter.RepeatedIntervalYearJsonConverter, JSONBaseStatisticsRecordWriter.RepeatedIntJsonConverter, JSONBaseStatisticsRecordWriter.RepeatedSmallIntJsonConverter, JSONBaseStatisticsRecordWriter.RepeatedTimeJsonConverter, JSONBaseStatisticsRecordWriter.RepeatedTimeStampJsonConverter, JSONBaseStatisticsRecordWriter.RepeatedTinyIntJsonConverter, JSONBaseStatisticsRecordWriter.RepeatedUInt1JsonConverter, JSONBaseStatisticsRecordWriter.RepeatedUInt2JsonConverter, JSONBaseStatisticsRecordWriter.RepeatedUInt4JsonConverter, JSONBaseStatisticsRecordWriter.RepeatedUInt8JsonConverter, JSONBaseStatisticsRecordWriter.RepeatedVar16CharJsonConverter, JSONBaseStatisticsRecordWriter.RepeatedVarBinaryJsonConverter, JSONBaseStatisticsRecordWriter.RepeatedVarCharJsonConverter, JSONBaseStatisticsRecordWriter.RepeatedVarDecimalJsonConverter, JSONBaseStatisticsRecordWriter.SmallIntJsonConverter, JSONBaseStatisticsRecordWriter.TimeJsonConverter, JSONBaseStatisticsRecordWriter.TimeStampJsonConverter, JSONBaseStatisticsRecordWriter.TinyIntJsonConverter, JSONBaseStatisticsRecordWriter.UInt1JsonConverter, JSONBaseStatisticsRecordWriter.UInt2JsonConverter, JSONBaseStatisticsRecordWriter.UInt4JsonConverter, JSONBaseStatisticsRecordWriter.UInt8JsonConverter, JSONBaseStatisticsRecordWriter.Var16CharJsonConverter, JSONBaseStatisticsRecordWriter.VarBinaryJsonConverter, JSONBaseStatisticsRecordWriter.VarDecimalJsonConverter
gen, skipNullFields
Constructor and Description |
---|
StatisticsCollectorImpl() |
Modifier and Type | Method and Description |
---|---|
void |
endStatisticsRecord()
Called after adding all fields in a particular statistics record are added using
add{TypeHolder}(fieldId, TypeHolder) methods.
|
EventBasedRecordWriter.FieldConverter |
getNewBigIntConverter(int fieldId,
String fieldName,
FieldReader reader)
Add the field value given in
valueHolder at the given column number fieldId . |
EventBasedRecordWriter.FieldConverter |
getNewDateConverter(int fieldId,
String fieldName,
FieldReader reader)
Add the field value given in
valueHolder at the given column number fieldId . |
EventBasedRecordWriter.FieldConverter |
getNewIntConverter(int fieldId,
String fieldName,
FieldReader reader)
Add the field value given in
valueHolder at the given column number fieldId . |
EventBasedRecordWriter.FieldConverter |
getNewNullableBigIntConverter(int fieldId,
String fieldName,
FieldReader reader)
Add the field value given in
valueHolder at the given column number fieldId . |
EventBasedRecordWriter.FieldConverter |
getNewNullableFloat8Converter(int fieldId,
String fieldName,
FieldReader reader)
Add the field value given in
valueHolder at the given column number fieldId . |
EventBasedRecordWriter.FieldConverter |
getNewNullableVarBinaryConverter(int fieldId,
String fieldName,
FieldReader reader)
Add the field value given in
valueHolder at the given column number fieldId . |
EventBasedRecordWriter.FieldConverter |
getNewVarCharConverter(int fieldId,
String fieldName,
FieldReader reader)
Add the field value given in
valueHolder at the given column number fieldId . |
DrillStatsTable.TableStatistics |
getStatistics()
Returns
DrillStatsTable.TableStatistics instance with statistics collected using this StatisticsRecordCollector . |
boolean |
hasErrors() |
boolean |
hasStatistics()
Returns true if this
StatisticsRecordCollector has non-empty statistics. |
void |
startStatisticsRecord()
Called before starting writing fields in a record.
|
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, getNewVarDecimalConverter
public void startStatisticsRecord()
StatisticsRecordCollector
public void endStatisticsRecord()
StatisticsRecordCollector
public boolean hasStatistics()
StatisticsRecordCollector
StatisticsRecordCollector
has non-empty statistics.StatisticsRecordCollector
has non-empty statisticspublic DrillStatsTable.TableStatistics getStatistics()
StatisticsRecordCollector
DrillStatsTable.TableStatistics
instance with statistics collected using this StatisticsRecordCollector
.DrillStatsTable.TableStatistics
instancepublic boolean hasErrors()
public EventBasedRecordWriter.FieldConverter getNewBigIntConverter(int fieldId, String fieldName, FieldReader reader)
StatisticsRecordCollector
valueHolder
at the given column number fieldId
.getNewBigIntConverter
in interface StatisticsRecordCollector
getNewBigIntConverter
in class JSONBaseStatisticsRecordWriter
public EventBasedRecordWriter.FieldConverter getNewIntConverter(int fieldId, String fieldName, FieldReader reader)
StatisticsRecordCollector
valueHolder
at the given column number fieldId
.getNewIntConverter
in interface StatisticsRecordCollector
getNewIntConverter
in class JSONBaseStatisticsRecordWriter
public EventBasedRecordWriter.FieldConverter getNewDateConverter(int fieldId, String fieldName, FieldReader reader)
StatisticsRecordCollector
valueHolder
at the given column number fieldId
.getNewDateConverter
in interface StatisticsRecordCollector
getNewDateConverter
in class JSONBaseStatisticsRecordWriter
public EventBasedRecordWriter.FieldConverter getNewVarCharConverter(int fieldId, String fieldName, FieldReader reader)
StatisticsRecordCollector
valueHolder
at the given column number fieldId
.getNewVarCharConverter
in interface StatisticsRecordCollector
getNewVarCharConverter
in class JSONBaseStatisticsRecordWriter
public EventBasedRecordWriter.FieldConverter getNewNullableBigIntConverter(int fieldId, String fieldName, FieldReader reader)
StatisticsRecordCollector
valueHolder
at the given column number fieldId
.getNewNullableBigIntConverter
in interface StatisticsRecordCollector
getNewNullableBigIntConverter
in class JSONBaseStatisticsRecordWriter
public EventBasedRecordWriter.FieldConverter getNewNullableVarBinaryConverter(int fieldId, String fieldName, FieldReader reader)
StatisticsRecordCollector
valueHolder
at the given column number fieldId
.getNewNullableVarBinaryConverter
in interface StatisticsRecordCollector
getNewNullableVarBinaryConverter
in class JSONBaseStatisticsRecordWriter
public EventBasedRecordWriter.FieldConverter getNewNullableFloat8Converter(int fieldId, String fieldName, FieldReader reader)
StatisticsRecordCollector
valueHolder
at the given column number fieldId
.getNewNullableFloat8Converter
in interface StatisticsRecordCollector
getNewNullableFloat8Converter
in class JSONBaseStatisticsRecordWriter
Copyright © 1970 The Apache Software Foundation. All rights reserved.