public static class KeyValueCodec.ByteBuffKeyValueDecoder extends Object implements Codec.Decoder
Modifier and Type | Field and Description |
---|---|
protected ByteBuff |
buf |
protected Cell |
current |
Constructor and Description |
---|
ByteBuffKeyValueDecoder(ByteBuff buf) |
Modifier and Type | Method and Description |
---|---|
boolean |
advance()
Advance the scanner 1 cell.
|
protected Cell |
createCell(byte[] buf,
int offset,
int len) |
protected Cell |
createCell(ByteBuffer bb,
int pos,
int len) |
Cell |
current()
Returns the current Cell which may be mutable
|
public ByteBuffKeyValueDecoder(ByteBuff buf)
public boolean advance() throws IOException
CellScanner
advance
in interface CellScanner
CellScanner.current()
will return a valid CellIOException
- if advancing the scanner failspublic Cell current()
CellScanner
current
in interface CellScanner
protected Cell createCell(byte[] buf, int offset, int len)
protected Cell createCell(ByteBuffer bb, int pos, int len)
Copyright © 2007–2020 The Apache Software Foundation. All rights reserved.