@InterfaceAudience.LimitedPrivate(value="Coprocesssor") @InterfaceStability.Evolving public class DoubleColumnInterpreter extends ColumnInterpreter<Double,Double,org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.EmptyMsg,org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.DoubleMsg,org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.DoubleMsg>
| Constructor and Description |
|---|
DoubleColumnInterpreter() |
| Modifier and Type | Method and Description |
|---|---|
Double |
add(Double d1,
Double d2)
nn * @return sum or non null value among (if either of them is null); otherwise returns a null.
|
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 <S> data values.
|
Double |
getCellValueFromProto(org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.DoubleMsg q)
This method gets the PB message corresponding to the cell type n * @return the cell-type
instance from the PB message
|
Double |
getMaxValue()
returns the maximum value for this type T n
|
Double |
getMinValue() |
Double |
getPromotedValueFromProto(org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.DoubleMsg r)
This method gets the promoted type from the proto message n * @return the promoted-type
instance from the PB message
|
org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.DoubleMsg |
getProtoForCellType(Double t)
This method gets the PB message corresponding to the cell type n * @return the PB message for
the cell-type instance
|
org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.DoubleMsg |
getProtoForPromotedType(Double s)
This method gets the PB message corresponding to the promoted type n * @return the PB message
for the promoted-type instance
|
org.apache.hadoop.hbase.protobuf.generated.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)
nnn * @return value of type T n
|
Double |
increment(Double o)
nn
|
void |
initialize(org.apache.hadoop.hbase.protobuf.generated.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)
nnn
|
public Double getValue(byte[] colFamily, byte[] colQualifier, Cell c) throws IOException
ColumnInterpreterpublic Double add(Double d1, Double d2)
ColumnInterpreterpublic int compare(Double d1, Double d2)
ColumnInterpreterpublic Double getMaxValue()
ColumnInterpreterpublic Double increment(Double o)
ColumnInterpreterpublic Double multiply(Double d1, Double d2)
ColumnInterpreterpublic Double getMinValue()
public double divideForAvg(Double d1, Long l2)
ColumnInterpreterpublic Double castToReturnType(Double o)
ColumnInterpreterpublic Double castToCellType(Double d)
ColumnInterpreterColumnInterpreter.castToReturnType(Object) nnpublic org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.EmptyMsg getRequestData()
ColumnInterpreterColumnInterpreter.initialize(P) method. If there is
no ColumnInterpreter specific data (for e.g.,
LongColumnInterpreter) then null should be
returned.public void initialize(org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.EmptyMsg msg)
ColumnInterpreterpublic org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.DoubleMsg getProtoForCellType(Double t)
ColumnInterpreterpublic org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.DoubleMsg getProtoForPromotedType(Double s)
ColumnInterpreterpublic Double getPromotedValueFromProto(org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.DoubleMsg r)
ColumnInterpreterpublic Double getCellValueFromProto(org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.DoubleMsg q)
ColumnInterpreterCopyright © 2007–2020 The Apache Software Foundation. All rights reserved.