Interface ITransactionLog<TKey, TValue>
Assembly: ZoneTree.dll
Syntax
public interface ITransactionLog<TKey, TValue> : IDisposable
Type Parameters
Name |
Description |
TKey |
|
TValue |
|
Properties
|
Improve this Doc
View Source
CompactionThreshold
The total amount of transactions to be kept in memory.
Declaration
int CompactionThreshold { get; set; }
Property Value
|
Improve this Doc
View Source
TransactionCount
Transaction count in the memory.
Declaration
int TransactionCount { get; }
Property Value
|
Improve this Doc
View Source
TransactionIds
Return all transaction ids that are available in memory.
Declaration
IReadOnlyList<long> TransactionIds { get; }
Property Value
|
Improve this Doc
View Source
UncommittedTransactionIds
Returns all uncommitted transaction ids.
Declaration
IReadOnlyList<long> UncommittedTransactionIds { get; }
Property Value
Methods
|
Improve this Doc
View Source
AddDependency(long, long)
Declaration
void AddDependency(long src, long dest)
Parameters
Type |
Name |
Description |
long |
src |
|
long |
dest |
|
|
Improve this Doc
View Source
AddHistoryRecord(long, TKey, CombinedValue<TValue, long>)
Declaration
void AddHistoryRecord(long transactionId, TKey key, CombinedValue<TValue, long> combinedValue)
Parameters
|
Improve this Doc
View Source
AddOrUpdateReadWriteStamp(in TKey, in ReadWriteStamp)
Declaration
bool AddOrUpdateReadWriteStamp(in TKey key, in ReadWriteStamp readWriteStamp)
Parameters
Returns
|
Improve this Doc
View Source
GetDependencyList(long)
Declaration
IReadOnlyList<long> GetDependencyList(long transactionId)
Parameters
Type |
Name |
Description |
long |
transactionId |
|
Returns
|
Improve this Doc
View Source
GetHistory(long)
Declaration
IDictionary<TKey, CombinedValue<TValue, long>> GetHistory(long transactionId)
Parameters
Type |
Name |
Description |
long |
transactionId |
|
Returns
|
Improve this Doc
View Source
GetNextTransactionId()
Declaration
long GetNextTransactionId()
Returns
|
Improve this Doc
View Source
Declaration
TransactionMeta GetTransactionMeta(long transactionId)
Parameters
Type |
Name |
Description |
long |
transactionId |
|
Returns
|
Improve this Doc
View Source
GetTransactionState(long)
Declaration
TransactionState GetTransactionState(long transactionId)
Parameters
Type |
Name |
Description |
long |
transactionId |
|
Returns
|
Improve this Doc
View Source
GetUncommittedTransactionIdsBefore(DateTime)
Retrieves all uncommitted transaction ids started before given date-time.
This method can be used to gather stale uncommitted transaction ids.
Declaration
IReadOnlyList<long> GetUncommittedTransactionIdsBefore(DateTime dateTime)
Parameters
Type |
Name |
Description |
DateTime |
dateTime |
Max start time (exclusive)
|
Returns
|
Improve this Doc
View Source
TransactionAborted(long)
Declaration
void TransactionAborted(long transactionId)
Parameters
Type |
Name |
Description |
long |
transactionId |
|
|
Improve this Doc
View Source
TransactionCommitted(long)
Declaration
void TransactionCommitted(long transactionId)
Parameters
Type |
Name |
Description |
long |
transactionId |
|
|
Improve this Doc
View Source
TransactionStarted(long)
Declaration
void TransactionStarted(long transactionId)
Parameters
Type |
Name |
Description |
long |
transactionId |
|
|
Improve this Doc
View Source
TryGetReadWriteStamp(in TKey, out ReadWriteStamp)
Declaration
bool TryGetReadWriteStamp(in TKey key, out ReadWriteStamp readWriteStamp)
Parameters
Returns