@InterfaceAudience.LimitedPrivate(value="Coprocesssor") @InterfaceStability.Evolving public class LongColumnInterpreter extends ColumnInterpreter<Long,Long,org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.EmptyMsg,org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.LongMsg,org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.LongMsg>
| Constructor and Description |
|---|
LongColumnInterpreter() |
| Modifier and Type | Method and Description |
|---|---|
Long |
add(Long l1,
Long l2)
nn * @return sum or non null value among (if either of them is null); otherwise returns a null.
|
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.
|
double |
divideForAvg(Long l1,
Long l2)
used for computing average of <S> data values.
|
Long |
getCellValueFromProto(org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.LongMsg q)
This method gets the PB message corresponding to the cell type n * @return the cell-type
instance from the PB message
|
Long |
getMaxValue()
returns the maximum value for this type T n
|
Long |
getMinValue() |
Long |
getPromotedValueFromProto(org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.LongMsg 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.LongMsg |
getProtoForCellType(Long 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.LongMsg |
getProtoForPromotedType(Long s)
This method gets the PB message corresponding to the promoted type n * @return the PB message
for the promoted-type instance
|
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.
|
Long |
getValue(byte[] colFamily,
byte[] colQualifier,
Cell kv)
nnn * @return value of type T n
|
Long |
increment(Long o)
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).
|
Long |
multiply(Long l1,
Long l2)
nnn
|
public LongColumnInterpreter()
public Long getValue(byte[] colFamily, byte[] colQualifier, Cell kv) throws IOException
ColumnInterpretergetValue in class ColumnInterpreter<Long,Long,org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.EmptyMsg,org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.LongMsg,org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.LongMsg>IOExceptionpublic Long add(Long l1, Long l2)
ColumnInterpreteradd in class ColumnInterpreter<Long,Long,org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.EmptyMsg,org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.LongMsg,org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.LongMsg>public int compare(Long l1, Long l2)
ColumnInterpretercompare in class ColumnInterpreter<Long,Long,org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.EmptyMsg,org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.LongMsg,org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.LongMsg>public Long getMaxValue()
ColumnInterpretergetMaxValue in class ColumnInterpreter<Long,Long,org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.EmptyMsg,org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.LongMsg,org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.LongMsg>public Long increment(Long o)
ColumnInterpreterincrement in class ColumnInterpreter<Long,Long,org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.EmptyMsg,org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.LongMsg,org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.LongMsg>public Long multiply(Long l1, Long l2)
ColumnInterpretermultiply in class ColumnInterpreter<Long,Long,org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.EmptyMsg,org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.LongMsg,org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.LongMsg>public Long getMinValue()
getMinValue in class ColumnInterpreter<Long,Long,org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.EmptyMsg,org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.LongMsg,org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.LongMsg>public double divideForAvg(Long l1, Long l2)
ColumnInterpreterdivideForAvg in class ColumnInterpreter<Long,Long,org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.EmptyMsg,org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.LongMsg,org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.LongMsg>public Long castToReturnType(Long o)
ColumnInterpretercastToReturnType in class ColumnInterpreter<Long,Long,org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.EmptyMsg,org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.LongMsg,org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.LongMsg>public Long castToCellType(Long l)
ColumnInterpreterColumnInterpreter.castToReturnType(Object) nncastToCellType in class ColumnInterpreter<Long,Long,org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.EmptyMsg,org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.LongMsg,org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.LongMsg>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<Long,Long,org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.EmptyMsg,org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.LongMsg,org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.LongMsg>public void initialize(org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.EmptyMsg msg)
ColumnInterpreterinitialize in class ColumnInterpreter<Long,Long,org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.EmptyMsg,org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.LongMsg,org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.LongMsg>public org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.LongMsg getProtoForCellType(Long t)
ColumnInterpretergetProtoForCellType in class ColumnInterpreter<Long,Long,org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.EmptyMsg,org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.LongMsg,org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.LongMsg>public org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.LongMsg getProtoForPromotedType(Long s)
ColumnInterpretergetProtoForPromotedType in class ColumnInterpreter<Long,Long,org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.EmptyMsg,org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.LongMsg,org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.LongMsg>public Long getPromotedValueFromProto(org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.LongMsg r)
ColumnInterpretergetPromotedValueFromProto in class ColumnInterpreter<Long,Long,org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.EmptyMsg,org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.LongMsg,org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.LongMsg>public Long getCellValueFromProto(org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.LongMsg q)
ColumnInterpretergetCellValueFromProto in class ColumnInterpreter<Long,Long,org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.EmptyMsg,org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.LongMsg,org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.LongMsg>Copyright © 2007–2020 The Apache Software Foundation. All rights reserved.