@InterfaceAudience.Public @InterfaceStability.Evolving public class DoubleColumnInterpreter extends ColumnInterpreter<Double,Double,HBaseProtos.EmptyMsg,HBaseProtos.DoubleMsg,HBaseProtos.DoubleMsg>
| Constructor and Description |
|---|
DoubleColumnInterpreter() |
| Modifier and Type | Method and Description |
|---|---|
Double |
add(Double d1,
Double d2) |
Double |
castToCellType(Double d)
The response message comes as type S.
|
Double |
castToReturnType(Double o)
provides casting opportunity between the data types.
|
int |
compare(Double d1,
Double d2)
This takes care if either of arguments are null.
|
double |
divideForAvg(Double d1,
Long l2)
used for computing average of
|
Double |
getCellValueFromProto(HBaseProtos.DoubleMsg q)
This method gets the PB message corresponding to the cell type
|
Double |
getMaxValue()
returns the maximum value for this type T
|
Double |
getMinValue() |
Double |
getPromotedValueFromProto(HBaseProtos.DoubleMsg r)
This method gets the promoted type from the proto message
|
HBaseProtos.DoubleMsg |
getProtoForCellType(Double t)
This method gets the PB message corresponding to the cell type
|
HBaseProtos.DoubleMsg |
getProtoForPromotedType(Double s)
This method gets the PB message corresponding to the promoted type
|
HBaseProtos.EmptyMsg |
getRequestData()
This method should return any additional data that is needed on the
server side to construct the ColumnInterpreter.
|
Double |
getValue(byte[] colFamily,
byte[] colQualifier,
Cell c)
TODO: when removing
ColumnInterpreter.getValue(byte[], byte[], KeyValue), this method should be made abstract |
Double |
increment(Double o) |
void |
initialize(HBaseProtos.EmptyMsg msg)
This method should initialize any field(s) of the ColumnInterpreter with
a parsing of the passed message bytes (used on the server side).
|
Double |
multiply(Double d1,
Double d2) |
getValuepublic Double getValue(byte[] colFamily, byte[] colQualifier, Cell c) throws IOException
ColumnInterpreterColumnInterpreter.getValue(byte[], byte[], KeyValue), this method should be made abstractgetValue in class ColumnInterpreter<Double,Double,HBaseProtos.EmptyMsg,HBaseProtos.DoubleMsg,HBaseProtos.DoubleMsg>IOExceptionpublic Double add(Double d1, Double d2)
add in class ColumnInterpreter<Double,Double,HBaseProtos.EmptyMsg,HBaseProtos.DoubleMsg,HBaseProtos.DoubleMsg>public int compare(Double d1, Double d2)
ColumnInterpretercompare in class ColumnInterpreter<Double,Double,HBaseProtos.EmptyMsg,HBaseProtos.DoubleMsg,HBaseProtos.DoubleMsg>public Double getMaxValue()
ColumnInterpretergetMaxValue in class ColumnInterpreter<Double,Double,HBaseProtos.EmptyMsg,HBaseProtos.DoubleMsg,HBaseProtos.DoubleMsg>public Double increment(Double o)
increment in class ColumnInterpreter<Double,Double,HBaseProtos.EmptyMsg,HBaseProtos.DoubleMsg,HBaseProtos.DoubleMsg>public Double multiply(Double d1, Double d2)
multiply in class ColumnInterpreter<Double,Double,HBaseProtos.EmptyMsg,HBaseProtos.DoubleMsg,HBaseProtos.DoubleMsg>public Double getMinValue()
getMinValue in class ColumnInterpreter<Double,Double,HBaseProtos.EmptyMsg,HBaseProtos.DoubleMsg,HBaseProtos.DoubleMsg>public double divideForAvg(Double d1, Long l2)
ColumnInterpreterdivideForAvg in class ColumnInterpreter<Double,Double,HBaseProtos.EmptyMsg,HBaseProtos.DoubleMsg,HBaseProtos.DoubleMsg>public Double castToReturnType(Double o)
ColumnInterpretercastToReturnType in class ColumnInterpreter<Double,Double,HBaseProtos.EmptyMsg,HBaseProtos.DoubleMsg,HBaseProtos.DoubleMsg>public Double castToCellType(Double d)
ColumnInterpreterColumnInterpreter.castToReturnType(Object)castToCellType in class ColumnInterpreter<Double,Double,HBaseProtos.EmptyMsg,HBaseProtos.DoubleMsg,HBaseProtos.DoubleMsg>public HBaseProtos.EmptyMsg getRequestData()
ColumnInterpreterColumnInterpreter.initialize(P)
method. If there is no ColumnInterpreter specific data (for e.g.,
LongColumnInterpreter) then null should be returned.getRequestData in class ColumnInterpreter<Double,Double,HBaseProtos.EmptyMsg,HBaseProtos.DoubleMsg,HBaseProtos.DoubleMsg>public void initialize(HBaseProtos.EmptyMsg msg)
ColumnInterpreterinitialize in class ColumnInterpreter<Double,Double,HBaseProtos.EmptyMsg,HBaseProtos.DoubleMsg,HBaseProtos.DoubleMsg>public HBaseProtos.DoubleMsg getProtoForCellType(Double t)
ColumnInterpretergetProtoForCellType in class ColumnInterpreter<Double,Double,HBaseProtos.EmptyMsg,HBaseProtos.DoubleMsg,HBaseProtos.DoubleMsg>public HBaseProtos.DoubleMsg getProtoForPromotedType(Double s)
ColumnInterpretergetProtoForPromotedType in class ColumnInterpreter<Double,Double,HBaseProtos.EmptyMsg,HBaseProtos.DoubleMsg,HBaseProtos.DoubleMsg>public Double getPromotedValueFromProto(HBaseProtos.DoubleMsg r)
ColumnInterpretergetPromotedValueFromProto in class ColumnInterpreter<Double,Double,HBaseProtos.EmptyMsg,HBaseProtos.DoubleMsg,HBaseProtos.DoubleMsg>public Double getCellValueFromProto(HBaseProtos.DoubleMsg q)
ColumnInterpretergetCellValueFromProto in class ColumnInterpreter<Double,Double,HBaseProtos.EmptyMsg,HBaseProtos.DoubleMsg,HBaseProtos.DoubleMsg>Copyright © 2014 The Apache Software Foundation. All rights reserved.