@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>
| Constructor and Description |
|---|
BigDecimalColumnInterpreter() |
| Modifier and Type | Method and Description |
|---|---|
BigDecimal |
add(BigDecimal bd1,
BigDecimal bd2)
nn * @return sum or non null value among (if either of them is null); otherwise returns a null.
|
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.
|
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 n * @return the cell-type
instance from the PB message
|
BigDecimal |
getMaxValue()
returns the maximum value for this type T n
|
BigDecimal |
getMinValue() |
BigDecimal |
getPromotedValueFromProto(org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.BigDecimalMsg 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.BigDecimalMsg |
getProtoForCellType(BigDecimal 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.BigDecimalMsg |
getProtoForPromotedType(BigDecimal s)
This method gets the PB message corresponding to the promoted type n * @return the PB message
for the promoted-type instance
|
private org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.BigDecimalMsg |
getProtoForType(BigDecimal t) |
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)
nnn * @return value of type T n
|
BigDecimal |
increment(BigDecimal bd)
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).
|
BigDecimal |
multiply(BigDecimal bd1,
BigDecimal bd2)
nnn
|
public BigDecimalColumnInterpreter()
public BigDecimal getValue(byte[] colFamily, byte[] colQualifier, Cell kv) throws IOException
ColumnInterpretergetValue in class 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>IOExceptionpublic BigDecimal add(BigDecimal bd1, BigDecimal bd2)
ColumnInterpreteradd in class 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)
ColumnInterpretercompare in class 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 getMaxValue()
ColumnInterpretergetMaxValue in class 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 increment(BigDecimal bd)
ColumnInterpreterincrement in class 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 multiply(BigDecimal bd1, BigDecimal bd2)
ColumnInterpretermultiply in class 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 getMinValue()
getMinValue in class 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 double divideForAvg(BigDecimal bd1, Long l2)
ColumnInterpreterdivideForAvg in class 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 castToReturnType(BigDecimal bd)
ColumnInterpretercastToReturnType in class 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 castToCellType(BigDecimal bd)
ColumnInterpreterColumnInterpreter.castToReturnType(Object) nncastToCellType in class 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.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<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 void initialize(org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.EmptyMsg msg)
ColumnInterpreterinitialize in class 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>private org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.BigDecimalMsg getProtoForType(BigDecimal t)
public org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.BigDecimalMsg getProtoForCellType(BigDecimal t)
ColumnInterpretergetProtoForCellType in class 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 in class 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 in class 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 in class 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.