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