org.apache.hadoop.hive.ql.udf.generic
Class GenericUDAFComputeStats.GenericUDAFBinaryStatsEvaluator.BinaryStatsAgg
java.lang.Object
org.apache.hadoop.hive.ql.udf.generic.GenericUDAFEvaluator.AbstractAggregationBuffer
org.apache.hadoop.hive.ql.udf.generic.GenericUDAFComputeStats.GenericUDAFBinaryStatsEvaluator.BinaryStatsAgg
- All Implemented Interfaces:
- GenericUDAFEvaluator.AggregationBuffer
- Enclosing class:
- GenericUDAFComputeStats.GenericUDAFBinaryStatsEvaluator
public static class GenericUDAFComputeStats.GenericUDAFBinaryStatsEvaluator.BinaryStatsAgg
- extends GenericUDAFEvaluator.AbstractAggregationBuffer
Method Summary |
int |
estimate()
Estimate the size of memory which is occupied by aggregation buffer. |
columnType
public String columnType
maxLength
public long maxLength
sumLength
public long sumLength
count
public long count
countNulls
public long countNulls
GenericUDAFComputeStats.GenericUDAFBinaryStatsEvaluator.BinaryStatsAgg
public GenericUDAFComputeStats.GenericUDAFBinaryStatsEvaluator.BinaryStatsAgg()
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.