FlatLineage

class FlatLineage(val fingerprints: List<String>)

The fingerprints of the flat view's definitions that writers created it with, oldest first, as its comment keeps them (wow-sink-flat:<fingerprint>,<fingerprint>): the last is the view's definition.

During a rolling upgrade, instances of two versions start and restart in turn, each creating the view of its own state schema. A writer replaces the view only when its own fingerprint is not in the lineage yet, a newer definition than every one before it; one whose fingerprint is there but not last was replaced by a newer writer and leaves the view as it is. The lineage keeps the last MAX fingerprints; a view without one (created by an earlier Wow, or by an operator) has an empty lineage, which the first writer replaces.

Constructors

Link copied to clipboard
constructor(fingerprints: List<String>)

Types

Link copied to clipboard

Properties

Link copied to clipboard

The comment that keeps this lineage.

Link copied to clipboard

The fingerprint of the view's definition; null when the lineage is empty.

Link copied to clipboard

Functions

Link copied to clipboard
open operator override fun equals(other: Any?): Boolean
Link copied to clipboard
open override fun hashCode(): Int
Link copied to clipboard
fun supersedes(fingerprint: String): Boolean

Whether a writer after the one of fingerprint replaced the view: that writer's definition is older.

Link copied to clipboard
fun then(fingerprint: String): FlatLineage

This lineage with fingerprint last, the oldest dropped beyond MAX.

Link copied to clipboard
open override fun toString(): String