Record Class CatalogSnapshot.Entry
java.lang.Object
java.lang.Record
com.darkcollective.relix.semantic.CatalogSnapshot.Entry
- Record Components:
connection- the declared connection's nametable- the table name within it, as the script spells itschema- the heading, when this observation carries onestatistics- the statistics, when this observation carries themorigin- where the observation came fromcaptured- 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 Summary
ConstructorsConstructorDescriptionEntry(String connection, String table, Optional<Schema> schema, Optional<RelationStatistics> statistics, CatalogSnapshot.Origin origin, Instant captured) Creates an instance of aEntryrecord class. -
Method Summary
Modifier and TypeMethodDescriptioncaptured()Returns the value of thecapturedrecord component.Returns the value of theconnectionrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.origin()Returns the value of theoriginrecord component.schema()Returns the value of theschemarecord component.Returns the value of thestatisticsrecord component.table()Returns the value of thetablerecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
Entry
public Entry(String connection, String table, Optional<Schema> schema, Optional<RelationStatistics> statistics, CatalogSnapshot.Origin origin, Instant captured) Creates an instance of aEntryrecord class.- Parameters:
connection- the value for theconnectionrecord componenttable- the value for thetablerecord componentschema- the value for theschemarecord componentstatistics- the value for thestatisticsrecord componentorigin- the value for theoriginrecord componentcaptured- the value for thecapturedrecord component
-
-
Method Details
-
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. -
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. -
equals
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 withObjects::equals(Object,Object). -
connection
Returns the value of theconnectionrecord component.- Returns:
- the value of the
connectionrecord component
-
table
Returns the value of thetablerecord component.- Returns:
- the value of the
tablerecord component
-
schema
Returns the value of theschemarecord component.- Returns:
- the value of the
schemarecord component
-
statistics
Returns the value of thestatisticsrecord component.- Returns:
- the value of the
statisticsrecord component
-
origin
Returns the value of theoriginrecord component.- Returns:
- the value of the
originrecord component
-
captured
Returns the value of thecapturedrecord component.- Returns:
- the value of the
capturedrecord component
-