|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.hadoop.hbase.types.PBType<CellProtos.Cell>
org.apache.hadoop.hbase.types.PBCell
public class PBCell
An example for using protobuf objects with DataType
API.
Constructor Summary | |
---|---|
PBCell()
|
Method Summary | |
---|---|
CellProtos.Cell |
decode(PositionedByteRange src)
Read an instance of T from the buffer src . |
int |
encode(PositionedByteRange dst,
CellProtos.Cell val)
Write instance val into buffer dst . |
Class<CellProtos.Cell> |
encodedClass()
Inform consumers over what type this DataType operates. |
int |
skip(PositionedByteRange src)
Skip src 's position forward over one encoded value. |
Methods inherited from class org.apache.hadoop.hbase.types.PBType |
---|
encodedLength, getOrder, inputStreamFromByteRange, isNullable, isOrderPreserving, isSkippable, outputStreamFromByteRange |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public PBCell()
Method Detail |
---|
public Class<CellProtos.Cell> encodedClass()
DataType
DataType
operates. Useful
when working with bare DataType
instances.
public int skip(PositionedByteRange src)
DataType
src
's position forward over one encoded value.
src
- the buffer containing the encoded value.
public CellProtos.Cell decode(PositionedByteRange src)
DataType
T
from the buffer src
.
src
- the buffer containing the encoded value.public int encode(PositionedByteRange dst, CellProtos.Cell val)
DataType
val
into buffer dst
.
dst
- the buffer containing the encoded value.val
- the value to encode onto dst
.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |