org.apache.hadoop.hive.ql.udf.generic
Class GenericUDAFComputeStats.GenericUDAFStringStatsEvaluator.StringStatsAgg

java.lang.Object
  extended by org.apache.hadoop.hive.ql.udf.generic.GenericUDAFEvaluator.AbstractAggregationBuffer
      extended by org.apache.hadoop.hive.ql.udf.generic.GenericUDAFComputeStats.GenericUDAFStringStatsEvaluator.StringStatsAgg
All Implemented Interfaces:
GenericUDAFEvaluator.AggregationBuffer
Enclosing class:
GenericUDAFComputeStats.GenericUDAFStringStatsEvaluator

public static class GenericUDAFComputeStats.GenericUDAFStringStatsEvaluator.StringStatsAgg
extends GenericUDAFEvaluator.AbstractAggregationBuffer


Field Summary
 String columnType
           
 long count
           
 long countNulls
           
 boolean firstItem
           
 long maxLength
           
 int numBitVectors
           
 StringNumDistinctValueEstimator numDV
           
 long sumLength
           
 
Constructor Summary
GenericUDAFComputeStats.GenericUDAFStringStatsEvaluator.StringStatsAgg()
           
 
Method Summary
 int estimate()
          Estimate the size of memory which is occupied by aggregation buffer.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

columnType

public String columnType

maxLength

public long maxLength

sumLength

public long sumLength

count

public long count

countNulls

public long countNulls

numDV

public StringNumDistinctValueEstimator numDV

numBitVectors

public int numBitVectors

firstItem

public boolean firstItem
Constructor Detail

GenericUDAFComputeStats.GenericUDAFStringStatsEvaluator.StringStatsAgg

public GenericUDAFComputeStats.GenericUDAFStringStatsEvaluator.StringStatsAgg()
Method Detail

estimate

public int estimate()
Description copied from class: GenericUDAFEvaluator.AbstractAggregationBuffer
Estimate the size of memory which is occupied by aggregation buffer. Currently, hive assumes that primitives types occupies 16 byte and java object has 64 byte overhead for each. For map, each entry also has 64 byte overhead.

Overrides:
estimate in class GenericUDAFEvaluator.AbstractAggregationBuffer


Copyright © 2014 The Apache Software Foundation. All rights reserved.