Interface SchemaVersion

All Superinterfaces:
Serializable

public interface SchemaVersion
extends Serializable
Immutable metadata describing the version of a schema.
  • Field Summary

    Fields 
    Modifier and Type Field Description
    static SchemaVersion NO_VERSION
    Versions are not yet implemented.
  • Method Summary

    Modifier and Type Method Description
    String getDescription()
    Human readable description of this version.
    long getSequenceNumber()
    An integer identifying a single version of a single Schema.
    long getTimestamp()
    The time of the last update (e.g.
    String getUser()
    The User who initiated the creation of this version.
  • Field Details

    • NO_VERSION

      static final SchemaVersion NO_VERSION
      Versions are not yet implemented. This singleton is a placeholder for the version concept.
  • Method Details

    • getSequenceNumber

      long getSequenceNumber()
      An integer identifying a single version of a single Schema. Sequence numbers are guaranteed to monotonically increase with each update.
      Returns:
      the sequence number of this SchemaVersion
    • getTimestamp

      long getTimestamp()
      The time of the last update (e.g. System.currentTimeInMillis). Timestamps are guaranteed to monotonically increase with each update.
      Returns:
      a timestamp representing when this version was created.
    • getUser

      String getUser()
      The User who initiated the creation of this version.
      Returns:
      the user who created this version.
    • getDescription

      String getDescription()
      Human readable description of this version.
      Returns:
      a text description of this version