Class WriteAheadLogProvider
Inheritance
WriteAheadLogProvider
Assembly: ZoneTree.dll
Syntax
public sealed class WriteAheadLogProvider : IWriteAheadLogProvider
Constructors
|
Improve this Doc
View Source
WriteAheadLogProvider(ILogger, IFileStreamProvider, string)
Declaration
public WriteAheadLogProvider(ILogger logger, IFileStreamProvider fileStreamProvider, string walDirectory = "data")
Parameters
Properties
|
Improve this Doc
View Source
WalDirectory
Declaration
public string WalDirectory { get; }
Property Value
Methods
|
Improve this Doc
View Source
DropStore()
Declaration
|
Improve this Doc
View Source
GetOrCreateWAL<TKey, TValue>(long, string, WriteAheadLogOptions, ISerializer<TKey>, ISerializer<TValue>)
Declaration
public IWriteAheadLog<TKey, TValue> GetOrCreateWAL<TKey, TValue>(long segmentId, string category, WriteAheadLogOptions options, ISerializer<TKey> keySerializer, ISerializer<TValue> valueSerializer)
Parameters
Returns
Type Parameters
Name |
Description |
TKey |
|
TValue |
|
|
Improve this Doc
View Source
GetWAL<TKey, TValue>(long, string)
Declaration
public IWriteAheadLog<TKey, TValue> GetWAL<TKey, TValue>(long segmentId, string category)
Parameters
Type |
Name |
Description |
long |
segmentId |
|
string |
category |
|
Returns
Type Parameters
Name |
Description |
TKey |
|
TValue |
|
|
Improve this Doc
View Source
InitCategory(string)
Declaration
public void InitCategory(string category)
Parameters
Type |
Name |
Description |
string |
category |
|
|
Improve this Doc
View Source
RemoveWAL(long, string)
Declaration
public bool RemoveWAL(long segmentId, string category)
Parameters
Type |
Name |
Description |
long |
segmentId |
|
string |
category |
|
Returns
Implements