Class PackedHistoricalQualifiedValue
java.lang.Object
com.inductiveautomation.ignition.gateway.history.PackedHistoricalQualifiedValue
- All Implemented Interfaces:
- HistoricalData,- HistoricalTagValue,- Serializable
An implementation of historical tag value that stores the enums packed together as an integer.
- See Also:
- 
Field SummaryFields inherited from interface com.inductiveautomation.ignition.gateway.history.HistoricalTagValueTAG_DATA_SIGNITURE
- 
Constructor SummaryConstructorsConstructorDescriptionPackedHistoricalQualifiedValue(TagPath path, DataTypeClass typeClass, InterpolationMode queryMode, TimestampSource tsSource, QualifiedValue value) PackedHistoricalQualifiedValue(TagPath path, DataTypeClass typeClass, InterpolationMode queryMode, TimestampSource tsSource, Object value, DataQuality quality) 
- 
Method SummaryModifier and TypeMethodDescriptionbooleanThis 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.booleanintThis is a fairly ambiguous number, but basically indicates how many rows will ultimately be inserted in the database.protected intgetField(int field) The very broad "flavor" designator, used to get the data to the correct sink.Returns the name of the logger that should be notified when something happens to this data.The signature is a static string that describes this data as uniquely as possible.getValue()inthashCode()This hashCode function is implemented according to the same constraints as equals aboveprotected voidsetField(int field, int value) toString()
- 
Constructor Details- 
PackedHistoricalQualifiedValuepublic PackedHistoricalQualifiedValue(TagPath path, DataTypeClass typeClass, InterpolationMode queryMode, TimestampSource tsSource, Object value, DataQuality quality) 
- 
PackedHistoricalQualifiedValuepublic PackedHistoricalQualifiedValue(TagPath path, DataTypeClass typeClass, InterpolationMode queryMode, TimestampSource tsSource, QualifiedValue value) 
 
- 
- 
Method Details- 
equals
- 
getQuality- Specified by:
- getQualityin interface- HistoricalTagValue
 
- 
getTimestamp- Specified by:
- getTimestampin interface- HistoricalTagValue
 
- 
getValue- Specified by:
- getValuein interface- HistoricalTagValue
 
- 
getFlavorDescription copied from interface:HistoricalDataThe very broad "flavor" designator, used to get the data to the correct sink. That is, different sinks support different types of data, and this is used to match them up.- Specified by:
- getFlavorin interface- HistoricalData
 
- 
getSignatureDescription copied from interface:HistoricalDataThe signature is a static string that describes this data as uniquely as possible. This will be used to group data in the data cache (for example, when displaying quarantined data), as well as uniquely identifying cacheable schemas, etc.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 GroupableDatainterface).- Specified by:
- getSignaturein interface- HistoricalData
 
- 
getDataCountpublic int getDataCount()Description copied from interface:HistoricalDataThis is a fairly ambiguous number, but basically indicates how many rows will ultimately be inserted in the database. Used for judging transaction size.- Specified by:
- getDataCountin interface- HistoricalData
 
- 
getLoggerNameDescription copied from interface:HistoricalDataReturns the name of the logger that should be notified when something happens to this data. If null or empty, notifications won't occur (errors, however, may still be logged to the general logger).- Specified by:
- getLoggerNamein interface- HistoricalData
 
- 
getSource- Specified by:
- getSourcein interface- HistoricalTagValue
 
- 
getTypeClass- Specified by:
- getTypeClassin interface- HistoricalTagValue
 
- 
getInterpolationMode- Specified by:
- getInterpolationModein interface- HistoricalTagValue
 
- 
getTimestampSource- Specified by:
- getTimestampSourcein interface- HistoricalTagValue
 
- 
getFieldprotected int getField(int field) 
- 
setFieldprotected void setField(int field, int value) 
- 
equalsThis 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. If all other settings are equal, we only look at timestamp.
- 
hashCodepublic int hashCode()This hashCode function is implemented according to the same constraints as equals above
- 
toString
 
-