@InterfaceAudience.LimitedPrivate(value="Coprocesssor") @InterfaceStability.Evolving public class BigDecimalColumnInterpreter extends ColumnInterpreter<BigDecimal,BigDecimal,org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.EmptyMsg,org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.BigDecimalMsg,org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.BigDecimalMsg>
| 构造器和说明 |
|---|
BigDecimalColumnInterpreter() |
| 限定符和类型 | 方法和说明 |
|---|---|
BigDecimal |
add(BigDecimal bd1,
BigDecimal bd2) |
BigDecimal |
castToCellType(BigDecimal bd)
The response message comes as type S.
|
BigDecimal |
castToReturnType(BigDecimal bd)
provides casting opportunity between the data types.
|
int |
compare(BigDecimal bd1,
BigDecimal bd2)
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(BigDecimal bd1,
Long l2)
used for computing average of <S> data values.
|
BigDecimal |
getCellValueFromProto(org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.BigDecimalMsg q)
This method gets the PB message corresponding to the cell type
|
BigDecimal |
getMaxValue()
returns the maximum value for this type T
|
BigDecimal |
getMinValue() |
BigDecimal |
getPromotedValueFromProto(org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.BigDecimalMsg r)
This method gets the promoted type from the proto message
|
org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.BigDecimalMsg |
getProtoForCellType(BigDecimal t)
This method gets the PB message corresponding to the cell type
|
org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.BigDecimalMsg |
getProtoForPromotedType(BigDecimal 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.
|
BigDecimal |
getValue(byte[] colFamily,
byte[] colQualifier,
Cell kv) |
BigDecimal |
increment(BigDecimal bd) |
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).
|
BigDecimal |
multiply(BigDecimal bd1,
BigDecimal bd2) |
public BigDecimal getValue(byte[] colFamily, byte[] colQualifier, Cell kv) throws IOException
public BigDecimal add(BigDecimal bd1, BigDecimal bd2)
add 在类中 ColumnInterpreter<BigDecimal,BigDecimal,org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.EmptyMsg,org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.BigDecimalMsg,org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.BigDecimalMsg>public int compare(BigDecimal bd1, BigDecimal bd2)
ColumnInterpreterpublic BigDecimal getMaxValue()
ColumnInterpreterpublic BigDecimal increment(BigDecimal bd)
public BigDecimal multiply(BigDecimal bd1, BigDecimal bd2)
public BigDecimal getMinValue()
public double divideForAvg(BigDecimal bd1, Long l2)
ColumnInterpreterpublic BigDecimal castToReturnType(BigDecimal bd)
ColumnInterpreterpublic BigDecimal castToCellType(BigDecimal bd)
ColumnInterpreterColumnInterpreter.castToReturnType(Object)public 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.BigDecimalMsg getProtoForCellType(BigDecimal t)
ColumnInterpretergetProtoForCellType 在类中 ColumnInterpreter<BigDecimal,BigDecimal,org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.EmptyMsg,org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.BigDecimalMsg,org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.BigDecimalMsg>public org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.BigDecimalMsg getProtoForPromotedType(BigDecimal s)
ColumnInterpretergetProtoForPromotedType 在类中 ColumnInterpreter<BigDecimal,BigDecimal,org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.EmptyMsg,org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.BigDecimalMsg,org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.BigDecimalMsg>public BigDecimal getPromotedValueFromProto(org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.BigDecimalMsg r)
ColumnInterpretergetPromotedValueFromProto 在类中 ColumnInterpreter<BigDecimal,BigDecimal,org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.EmptyMsg,org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.BigDecimalMsg,org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.BigDecimalMsg>public BigDecimal getCellValueFromProto(org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.BigDecimalMsg q)
ColumnInterpretergetCellValueFromProto 在类中 ColumnInterpreter<BigDecimal,BigDecimal,org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.EmptyMsg,org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.BigDecimalMsg,org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.BigDecimalMsg>Copyright © 2007–2020 The Apache Software Foundation. All rights reserved.