public class PackedHistoricalQualifiedValue extends java.lang.Object implements HistoricalTagValue
TAG_DATA_SIGNITURE| Constructor and Description |
|---|
PackedHistoricalQualifiedValue(TagPath path,
DataTypeClass typeClass,
InterpolationMode queryMode,
TimestampSource tsSource,
java.lang.Object value,
DataQuality quality) |
PackedHistoricalQualifiedValue(TagPath path,
DataTypeClass typeClass,
InterpolationMode queryMode,
TimestampSource tsSource,
QualifiedValue value) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(java.lang.Object obj)
This is overridden in a particular way - we don't take value into account! This implementation is relied on to
detect multiple values for a given time, which we can't have.
|
boolean |
equals(java.lang.Object value,
boolean includeTimestamp) |
int |
getDataCount()
This is a fairly ambiguous number, but basically indicates how many rows will ultimately be inserted in the
database.
|
protected int |
getField(int field) |
HistoryFlavor |
getFlavor()
The very broad "flavor" designator, used to get the data to the correct sink.
|
InterpolationMode |
getInterpolationMode() |
java.lang.String |
getLoggerName()
Returns the name of the logger that should be notified when something happens to this data.
|
DataQuality |
getQuality() |
java.lang.String |
getSignature()
The signature is a static string that describes this data as uniquely as possible.
|
TagPath |
getSource() |
java.util.Date |
getTimestamp() |
TimestampSource |
getTimestampSource() |
DataTypeClass |
getTypeClass() |
java.lang.Object |
getValue() |
int |
hashCode()
This hashCode function is implemented according to the same constraints as equals above
|
protected void |
setField(int field,
int value) |
java.lang.String |
toString() |
public PackedHistoricalQualifiedValue(TagPath path, DataTypeClass typeClass, InterpolationMode queryMode, TimestampSource tsSource, java.lang.Object value, DataQuality quality)
public PackedHistoricalQualifiedValue(TagPath path, DataTypeClass typeClass, InterpolationMode queryMode, TimestampSource tsSource, QualifiedValue value)
public boolean equals(java.lang.Object value,
boolean includeTimestamp)
public DataQuality getQuality()
getQuality in interface HistoricalTagValuepublic java.util.Date getTimestamp()
getTimestamp in interface HistoricalTagValuepublic java.lang.Object getValue()
getValue in interface HistoricalTagValuepublic HistoryFlavor getFlavor()
HistoricalDatagetFlavor in interface HistoricalDatapublic java.lang.String getSignature()
HistoricalData
Basically, the golden rule is that if two pieces of data have the same signature, the came from the same place,
and are going to the same place, and in theory could be grouped together (note: they won't be, that is done with
the GroupableData interface).
getSignature in interface HistoricalDatapublic int getDataCount()
HistoricalDatagetDataCount in interface HistoricalDatapublic java.lang.String getLoggerName()
HistoricalDatagetLoggerName in interface HistoricalDatapublic TagPath getSource()
getSource in interface HistoricalTagValuepublic DataTypeClass getTypeClass()
getTypeClass in interface HistoricalTagValuepublic InterpolationMode getInterpolationMode()
getInterpolationMode in interface HistoricalTagValuepublic TimestampSource getTimestampSource()
getTimestampSource in interface HistoricalTagValueprotected int getField(int field)
protected void setField(int field,
int value)
public boolean equals(java.lang.Object obj)
equals in class java.lang.Objectpublic int hashCode()
hashCode in class java.lang.Objectpublic java.lang.String toString()
toString in class java.lang.Object