Class Metric

java.lang.Object
com.invirgance.convirgance.olap.Metric

public class Metric extends Object
Provides support for quantitative values of data.
Author:
jbanes
  • Constructor Summary

    Constructors
    Constructor
    Description
    Default constructor initializes an empty Metric with no assigned attributes.
    Metric(Table table, String column)
    Constructs a Metric with an associated database table and column.
  • Method Summary

    Modifier and Type
    Method
    Description
    Returns the column representing this metric's data.
    Returns the star schema associated with this metric.
    Returns the database table associated with this metric.
    void
    setColumn(String column)
    Sets the column associated with this metric.
    void
    setTable(Table table)
    Assigns a new table to this metric.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • Metric

      public Metric()
      Default constructor initializes an empty Metric with no assigned attributes.
    • Metric

      public Metric(Table table, String column)
      Constructs a Metric with an associated database table and column.
      Parameters:
      table - Database table associated with the metric.
      column - Column associated with the metric.
  • Method Details

    • getStar

      public Star getStar()
      Returns the star schema associated with this metric.
      Returns:
      the Star schema assigned to the metric.
    • getTable

      public Table getTable()
      Returns the database table associated with this metric.
      Returns:
      Table object associated with this metric.
    • setTable

      public void setTable(Table table)
      Assigns a new table to this metric.
      Parameters:
      table - the Table object containing the metric data.
    • getColumn

      public String getColumn()
      Returns the column representing this metric's data.
      Returns:
      the Column object with the metric data.
    • setColumn

      public void setColumn(String column)
      Sets the column associated with this metric.
      Parameters:
      column - The Column object associated with this metric.