Class WritableRow

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

public final class WritableRow extends Row implements Serializable
Represents a timeseries row.
See Also:
  • Field Details

    • timestamp

      protected Timespec timestamp
  • Constructor Details

    • WritableRow

      public WritableRow(Timespec timestamp, Value[] values)
      Row with timestamp
      Parameters:
      timestamp - The Valid Time for the row. This timestamp will be the primary index that quasardb stores this row under.
      values - All values for this row.
    • WritableRow

      public WritableRow(LocalDateTime timestamp, Value[] values)
      Row with timestamp
      Parameters:
      timestamp - The Valid Time for the row. This timestamp will be the primary index that quasardb stores this row under.
      values - All values for this row.
    • WritableRow

      public WritableRow(Timestamp timestamp, Value[] values)
      Row with timestamp
      Parameters:
      timestamp - The Valid Time for the row. This timestamp will be the primary index that quasardb stores this row under.
      values - All values for this row.
    • WritableRow

      public WritableRow(WritableRow row)
      Creates a new WritableRow out of an existing row, that is, copies the underlying representation.
  • Method Details

    • getTimestamp

      public Timespec getTimestamp()
      Access to the timestamp of this row.
      Returns:
      The timestamp, or null if this row does not have a timestamp associated (in case of a query result, for example).
    • setTimestamp

      public void setTimestamp(Timespec timestamp)
      Set timestamp of this row.
      Parameters:
      timestamp - Timestamp to set
    • equals

      public boolean equals(Object obj)
      Comparison-by-value operator.
      Overrides:
      equals in class Row
      Returns:
      Returns true when the object representations are equal.
    • compareTo

      public int compareTo(Row rhs)
      Comparable interface implementation.
      Specified by:
      compareTo in interface Comparable<Row>
      Overrides:
      compareTo in class Row
    • hasNullValues

      public boolean hasNullValues()
      Determine whether this row has any null values.
      Returns:
      Returns true when at least one value is a null value.
    • toString

      public String toString()
      Overrides:
      toString in class Row