public class PackedHistoricalTagValue extends java.lang.Object implements HistoricalTagValue
TAG_DATA_SIGNITURE
Constructor and Description |
---|
PackedHistoricalTagValue(TagPath path,
DataTypeClass typeClass,
InterpolationMode queryMode,
TimestampSource tsSource,
java.lang.Object value,
DataQuality quality) |
PackedHistoricalTagValue(TagPath path,
DataTypeClass typeClass,
InterpolationMode queryMode,
TimestampSource tsSource,
TagValue 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.
|
Quality |
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 PackedHistoricalTagValue(TagPath path, DataTypeClass typeClass, InterpolationMode queryMode, TimestampSource tsSource, java.lang.Object value, DataQuality quality)
public PackedHistoricalTagValue(TagPath path, DataTypeClass typeClass, InterpolationMode queryMode, TimestampSource tsSource, TagValue value)
public boolean equals(java.lang.Object value, boolean includeTimestamp)
equals
in interface QualifiedValue
public Quality getQuality()
getQuality
in interface QualifiedValue
public java.util.Date getTimestamp()
getTimestamp
in interface QualifiedValue
public java.lang.Object getValue()
getValue
in interface QualifiedValue
public HistoryFlavor getFlavor()
HistoricalData
getFlavor
in interface HistoricalData
public java.lang.String getSignature()
HistoricalData
GroupableData
interface).getSignature
in interface HistoricalData
public int getDataCount()
HistoricalData
getDataCount
in interface HistoricalData
public java.lang.String getLoggerName()
HistoricalData
getLoggerName
in interface HistoricalData
public TagPath getSource()
getSource
in interface HistoricalTagValue
public DataTypeClass getTypeClass()
getTypeClass
in interface HistoricalTagValue
public InterpolationMode getInterpolationMode()
getInterpolationMode
in interface HistoricalTagValue
public TimestampSource getTimestampSource()
getTimestampSource
in interface HistoricalTagValue
protected int getField(int field)
protected void setField(int field, int value)
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
public java.lang.String toString()
toString
in class java.lang.Object