Class DoubleColumnInterpreter
java.lang.Object
org.apache.hadoop.hbase.coprocessor.ColumnInterpreter<Double,Double,org.apache.hadoop.hbase.shaded.protobuf.generated.HBaseProtos.EmptyMsg,org.apache.hadoop.hbase.shaded.protobuf.generated.HBaseProtos.DoubleMsg,org.apache.hadoop.hbase.shaded.protobuf.generated.HBaseProtos.DoubleMsg>
    
org.apache.hadoop.hbase.client.coprocessor.DoubleColumnInterpreter
@LimitedPrivate("Coprocesssor")
@Evolving
public class DoubleColumnInterpreter
extends ColumnInterpreter<Double,Double,org.apache.hadoop.hbase.shaded.protobuf.generated.HBaseProtos.EmptyMsg,org.apache.hadoop.hbase.shaded.protobuf.generated.HBaseProtos.DoubleMsg,org.apache.hadoop.hbase.shaded.protobuf.generated.HBaseProtos.DoubleMsg>    
a concrete column interpreter implementation. The cell value is a Double value and its promoted
 data type is also a Double value. For computing aggregation function, this class is used to find
 the datatype of the cell value. Client is supposed to instantiate it and passed along as a
 parameter. See TestDoubleColumnInterpreter methods for its sample usage. Its methods handle null
 arguments gracefully.
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionReturns sum or non null value among (if either of them is null); otherwise returns a null.The response message comes as type S.provides casting opportunity between the data types.intThis takes care if either of arguments are null.doubledivideForAvg(Double d1, Long l2) used for computing average of <S> data values.getCellValueFromProto(org.apache.hadoop.hbase.shaded.protobuf.generated.HBaseProtos.DoubleMsg q) This method gets the PB message corresponding to the cell typereturns the maximum value for this type TgetPromotedValueFromProto(org.apache.hadoop.hbase.shaded.protobuf.generated.HBaseProtos.DoubleMsg r) This method gets the promoted type from the proto messageorg.apache.hadoop.hbase.shaded.protobuf.generated.HBaseProtos.DoubleMsgThis method gets the PB message corresponding to the cell typeorg.apache.hadoop.hbase.shaded.protobuf.generated.HBaseProtos.DoubleMsgThis method gets the PB message corresponding to the promoted typeorg.apache.hadoop.hbase.shaded.protobuf.generated.HBaseProtos.EmptyMsgThis method should return any additional data that is needed on the server side to construct the ColumnInterpreter.Returns value of type TReturns incrementvoidinitialize(org.apache.hadoop.hbase.shaded.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).Returns multiplication
- 
Constructor Details- 
DoubleColumnInterpreterpublic DoubleColumnInterpreter()
 
- 
- 
Method Details- 
getValueDescription copied from class:ColumnInterpreterReturns value of type T- Specified by:
- getValuein class- ColumnInterpreter<Double,- Double, - org.apache.hadoop.hbase.shaded.protobuf.generated.HBaseProtos.EmptyMsg, - org.apache.hadoop.hbase.shaded.protobuf.generated.HBaseProtos.DoubleMsg, - org.apache.hadoop.hbase.shaded.protobuf.generated.HBaseProtos.DoubleMsg> 
- Throws:
- IOException
 
- 
addDescription copied from class:ColumnInterpreterReturns sum or non null value among (if either of them is null); otherwise returns a null.- Specified by:
- addin class- ColumnInterpreter<Double,- Double, - org.apache.hadoop.hbase.shaded.protobuf.generated.HBaseProtos.EmptyMsg, - org.apache.hadoop.hbase.shaded.protobuf.generated.HBaseProtos.DoubleMsg, - org.apache.hadoop.hbase.shaded.protobuf.generated.HBaseProtos.DoubleMsg> 
 
- 
compareDescription copied from class:ColumnInterpreterThis 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.
- < 0 if l1 < l2 or l1 is null and l2 is not null.
 - Specified by:
