Package net.quasardb.qdb.ts
Class WritableRow
java.lang.Object
net.quasardb.qdb.ts.Row
net.quasardb.qdb.ts.WritableRow
- All Implemented Interfaces:
Serializable
,Comparable<Row>
Represents a timeseries row.
- See Also:
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionWritableRow
(Timestamp timestamp, Value[] values) Row with timestampWritableRow
(LocalDateTime timestamp, Value[] values) Row with timestampWritableRow
(Timespec timestamp, Value[] values) Row with timestampWritableRow
(WritableRow row) Creates a new WritableRow out of an existing row, that is, copies the underlying representation. -
Method Summary
Modifier and TypeMethodDescriptionint
Comparable interface implementation.boolean
Comparison-by-value operator.Access to the timestamp of this row.boolean
Determine whether this row has any null values.void
setTimestamp
(Timespec timestamp) Set timestamp of this row.toString()
-
Field Details
-
timestamp
-
-
Constructor Details
-
WritableRow
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
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
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
Creates a new WritableRow out of an existing row, that is, copies the underlying representation.
-
-
Method Details
-
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
Set timestamp of this row.- Parameters:
timestamp
- Timestamp to set
-
equals
Comparison-by-value operator. -
compareTo
Comparable interface implementation.- Specified by:
compareTo
in interfaceComparable<Row>
- Overrides:
compareTo
in classRow
-
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
-