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, writeLogHeader
public boolean endsWithCommit() throws IOException
endsWithCommit
in class TransactionLog
IOException
public void rollback(long pos) throws IOException
rollback
in class TransactionLog
IOException
public long writeCommit(CommitUpdateCommand cmd, int flags)
writeCommit
in class TransactionLog
public Object lookup(long pos)
lookup
in class TransactionLog
public void finish(UpdateLog.SyncLevel syncLevel)
finish
in class TransactionLog
protected void close()
close
in class TransactionLog
public String toString()
toString
in class TransactionLog
public TransactionLog.LogReader getReader(long startingPos)
getReader
in class TransactionLog
public TransactionLog.ReverseReader getReverseReader() throws IOException
getReverseReader
in class TransactionLog
IOException
Copyright © 2000-2015 Apache Software Foundation. All Rights Reserved.