Package org.apache.hadoop.hbase.codec
Class KeyValueCodec.ByteBuffKeyValueDecoder
java.lang.Object
org.apache.hadoop.hbase.codec.KeyValueCodec.ByteBuffKeyValueDecoder
- All Implemented Interfaces:
CellScanner
,Codec.Decoder
- Direct Known Subclasses:
KeyValueCodecWithTags.ByteBuffKeyValueDecoder
- Enclosing class:
- KeyValueCodec
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionboolean
advance()
Advance the scanner 1 cell.protected Cell
createCell
(byte[] buf, int offset, int len) protected Cell
createCell
(ByteBuffer bb, int pos, int len) current()
Returns the current Cell which may be mutable
-
Field Details
-
buf
-
current
-
-
Constructor Details
-
ByteBuffKeyValueDecoder
-
-
Method Details
-
advance
Description copied from interface:CellScanner
Advance the scanner 1 cell.- Specified by:
advance
in interfaceCellScanner
- Returns:
- true if the next cell is found and
CellScanner.current()
will return a valid Cell - Throws:
IOException
- if advancing the scanner fails
-
current
Description copied from interface:CellScanner
Returns the current Cell which may be mutable- Specified by:
current
in interfaceCellScanner
-
createCell
-
createCell
-