org.apache.hadoop.hbase.codec
Class BaseDecoder
java.lang.Object
org.apache.hadoop.hbase.codec.BaseDecoder
- All Implemented Interfaces:
- CellScanner, Codec.Decoder
- Direct Known Subclasses:
- KeyValueCodec.KeyValueDecoder
public abstract class BaseDecoder
- extends Object
- implements Codec.Decoder
Field Summary |
protected InputStream |
in
|
protected static org.apache.commons.logging.Log |
LOG
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
LOG
protected static final org.apache.commons.logging.Log LOG
in
protected final InputStream in
BaseDecoder
public BaseDecoder(InputStream in)
advance
public boolean advance()
throws IOException
- Description copied from interface:
CellScanner
- Advance the scanner 1 cell.
- Specified by:
advance
in interface CellScanner
- Returns:
- true if the next cell is found and
CellScanner.current()
will return a valid Cell
- Throws:
IOException
parseCell
protected abstract Cell parseCell()
throws IOException
- Returns:
- extract a Cell
- Throws:
IOException
current
public Cell current()
- Specified by:
current
in interface CellScanner
- Returns:
- the current Cell which may be mutable
Copyright © 2013 The Apache Software Foundation. All Rights Reserved.