Skip to main content
Table of Contents

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

Reader string

The name of the reader the positions belong to, which carries the partition count.

Positions IReadOnlyList<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

IReadOnlyList<long>

Reader

The name of the reader the positions belong to, which carries the partition count.

public string Reader { get; init; }

Property Value

string

Methods

Equals(StoreMark?)

Whether other names the same reader and the same positions.

public bool Equals(StoreMark? other)

Parameters

other StoreMark

The mark to compare with.

Returns

bool

true where reader and positions are equal.

GetHashCode()

A hash over the reader and the positions.

public override int GetHashCode()

Returns

int

The hash code.