public class HdfsTransactionLog extends TransactionLog
| Modifier and Type | Class and Description |
|---|---|
class |
HdfsTransactionLog.HDFSLogReader |
class |
HdfsTransactionLog.HDFSReverseReader |
class |
HdfsTransactionLog.HDFSSortedLogReader |
TransactionLog.FSReverseReader, TransactionLog.LogCodec, TransactionLog.LogReader, TransactionLog.ReverseReader, TransactionLog.SortedLogReaderdeleteOnClose, END_MESSAGE| Modifier and Type | Method and Description |
|---|---|
void |
close() |
void |
closeOutput()
Move to a read-only state, closing and releasing resources while keeping the log available for reads
|
boolean |
endsWithCommit() |
void |
finish(UpdateLog.SyncLevel syncLevel) |
long |
getLogSize() |
TransactionLog.LogReader |
getReader(long startingPos)
Returns a reader that can be used while a log is still in use.
|
TransactionLog.ReverseReader |
getReverseReader()
Returns a single threaded reverse reader
|
TransactionLog.LogReader |
getSortedReader(long startingPos) |
Object |
lookup(long pos) |
String |
toString() |
long |
writeCommit(CommitUpdateCommand cmd) |
addGlobalStrings, checkWriteHeader, decref, endRecord, forceClose, getLogSizeFromStream, incref, numRecords, position, try_incref, write, write, writeData, writeDelete, writeDeleteByQuery, writeLogHeaderpublic boolean endsWithCommit()
throws IOException
endsWithCommit in class TransactionLogIOExceptionpublic long writeCommit(CommitUpdateCommand cmd)
writeCommit in class TransactionLogpublic Object lookup(long pos)
lookup in class TransactionLogpublic void closeOutput()
TransactionLogcloseOutput in class TransactionLogpublic long getLogSize()
getLogSize in class TransactionLogpublic void finish(UpdateLog.SyncLevel syncLevel)
finish in class TransactionLogpublic void close()
close in interface Closeableclose in interface AutoCloseableclose in class TransactionLogpublic String toString()
toString in class TransactionLogpublic TransactionLog.LogReader getReader(long startingPos)
getReader in class TransactionLogpublic TransactionLog.LogReader getSortedReader(long startingPos)
getSortedReader in class TransactionLogpublic TransactionLog.ReverseReader getReverseReader() throws IOException
getReverseReader in class TransactionLogIOExceptionCopyright © 2000-2020 Apache Software Foundation. All Rights Reserved.