Class DataMetricAttachment

java.lang.Object
dev.frostlake.metastore.model.DataMetricAttachment

public class DataMetricAttachment extends Object
One DATA METRIC FUNCTION attached to a table, over the columns it measures — or over none, for the table-level metrics (ROW_COUNT, FRESHNESS and their kind).

Frostlake records the attachment and never evaluates the metric: nothing computes a value, and no scheduled run happens. What it does model is the SUSPEND / RESUME state, which is per attachment rather than per table (live-verified).

  • Constructor Details

    • DataMetricAttachment

      public DataMetricAttachment(String metricName, List<String> columns)
  • Method Details

    • getMetricName

      public String getMetricName()
    • getColumns

      public List<String> getColumns()
    • isSuspended

      public boolean isSuspended()
    • setSuspended

      public void setSuspended(boolean suspended)
    • matches

      public boolean matches(String otherMetric, List<String> otherColumns)
      Whether this attachment is the one a statement names: same metric, same columns.