- comparein class- ColumnInterpreter<Double,- Double, - org.apache.hadoop.hbase.shaded.protobuf.generated.HBaseProtos.EmptyMsg, - org.apache.hadoop.hbase.shaded.protobuf.generated.HBaseProtos.DoubleMsg, - org.apache.hadoop.hbase.shaded.protobuf.generated.HBaseProtos.DoubleMsg> 
 
- 
getMaxValueDescription copied from class:ColumnInterpreterreturns the maximum value for this type T- Specified by:
- getMaxValuein class- ColumnInterpreter<Double,- Double, - org.apache.hadoop.hbase.shaded.protobuf.generated.HBaseProtos.EmptyMsg, - org.apache.hadoop.hbase.shaded.protobuf.generated.HBaseProtos.DoubleMsg, - org.apache.hadoop.hbase.shaded.protobuf.generated.HBaseProtos.DoubleMsg> 
 
- 
incrementDescription copied from class:ColumnInterpreterReturns increment- Specified by:
- incrementin class- ColumnInterpreter<Double,- Double, - org.apache.hadoop.hbase.shaded.protobuf.generated.HBaseProtos.EmptyMsg, - org.apache.hadoop.hbase.shaded.protobuf.generated.HBaseProtos.DoubleMsg, - org.apache.hadoop.hbase.shaded.protobuf.generated.HBaseProtos.DoubleMsg> 
 
- 
multiplyDescription copied from class:ColumnInterpreterReturns multiplication- Specified by:
- multiplyin class- ColumnInterpreter<Double,- Double, - org.apache.hadoop.hbase.shaded.protobuf.generated.HBaseProtos.EmptyMsg, - org.apache.hadoop.hbase.shaded.protobuf.generated.HBaseProtos.DoubleMsg, - org.apache.hadoop.hbase.shaded.protobuf.generated.HBaseProtos.DoubleMsg> 
 
- 
getMinValue- Specified by:
- getMinValuein class- ColumnInterpreter<Double,- Double, - org.apache.hadoop.hbase.shaded.protobuf.generated.HBaseProtos.EmptyMsg, - org.apache.hadoop.hbase.shaded.protobuf.generated.HBaseProtos.DoubleMsg, - org.apache.hadoop.hbase.shaded.protobuf.generated.HBaseProtos.DoubleMsg> 
 
- 
divideForAvgDescription copied from class:ColumnInterpreterused for computing average of <S> data values. Not providing the divide method that takes two <S> values as it is not needed as of now.- Specified by:
- divideForAvgin class- ColumnInterpreter<Double,- Double, - org.apache.hadoop.hbase.shaded.protobuf.generated.HBaseProtos.EmptyMsg, - org.apache.hadoop.hbase.shaded.protobuf.generated.HBaseProtos.DoubleMsg, - org.apache.hadoop.hbase.shaded.protobuf.generated.HBaseProtos.DoubleMsg> 
 
- 
castToReturnTypeDescription copied from class:ColumnInterpreterprovides casting opportunity between the data types.- Specified by:
- castToReturnTypein class- ColumnInterpreter<Double,- Double, - org.apache.hadoop.hbase.shaded.protobuf.generated.HBaseProtos.EmptyMsg, - org.apache.hadoop.hbase.shaded.protobuf.generated.HBaseProtos.DoubleMsg, - org.apache.hadoop.hbase.shaded.protobuf.generated.HBaseProtos.DoubleMsg> 
 
- 
castToCellTypeDescription copied from class:ColumnInterpreterThe response message comes as type S. This will convert/cast it to T. In some sense, performs the opposite ofColumnInterpreter.castToReturnType(Object)- Specified by:
- castToCellTypein class- ColumnInterpreter<Double,- Double, - org.apache.hadoop.hbase.shaded.protobuf.generated.HBaseProtos.EmptyMsg, - org.apache.hadoop.hbase.shaded.protobuf.generated.HBaseProtos.DoubleMsg, - org.apache.hadoop.hbase.shaded.protobuf.generated.HBaseProtos.DoubleMsg> 
 
