Class StoreMark
- Namespace
- Stratara.Abstractions.Projections
- Assembly
- Stratara.Abstractions.dll
Where the store was when a mark was taken. A host passes it back to IProjectionProgress and relies on nothing inside it; what it holds is meaningful only to the reader that produced it. Two marks are equal when they name the same reader and the same positions.
public sealed record StoreMark : IEquatable<StoreMark>
- Inheritance
-
StoreMark
- Implements
- Inherited Members
- Extension Methods
Constructors
StoreMark(string, IReadOnlyList<long>)
Where the store was when a mark was taken. A host passes it back to IProjectionProgress and relies on nothing inside it; what it holds is meaningful only to the reader that produced it. Two marks are equal when they name the same reader and the same positions.
public StoreMark(string Reader, IReadOnlyList<long> Positions)
Parameters
ReaderstringThe name of the reader the positions belong to, which carries the partition count.
PositionsIReadOnlyList<long>Per partition, the highest position committed when the mark was taken.
Properties
Positions
Per partition, the highest position committed when the mark was taken.
public IReadOnlyList<long> Positions { get; init; }
Property Value
Reader
The name of the reader the positions belong to, which carries the partition count.
public string Reader { get; init; }
Property Value
Methods
Equals(StoreMark?)
Whether other names the same reader and the same positions.
public bool Equals(StoreMark? other)
Parameters
otherStoreMarkThe mark to compare with.
Returns
GetHashCode()
A hash over the reader and the positions.
public override int GetHashCode()
Returns
- int
The hash code.