@InterfaceAudience.LimitedPrivate(value={"Coprocesssor","Phoenix","Configuration"}) public class SequenceFileLogReader extends ReaderBase
| 限定符和类型 | 字段和说明 |
|---|---|
protected org.apache.hadoop.io.SequenceFile.Reader |
reader |
compressionContext, conf, edit, emptyCompressionContext, fileLength, fs, path| 构造器和说明 |
|---|
SequenceFileLogReader() |
| 限定符和类型 | 方法和说明 |
|---|---|
protected IOException |
addFileInfoToException(IOException ioe) |
void |
close() |
long |
getPosition() |
protected boolean |
hasCompression() |
protected boolean |
hasTagCompression() |
protected void |
initAfterCompression()
Initializes the compression after the shared stuff has been initialized.
|
protected void |
initAfterCompression(String cellCodecClsName)
Initializes the compression after the shared stuff has been initialized.
|
protected String |
initReader(org.apache.hadoop.fs.FSDataInputStream stream)
Initializes the log reader with a particular stream (may be null).
|
protected boolean |
readNext(WAL.Entry e)
fill in the passed entry with teh next key/value.
|
void |
reset() |
protected void |
seekOnFs(long pos)
Performs a filesystem-level seek to a certain position in an underlying file.
|
init, next, next, seekpublic void close()
throws IOException
IOExceptionpublic long getPosition()
throws IOException
IOExceptionpublic void reset()
throws IOException
IOExceptionprotected String initReader(org.apache.hadoop.fs.FSDataInputStream stream) throws IOException
ReaderBaseinitReader 在类中 ReaderBaseIOExceptionprotected void initAfterCompression(String cellCodecClsName) throws IOException
ReaderBaseinitAfterCompression 在类中 ReaderBasecellCodecClsName - class name of cell CodecIOExceptionprotected void initAfterCompression()
throws IOException
ReaderBaseinitAfterCompression 在类中 ReaderBaseIOExceptionprotected boolean hasCompression()
hasCompression 在类中 ReaderBaseprotected boolean hasTagCompression()
hasTagCompression 在类中 ReaderBaseprotected boolean readNext(WAL.Entry e) throws IOException
HLogKey for the key.readNext 在类中 ReaderBasee - The entry to read into.IOExceptionprotected void seekOnFs(long pos)
throws IOException
ReaderBaseseekOnFs 在类中 ReaderBaseIOExceptionprotected IOException addFileInfoToException(IOException ioe) throws IOException
IOExceptionCopyright © 2007–2021 The Apache Software Foundation. All rights reserved.