public class HdfsTransactionLog extends TransactionLog
| Modifier and Type | Class and Description |
|---|---|
class |
HdfsTransactionLog.HDFSLogReader |
class |
HdfsTransactionLog.HDFSReverseReader |
TransactionLog.FSReverseReader, TransactionLog.LogCodec, TransactionLog.LogReader, TransactionLog.ReverseReader| Modifier and Type | Field and Description |
|---|---|
static org.slf4j.Logger |
log |
deleteOnClose, END_MESSAGE| Modifier and Type | Method and Description |
|---|---|
protected void |
close() |
boolean |
endsWithCommit() |
void |
finish(UpdateLog.SyncLevel syncLevel) |
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
|
Object |
lookup(long pos) |
void |
rollback(long pos) |
String |
toString() |
long |
writeCommit(CommitUpdateCommand cmd,
int flags) |
addGlobalStrings, decref, endRecord, forceClose, getLogSize, incref, numRecords, position, snapshot, try_incref, write, writeData, writeDelete, writeDeleteByQuery, writeLogHeaderpublic boolean endsWithCommit()
throws IOException
endsWithCommit in class TransactionLogIOExceptionpublic void rollback(long pos)
throws IOException
rollback in class TransactionLogIOExceptionpublic long writeCommit(CommitUpdateCommand cmd, int flags)
writeCommit in class TransactionLogpublic Object lookup(long pos)
lookup in class TransactionLogpublic void finish(UpdateLog.SyncLevel syncLevel)
finish in class TransactionLogprotected void close()
close in class TransactionLogpublic String toString()
toString in class TransactionLogpublic TransactionLog.LogReader getReader(long startingPos)
getReader in class TransactionLogpublic TransactionLog.ReverseReader getReverseReader() throws IOException
getReverseReader in class TransactionLogIOExceptionCopyright © 2000-2014 Apache Software Foundation. All Rights Reserved.