Interface SchemaVersion

All Known Implementing Classes:
LongSchemaVersion

public interface SchemaVersion
An interface to represent a version ID that can be used to create a read-consistent view of a Schema. This interface assumes a strict partial ordering contract that is:
  1. irreflexive: !a.isBefore(a), which means a cannot happen before itself;
  2. transitive: if a.isBefore(b) and b.isBefore(c) then a.isBefore(c);
  3. antisymmetric: if a.isBefore(b) then !b.isBefore(a).
Implementation classes of this interface must also override equals(Object), hashCode() and toString().
See Also:
  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
    Returns if this Version happens before the other Version.
  • Method Details

    • isBefore

      boolean isBefore(SchemaVersion other)
      Returns if this Version happens before the other Version.
      Parameters:
      other - the other Version object