Class Row

java.lang.Object
net.quasardb.qdb.ts.Row
All Implemented Interfaces:
Serializable, Comparable<Row>
Direct Known Subclasses:
WritableRow

public class Row extends Object implements Serializable, Comparable<Row>
Represents a timeseries row.
See Also:
  • Field Details

    • values

      protected Value[] values
  • Constructor Details

    • Row

      public Row(Value[] values)
      Row without timestamp
      Parameters:
      values - All values for this row. When querying data from the database, a row might not have a timestamp. This function can be used to construct these rows.
    • Row

      public Row(Row row)
      Creates row out of this row, that is, copies the underlying representation into a new object.
  • Method Details

    • getValues

      public Value[] getValues()
      Access to the underlying values of this row.
    • getValue

      public Value getValue(int n)
      Get a value with a certain offset.
    • setValue

      public void setValue(Value v, int n)
      Update a value with a certain offset.
    • size

      public int size()
      Returns number of values assigbed to this row.
    • equals

      public boolean equals(Object obj)
      Overrides:
      equals in class Object
    • compareTo

      public int compareTo(Row rhs)
      Specified by:
      compareTo in interface Comparable<Row>
    • toString

      public String toString()
      Overrides:
      toString in class Object