- 
getRequestDataDescription copied from class:ColumnInterpreterThis method should return any additional data that is needed on the server side to construct the ColumnInterpreter. The server will pass this to theColumnInterpreter.initialize(P)method. If there is no ColumnInterpreter specific data (for e.g.,LongColumnInterpreter) then null should be returned.- Specified by:
- getRequestDatain class- ColumnInterpreter<Double,- Double, - org.apache.hadoop.hbase.shaded.protobuf.generated.HBaseProtos.EmptyMsg, - org.apache.hadoop.hbase.shaded.protobuf.generated.HBaseProtos.DoubleMsg, - org.apache.hadoop.hbase.shaded.protobuf.generated.HBaseProtos.DoubleMsg> 
- Returns:
- the PB message
 
- 
initializeDescription copied from class:ColumnInterpreterThis method should initialize any field(s) of the ColumnInterpreter with a parsing of the passed message bytes (used on the server side).- Specified by:
- initializein class- ColumnInterpreter<Double,- Double, - org.apache.hadoop.hbase.shaded.protobuf.generated.HBaseProtos.EmptyMsg, - org.apache.hadoop.hbase.shaded.protobuf.generated.HBaseProtos.DoubleMsg, - org.apache.hadoop.hbase.shaded.protobuf.generated.HBaseProtos.DoubleMsg> 
 
- 
getProtoForCellTypepublic org.apache.hadoop.hbase.shaded.protobuf.generated.HBaseProtos.DoubleMsg getProtoForCellType(Double t) Description copied from class:ColumnInterpreterThis method gets the PB message corresponding to the cell type- Specified by:
- getProtoForCellTypein class- ColumnInterpreter<Double,- Double, - org.apache.hadoop.hbase.shaded.protobuf.generated.HBaseProtos.EmptyMsg, - org.apache.hadoop.hbase.shaded.protobuf.generated.HBaseProtos.DoubleMsg, - org.apache.hadoop.hbase.shaded.protobuf.generated.HBaseProtos.DoubleMsg> 
- Returns:
- the PB message for the cell-type instance
 
- 
getProtoForPromotedTypepublic org.apache.hadoop.hbase.shaded.protobuf.generated.HBaseProtos.DoubleMsg getProtoForPromotedType(Double s) Description copied from class:ColumnInterpreterThis method gets the PB message corresponding to the promoted type- Specified by:
- getProtoForPromotedTypein class- ColumnInterpreter<Double,- Double, - org.apache.hadoop.hbase.shaded.protobuf.generated.HBaseProtos.EmptyMsg, - org.apache.hadoop.hbase.shaded.protobuf.generated.HBaseProtos.DoubleMsg, - org.apache.hadoop.hbase.shaded.protobuf.generated.HBaseProtos.DoubleMsg> 
- Returns:
- the PB message for the promoted-type instance
 
- 
getPromotedValueFromProtopublic Double getPromotedValueFromProto(org.apache.hadoop.hbase.shaded.protobuf.generated.HBaseProtos.DoubleMsg r) Description copied from class:ColumnInterpreterThis method gets the promoted type from the proto message- Specified by:
- getPromotedValueFromProtoin class- ColumnInterpreter<Double,- Double, - org.apache.hadoop.hbase.shaded.protobuf.generated.HBaseProtos.EmptyMsg, - org.apache.hadoop.hbase.shaded.protobuf.generated.HBaseProtos.DoubleMsg, - org.apache.hadoop.hbase.shaded.protobuf.generated.HBaseProtos.DoubleMsg> 
- Returns:
- the promoted-type instance from the PB message
 
- 
getCellValueFromProtopublic Double getCellValueFromProto(org.apache.hadoop.hbase.shaded.protobuf.generated.HBaseProtos.DoubleMsg q) Description copied from class:ColumnInterpreterThis method gets the PB message corresponding to the cell type- Specified by:
- getCellValueFromProtoin class- ColumnInterpreter<Double,- Double, - org.apache.hadoop.hbase.shaded.protobuf.generated.HBaseProtos.EmptyMsg, - org.apache.hadoop.hbase.shaded.protobuf.generated.HBaseProtos.DoubleMsg, - org.apache.hadoop.hbase.shaded.protobuf.generated.HBaseProtos.DoubleMsg> 
- Returns:
- the cell-type instance from the PB message
 
 
-