Interface IWriteAheadLog<TKey, TValue>
Assembly: ZoneTree.dll
Syntax
public interface IWriteAheadLog<TKey, TValue> : IDisposable
Type Parameters
Name |
Description |
TKey |
|
TValue |
|
Properties
|
Improve this Doc
View Source
EnableIncrementalBackup
Declaration
bool EnableIncrementalBackup { get; set; }
Property Value
|
Improve this Doc
View Source
FilePath
Declaration
Property Value
|
Improve this Doc
View Source
InitialLength
The initial record count of the log.
It is available after the ReadLogEntries call.
Declaration
int InitialLength { get; }
Property Value
Methods
|
Improve this Doc
View Source
Append(in TKey, in TValue, long)
Declaration
void Append(in TKey key, in TValue value, long opIndex)
Parameters
Type |
Name |
Description |
TKey |
key |
|
TValue |
value |
|
long |
opIndex |
|
|
Improve this Doc
View Source
Drop()
Declaration
|
Improve this Doc
View Source
MarkFrozen()
Informs the write ahead log that no further writes will be sent.
to let WAL optimize itself.
Declaration
|
Improve this Doc
View Source
ReadLogEntries(bool, bool, bool)
Declaration
WriteAheadLogReadLogEntriesResult<TKey, TValue> ReadLogEntries(bool stopReadOnException, bool stopReadOnChecksumFailure, bool sortByOpIndexes)
Parameters
Type |
Name |
Description |
bool |
stopReadOnException |
|
bool |
stopReadOnChecksumFailure |
|
bool |
sortByOpIndexes |
|
Returns
|
Improve this Doc
View Source
ReplaceWriteAheadLog(TKey[], TValue[], bool)
Replaces the entire write ahead log,
with given keys and values.
If enabled, appends current wal data to the incremental backup log.
Declaration
long ReplaceWriteAheadLog(TKey[] keys, TValue[] values, bool disableBackup)
Parameters
Type |
Name |
Description |
TKey[] |
keys |
new keys
|
TValue[] |
values |
new values
|
bool |
disableBackup |
disable backup regardless of wal flag.
|
Returns
Type |
Description |
long |
the difference: old file length - new file length.
|
|
Improve this Doc
View Source
TruncateIncompleteTailRecord(IncompleteTailRecordFoundException)
Truncates incomplete tail record.
Declaration
void TruncateIncompleteTailRecord(IncompleteTailRecordFoundException incompleteTailException)
Parameters