Record Class DataQueryEntries.AssetChange

java.lang.Object
java.lang.Record
ai.badmonkey.agentspaces.connect.DataQueryEntries.AssetChange
Record Components:
asset - the asset name from its card
key - the changed record's key within the asset
row - the changed record; column name to value
servedBy - the connector that materialized the change
Enclosing class:
DataQueryEntries

public static record DataQueryEntries.AssetChange(String asset, String key, Map<String,String> row, String servedBy) extends Record
One change a materializing provider pushed (spec ยง6.1a), leased for the asset's freshness window so the lease is the retention policy. Subscribe with Template.of(AssetChange.class).where("asset", eq(name)) for complex event processing over the source's events.
  • Constructor Details

    • AssetChange

      public AssetChange(String asset, String key, Map<String,String> row, String servedBy)
      Creates an instance of a AssetChange record class.
      Parameters:
      asset - the value for the asset record component
      key - the value for the key record component
      row - the value for the row record component
      servedBy - the value for the servedBy record component
  • 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.
    • asset

      public String asset()
      Returns the value of the asset record component.
      Returns:
      the value of the asset record component
    • key

      public String key()
      Returns the value of the key record component.
      Returns:
      the value of the key record component
    • row

      public Map<String,String> row()
      Returns the value of the row record component.
      Returns:
      the value of the row record component
    • servedBy

      public String servedBy()
      Returns the value of the servedBy record component.
      Returns:
      the value of the servedBy record component