@Deprecated public class CdcrTransactionLog extends TransactionLog
TransactionLog to:
incref(), close() and reopenOutputStream().writeCommit(CommitUpdateCommand) and getReader(long).| Modifier and Type | Class and Description |
|---|---|
class |
CdcrTransactionLog.CdcrLogReader
Deprecated.
|
TransactionLog.FSReverseReader, TransactionLog.LogCodec, TransactionLog.LogReader, TransactionLog.ReverseReader, TransactionLog.SortedLogReaderdeleteOnClose, END_MESSAGE| Modifier and Type | Method and Description |
|---|---|
void |
close()
Deprecated.
|
TransactionLog.LogReader |
getReader(long startingPos)
Deprecated.
Returns a reader that can be used while a log is still in use.
|
void |
incref()
Deprecated.
|
int |
numRecords()
Deprecated.
Returns the number of records in the log (currently includes the header and an optional commit).
|
boolean |
try_incref()
Deprecated.
Modified to act like
incref() in order to be compatible with UpdateLog.recoverFromLog(). |
long |
write(AddUpdateCommand cmd,
long prevPointer)
Deprecated.
Writes an add update command to the transaction log.
|
long |
writeCommit(CommitUpdateCommand cmd)
Deprecated.
|
long |
writeDelete(DeleteUpdateCommand cmd)
Deprecated.
|
long |
writeDeleteByQuery(DeleteUpdateCommand cmd)
Deprecated.
|
addGlobalStrings, checkWriteHeader, closeOutput, decref, endRecord, endsWithCommit, finish, forceClose, getLogSize, getLogSizeFromStream, getReverseReader, getSortedReader, lookup, position, toString, write, writeData, writeLogHeaderpublic int numRecords()
numRecords in class TransactionLogpublic long write(AddUpdateCommand cmd, long prevPointer)
TransactionLogwrite in class TransactionLogcmd - The add update command to be writtenprevPointer - The pointer in the transaction log which this update depends
on (applicable for in-place updates)public long writeDelete(DeleteUpdateCommand cmd)
writeDelete in class TransactionLogpublic long writeDeleteByQuery(DeleteUpdateCommand cmd)
writeDeleteByQuery in class TransactionLogpublic long writeCommit(CommitUpdateCommand cmd)
writeCommit in class TransactionLogpublic TransactionLog.LogReader getReader(long startingPos)
getReader in class TransactionLogpublic void incref()
incref in class TransactionLogpublic boolean try_incref()
incref() in order to be compatible with UpdateLog.recoverFromLog().
Otherwise, we would have to duplicate the method UpdateLog.recoverFromLog() in
CdcrUpdateLog and change the call
if (!ll.try_incref()) continue; to incref(); .try_incref in class TransactionLogpublic void close()
close in interface Closeableclose in interface AutoCloseableclose in class TransactionLogCopyright © 2000-2020 Apache Software Foundation. All Rights Reserved.