@InterfaceAudience.Private public class LongColumnInterpreter extends ColumnInterpreter<java.lang.Long,java.lang.Long,HBaseProtos.EmptyMsg,HBaseProtos.LongMsg,HBaseProtos.LongMsg>
| Constructor and Description |
|---|
LongColumnInterpreter() |
| Modifier and Type | Method and Description |
|---|---|
java.lang.Long |
add(java.lang.Long l1,
java.lang.Long l2) |
java.lang.Long |
castToCellType(java.lang.Long l)
The response message comes as type S.
|
java.lang.Long |
castToReturnType(java.lang.Long o)
provides casting opportunity between the data types.
|
int |
compare(java.lang.Long l1,
java.lang.Long l2)
This takes care if either of arguments are null.
|
double |
divideForAvg(java.lang.Long l1,
java.lang.Long l2)
used for computing average of
|
java.lang.Long |
getCellValueFromProto(HBaseProtos.LongMsg q)
This method gets the PB message corresponding to the cell type
|
java.lang.Long |
getMaxValue()
returns the maximum value for this type T
|
java.lang.Long |
getMinValue() |
java.lang.Long |
getPromotedValueFromProto(HBaseProtos.LongMsg r)
This method gets the promoted type from the proto message
|
HBaseProtos.LongMsg |
getProtoForCellType(java.lang.Long t)
This method gets the PB message corresponding to the cell type
|
HBaseProtos.LongMsg |
getProtoForPromotedType(java.lang.Long s)
This method gets the PB message corresponding to the promoted type
|
HBaseProtos.EmptyMsg |
getRequestData()
This method should return any additional data that is needed on the
server side to construct the ColumnInterpreter.
|
java.lang.Long |
getValue(byte[] colFamily,
byte[] colQualifier,
Cell kv) |
java.lang.Long |
increment(java.lang.Long o) |
void |
initialize(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).
|
java.lang.Long |
multiply(java.lang.Long l1,
java.lang.Long l2) |
public java.lang.Long getValue(byte[] colFamily,
byte[] colQualifier,
Cell kv)
throws java.io.IOException
getValue in class ColumnInterpreter<java.lang.Long,java.lang.Long,HBaseProtos.EmptyMsg,HBaseProtos.LongMsg,HBaseProtos.LongMsg>java.io.IOExceptionpublic java.lang.Long add(java.lang.Long l1,
java.lang.Long l2)
add in class ColumnInterpreter<java.lang.Long,java.lang.Long,HBaseProtos.EmptyMsg,HBaseProtos.LongMsg,HBaseProtos.LongMsg>public int compare(java.lang.Long l1,
java.lang.Long l2)
ColumnInterpretercompare in class ColumnInterpreter<java.lang.Long,java.lang.Long,HBaseProtos.EmptyMsg,HBaseProtos.LongMsg,HBaseProtos.LongMsg>public java.lang.Long getMaxValue()
ColumnInterpretergetMaxValue in class ColumnInterpreter<java.lang.Long,java.lang.Long,HBaseProtos.EmptyMsg,HBaseProtos.LongMsg,HBaseProtos.LongMsg>public java.lang.Long increment(java.lang.Long o)
increment in class ColumnInterpreter<java.lang.Long,java.lang.Long,HBaseProtos.EmptyMsg,HBaseProtos.LongMsg,HBaseProtos.LongMsg>public java.lang.Long multiply(java.lang.Long l1,
java.lang.Long l2)
multiply in class ColumnInterpreter<java.lang.Long,java.lang.Long,HBaseProtos.EmptyMsg,HBaseProtos.LongMsg,HBaseProtos.LongMsg>public java.lang.Long getMinValue()
getMinValue in class ColumnInterpreter<java.lang.Long,java.lang.Long,HBaseProtos.EmptyMsg,HBaseProtos.LongMsg,HBaseProtos.LongMsg>public double divideForAvg(java.lang.Long l1,
java.lang.Long l2)
ColumnInterpreterdivideForAvg in class ColumnInterpreter<java.lang.Long,java.lang.Long,HBaseProtos.EmptyMsg,HBaseProtos.LongMsg,HBaseProtos.LongMsg>public java.lang.Long castToReturnType(java.lang.Long o)
ColumnInterpretercastToReturnType in class ColumnInterpreter<java.lang.Long,java.lang.Long,HBaseProtos.EmptyMsg,HBaseProtos.LongMsg,HBaseProtos.LongMsg>public java.lang.Long castToCellType(java.lang.Long l)
ColumnInterpreterColumnInterpreter.castToReturnType(Object)castToCellType in class ColumnInterpreter<java.lang.Long,java.lang.Long,HBaseProtos.EmptyMsg,HBaseProtos.LongMsg,HBaseProtos.LongMsg>public 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<java.lang.Long,java.lang.Long,HBaseProtos.EmptyMsg,HBaseProtos.LongMsg,HBaseProtos.LongMsg>public void initialize(HBaseProtos.EmptyMsg msg)
ColumnInterpreterinitialize in class ColumnInterpreter<java.lang.Long,java.lang.Long,HBaseProtos.EmptyMsg,HBaseProtos.LongMsg,HBaseProtos.LongMsg>public HBaseProtos.LongMsg getProtoForCellType(java.lang.Long t)
ColumnInterpretergetProtoForCellType in class ColumnInterpreter<java.lang.Long,java.lang.Long,HBaseProtos.EmptyMsg,HBaseProtos.LongMsg,HBaseProtos.LongMsg>public HBaseProtos.LongMsg getProtoForPromotedType(java.lang.Long s)
ColumnInterpretergetProtoForPromotedType in class ColumnInterpreter<java.lang.Long,java.lang.Long,HBaseProtos.EmptyMsg,HBaseProtos.LongMsg,HBaseProtos.LongMsg>public java.lang.Long getPromotedValueFromProto(HBaseProtos.LongMsg r)
ColumnInterpretergetPromotedValueFromProto in class ColumnInterpreter<java.lang.Long,java.lang.Long,HBaseProtos.EmptyMsg,HBaseProtos.LongMsg,HBaseProtos.LongMsg>public java.lang.Long getCellValueFromProto(HBaseProtos.LongMsg q)
ColumnInterpretergetCellValueFromProto in class ColumnInterpreter<java.lang.Long,java.lang.Long,HBaseProtos.EmptyMsg,HBaseProtos.LongMsg,HBaseProtos.LongMsg>