T
- Cell value data typeS
- Promoted data typepublic interface ColumnInterpreter<T,S>
extends org.apache.hadoop.io.Writable
LongColumnInterpreter
for an
example.
Takes two generic parameters. The cell value type of the interpreter is . All computations are performed on the promoted data type
. There is a conversion method
castToReturnType(Object)
which takes a type.
Modifier and Type | Method and Description |
---|---|
S |
add(S l1,
S l2) |
S |
castToReturnType(T o)
provides casting opportunity between the data types.
|
int |
compare(T l1,
T l2)
This takes care if either of arguments are null.
|
double |
divideForAvg(S o,
Long l)
used for computing average of
|
T |
getMaxValue()
returns the maximum value for this type T
|
T |
getMinValue() |
T |
getValue(byte[] colFamily,
byte[] colQualifier,
KeyValue kv) |
S |
increment(S o) |
S |
multiply(S o1,
S o2) |
T getValue(byte[] colFamily, byte[] colQualifier, KeyValue kv) throws IOException
colFamily
- colQualifier
- kv
- IOException
S add(S l1, S l2)
l1
- l2
- T getMaxValue()
T getMinValue()
S castToReturnType(T o)
o
- int compare(T l1, T l2)
Copyright © 2014 The Apache Software Foundation. All Rights Reserved.