Record Class CatalogSnapshot.Entry

java.lang.Object
java.lang.Record
com.darkcollective.relix.semantic.CatalogSnapshot.Entry
Record Components:
connection - the declared connection's name
table - the table name within it, as the script spells it
schema - the heading, when this observation carries one
statistics - the statistics, when this observation carries them
origin - where the observation came from
captured - when it was made
Enclosing class:
CatalogSnapshot

public static record CatalogSnapshot.Entry(String connection, String table, Optional<Schema> schema, Optional<RelationStatistics> statistics, CatalogSnapshot.Origin origin, Instant captured) extends Record
One observation of one table.

Both halves are optional and independently so: introspection may yield a schema and no statistics (a table it could describe but not count), and a run yields statistics and no schema.

  • Constructor Details

  • Method Details

    • toString

      public final String toString()
      Returns a string representation of this record class. The representation contains the name of the class, followed by the name and value of each of the record components.
      Specified by:
      toString in class Record
      Returns:
      a string representation of this object
    • hashCode

      public final int hashCode()
      Returns a hash code value for this object. The value is derived from the hash code of each of the record components.
      Specified by:
      hashCode in class Record
      Returns:
      a hash code value for this object
    • equals

      public final boolean equals(Object o)
      Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. All components in this record class are compared with Objects::equals(Object,Object).
      Specified by:
      equals in class Record
      Parameters:
      o - the object with which to compare
      Returns:
      true if this object is the same as the o argument; false otherwise.
    • connection

      public String connection()
      Returns the value of the connection record component.
      Returns:
      the value of the connection record component
    • table

      public String table()
      Returns the value of the table record component.
      Returns:
      the value of the table record component
    • schema

      public Optional<Schema> schema()
      Returns the value of the schema record component.
      Returns:
      the value of the schema record component
    • statistics

      public Optional<RelationStatistics> statistics()
      Returns the value of the statistics record component.
      Returns:
      the value of the statistics record component
    • origin

      public CatalogSnapshot.Origin origin()
      Returns the value of the origin record component.
      Returns:
      the value of the origin record component
    • captured

      public Instant captured()
      Returns the value of the captured record component.
      Returns:
      the value of the captured record component