@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>
构造器和说明 |
---|
DoubleColumnInterpreter() |
限定符和类型 | 方法和说明 |
---|---|
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. returns 0 if they are
equal or both are null;
> 0 if l1 > l2 or l1 is not null and l2 is 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
|
Double |
getMaxValue()
returns the maximum value for this type T
|
Double |
getMinValue() |
Double |
getPromotedValueFromProto(org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.DoubleMsg r)
This method gets the promoted type from the proto message
|
org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.DoubleMsg |
getProtoForCellType(Double t)
This method gets the PB message corresponding to the cell type
|
org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.DoubleMsg |
getProtoForPromotedType(Double s)
This method gets the PB message corresponding to the promoted type
|
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) |
Double |
increment(Double o) |
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) |
public Double getValue(byte[] colFamily, byte[] colQualifier, Cell c) throws IOException
public Double add(Double d1, Double d2)
add
在类中 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>
public int compare(Double d1, Double d2)
ColumnInterpreter
public Double getMaxValue()
ColumnInterpreter
public Double getMinValue()
public double divideForAvg(Double d1, Long l2)
ColumnInterpreter
public Double castToReturnType(Double o)
ColumnInterpreter
public Double castToCellType(Double d)
ColumnInterpreter
ColumnInterpreter.castToReturnType(Object)
public org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.EmptyMsg getRequestData()
ColumnInterpreter
ColumnInterpreter.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)
ColumnInterpreter
public org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.DoubleMsg getProtoForCellType(Double t)
ColumnInterpreter
getProtoForCellType
在类中 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>
public org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.DoubleMsg getProtoForPromotedType(Double s)
ColumnInterpreter
getProtoForPromotedType
在类中 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>
public Double getPromotedValueFromProto(org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.DoubleMsg r)
ColumnInterpreter
getPromotedValueFromProto
在类中 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>
public Double getCellValueFromProto(org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.DoubleMsg q)
ColumnInterpreter
getCellValueFromProto
在类中 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>
Copyright © 2007–2022 The Apache Software Foundation. All rights reserved.