@InterfaceAudience.Private public class ProtobufWALStreamReader extends AbstractProtobufWALReader implements WALStreamReader, AbstractFSWALProvider.Initializer
byteStringUncompressor, cellDecoder, codecClsName, compressionCtx, conf, decryptor, fileLength, fs, hasCompression, hasTagCompression, hasValueCompression, inputStream, path, PB_WAL_COMPLETE_MAGIC, PB_WAL_MAGIC, trailer, trailerPresent, trailerWarnSize, valueCompressionType, walEditsStopOffset| Constructor and Description |
|---|
ProtobufWALStreamReader() |
| Modifier and Type | Method and Description |
|---|---|
protected InputStream |
getCellCodecInputStream(org.apache.hadoop.fs.FSDataInputStream stream)
Get or create the input stream used by cell decoder.
|
WAL.Entry |
next(WAL.Entry reuse)
Read the next entry in WAL, use the given
WAL.Entry if not null to hold the
data. |
protected void |
skipTo(long position)
Skip to the given position.
|
close, extractHiddenEof, getCodecClsName, getPosition, getPositionQuietly, getWriterClsNames, init, initWALCellCodec, isWALTrailer, open, reachWALEditsStopOffset, readHeader, readTrailer, trailerSizeclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitclose, getPosition, nextinitpublic WAL.Entry next(WAL.Entry reuse) throws IOException
WALStreamReaderWAL.Entry if not null to hold the
data.
Mainly used in MR.next in interface WALStreamReaderreuse - the entry to be used for reading, can be nullIOExceptionprotected InputStream getCellCodecInputStream(org.apache.hadoop.fs.FSDataInputStream stream)
AbstractProtobufWALReadergetCellCodecInputStream in class AbstractProtobufWALReaderprotected void skipTo(long position)
throws IOException
AbstractProtobufWALReaderskipTo in class AbstractProtobufWALReaderIOExceptionCopyright © 2007–2020 The Apache Software Foundation. All rights reserved.