Class DataSetTx
- All Implemented Interfaces:
Serializable
- Direct Known Subclasses:
DataSetTxVertDatum
When calculating statistics, interpolating, and deriving alternative data sets, Missing and Reject data values are not processed numerically.
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final int
Deprecated.static final int
Deprecated.static final int
Deprecated.static final int
Deprecated.static final double
Deprecated.Fields inherited from class hec.data.tx.AbstractDataSetT
utcTz
Fields inherited from class hec.data.AbstractDataSet
subFieldDelimiter
-
Constructor Summary
ConstructorsConstructorDescriptionDeprecated.Deprecated.Copy construct a time series dataset.DataSetTx
(DataSetTxTemplate template, long[] times, double[] values, QualityTx quality, Units units) Deprecated.Constructor for Regular or Irregular Interval (time stamped) Time Series Setquality
tonull
, if the dataset is to have no quality.DataSetTx
(DataSetTxTemplate template, long startValuesTime, double[] values, QualityTx quality, Units units) Deprecated.DataSetTx
(DescriptionTx description, long[] times, double[] values, Units units, QualityTx quality) Deprecated.Constructor for Irregular Interval (time stamped) Time Series Setquality
tonull
, if the dataset is to have no quality.DataSetTx
(DescriptionTx description, long startTime, double[] values, Units units, QualityTx quality) Deprecated.Constructor for Regular Interval Time Series Setquality
tonull
, if the dataset is to have no quality.DataSetTx
(DescriptionTx description, Units units) Deprecated.Constructor for Empty Time SeriesDeprecated.DataSetTx
(TimeSeriesContainer tsc, DescriptionTx descriptionTx) Deprecated.- DataSetTx has been replaced byTimeSeries
useTimeSeriesContainerFactory.toTimeSeries(TimeSeriesContainer, mil.army.usace.hec.metadata.timeseries.TimeSeriesIdentifier)
for transformation insteadDataSetTx
(String officeId, TimeSeriesContainer tsc) Deprecated.- DataSetTx has been replaced byTimeSeries
useTimeSeriesContainerFactory.toTimeSeries(TimeSeriesContainer)
for transformation insteadDataSetTx
(mil.army.usace.hec.data.timeseries.TimeSeries timeSeries) Deprecated. -
Method Summary
Modifier and TypeMethodDescriptionvoid
Deprecated.boolean
canCombine
(DataSetTx dataSetTx) Deprecated.boolean
canCombine
(DataSetTxTemplate dataSetTxTemplate) Deprecated.boolean
canDerive
(DataSetTxTemplate dataSetTx) Deprecated.boolean
cannotCombine
(DataSetTx dataSetTx) Deprecated.boolean
cannotCombine
(DataSetTxTemplate dataSetTxTemplate) Deprecated.boolean
cannotDerive
(DataSetTxTemplate dataSetTx) Deprecated.void
changeUnits
(DataSetTxTemplate dataSetTxTemplate) Deprecated.void
changeUnits
(Units toUnits) Deprecated.void
changeUnitSystem
(int unitSystemId) Deprecated.void
changeUnitSystem
(String unitSystem) Deprecated.void
Deprecated.void
combine
(long time, double value, byte[] qualityBytes, int storeRule, boolean overrideProtection) Deprecated.Combine a single value with this current time series.void
combine
(long time, double value, byte[] qualityBytes, int storeRule, boolean overrideProtection, long timeComparisonInterval, int timeComparisonMethod) Deprecated.Combine a single value with this current time series.void
Deprecated.Combine a like time series with this current one.void
combine
(DataSetTx dataSetTx, int storeRule, boolean overrideProtection, long timeComparisonInterval, int timeComparisonMethod) Deprecated.Combine a like time series with this current one.void
derive
(DataSetTxTemplate dataSetTxTemplate) Deprecated.Derive replacement time series.boolean
Deprecated.boolean
Deprecated.Determine if two data sets are 'equal'.void
fillTails
(DataSetTxTemplate template) Deprecated.generateDifferences
(DataSetTx filterData) Deprecated.Creates a new time series from this where the first data point is the first diff between this time series and the argument time series.double
Deprecated.double
Deprecated.Deprecated.Method for transforming underlying values array into an accessible Collections object.long
Deprecated.Returns the first time or Const.UNDEFINED_TIME if there are no times.int
Deprecated.int
Deprecated.int[]
Deprecated.double
Deprecated.long
Deprecated.double
Deprecated.long
Deprecated.int
Deprecated.int
Deprecated.static int
Deprecated.int
Deprecated.int
Deprecated.int
Deprecated.static int
Deprecated.int
Deprecated.static int
Deprecated.NavigableMap<Date,
byte[]> Deprecated.Deprecated.Method for transforming underlying QualityTx into an accessible Collections object.Deprecated.Method for transforming underlying QualityTx into an accessible Collections object.Deprecated.long[]
getTimes()
Deprecated.static long[]
Deprecated.static long[]
Deprecated.final mil.army.usace.hec.data.timeseries.TimeSeries
Deprecated.Deprecated.double[]
Deprecated.double[]
Deprecated.int
hashCode()
Deprecated.boolean
Deprecated.boolean
identicalTimesValuesQuality
(DataSetTx dataSetTx, double precision) Deprecated.boolean
isMissing
(int index) Deprecated.boolean
isNotMissing
(int index) Deprecated.boolean
isNotOkay
(int index) Deprecated.boolean
isNotProtected
(int index) Deprecated.boolean
isNotQuestion
(int index) Deprecated.boolean
isNotReject
(int index) Deprecated.boolean
isNotScreened
(int index) Deprecated.boolean
isOkay
(int index) Deprecated.boolean
isProtected
(int index) Deprecated.boolean
isQuestion
(int index) Deprecated.boolean
isReject
(int index) Deprecated.boolean
isSameTimeWindow
(DataSetTx dataSetTx) Deprecated.boolean
isScreened
(int index) Deprecated.boolean
needToChangeUnits
(DataSetTxTemplate dataSetTxTemplate) Deprecated.boolean
needToChangeUnits
(Units toUnits) Deprecated.void
Deprecated.Set times, values and quality for an existing time series.void
setCountMissing
(boolean bStart, boolean bEnd) Deprecated.void
setEndTime
(long endTime) Deprecated.void
setStartTime
(long startTime) Deprecated.void
Deprecated.void
tabulateStatistics
(TimeZone timeZone) Deprecated.void
tabulateStatistics
(TimeZone timeZone, String numberFormatPattern) Deprecated.void
Deprecated.void
tabulateValues
(TimeZone timeZone) Deprecated.void
tabulateValues
(TimeZone timeZone, String numberFormatPattern) Deprecated.toString()
Deprecated.void
trim()
Deprecated.Trim a time series of UNDEFINED values at front and rear.void
trimTail()
Deprecated.Trim UNDEFINED values from the tail of a time series.void
Deprecated.Compute Statistics for this data set.void
window
(DataSetTxTemplate dataSetTxTemplate) Deprecated.Methods inherited from class hec.data.tx.DataSetTxTemplate
clearTimeWindowInternal, equals, getDescriptionTx, getEndTime, getEndTimeString, getEndTimeString, getMaxTimeGap, getOfficeId, getPreserveRejectedAndMissingValues, getStartTime, getStartTimeString, getStartTimeString, getTimeSeriesTemplate, getUnits, getVersion, isTemplate, setEndTimeInternal, setMaxTimeGap, setMaxTimeGapDefinedByHours, setMaxTimeGapDefinedByIntervals, setMaxTimeGapDefinedByMinutes, setOfficeId, setPreserveRejectedAndMissingValues, setStartTimeInternal, setUnits, setVersion, show, show, toString
Methods inherited from class hec.data.AbstractDataSet
sdfFULL
-
Field Details
-
COMPARE_NORMAL_TIMES
public static final int COMPARE_NORMAL_TIMESDeprecated. -
COMPARE_TRUNCATED_TIMES
public static final int COMPARE_TRUNCATED_TIMESDeprecated. -
COMPARE_ROUNDED_TIMES
public static final int COMPARE_ROUNDED_TIMESDeprecated. -
COMPARE_NEAR_TIMES
public static final int COMPARE_NEAR_TIMESDeprecated. -
ORACLE_PRECISION
public static final double ORACLE_PRECISIONDeprecated.- See Also:
-
-
Constructor Details
-
DataSetTx
public DataSetTx(DescriptionTx description, long startTime, double[] values, Units units, QualityTx quality) throws DataSetTxException, UtcIntervalOffsetMismatchException, DataSetIllegalArgumentException, DataSetTxIllegalArgumentException Deprecated.Constructor for Regular Interval Time Series Setquality
tonull
, if the dataset is to have no quality. -
DataSetTx
public DataSetTx(DescriptionTx description, long[] times, double[] values, Units units, QualityTx quality) throws DataSetTxException, UtcIntervalOffsetMismatchException, DataSetIllegalArgumentException, DataSetTxIllegalArgumentException Deprecated.Constructor for Irregular Interval (time stamped) Time Series Setquality
tonull
, if the dataset is to have no quality. -
DataSetTx
public DataSetTx(DataSetTxTemplate template, long[] times, double[] values, QualityTx quality, Units units) throws DataSetTxException, UtcIntervalOffsetMismatchException, DataSetIllegalArgumentException Deprecated.Constructor for Regular or Irregular Interval (time stamped) Time Series Setquality
tonull
, if the dataset is to have no quality. If data set has regular interval, all intervals within the start/endTimeWindow will be filled with either entries from the values, quality arrays or a place holder. Time window must encompass times in times array.If method argument "units" object differs from units object contained in the method argument "template" object, the data values' units will be changed to the templates' units during dataset construction.
-
DataSetTx
public DataSetTx(DataSetTxTemplate template, long startValuesTime, double[] values, QualityTx quality, Units units) throws DataSetTxException, UtcIntervalOffsetMismatchException, DataSetIllegalArgumentException Deprecated. -
DataSetTx
@Deprecated public DataSetTx(TimeSeriesContainer tsc) throws DataSetException, DataSetTxIllegalArgumentException, DataSetIllegalArgumentException Deprecated.- DataSetTx has been replaced byTimeSeries
useTimeSeriesContainerFactory.toTimeSeries(TimeSeriesContainer)
for transformation instead- Parameters:
tsc
- this constructor does not support LRTS data types as the interval offset to distinguish from PRTS is not provided.- Throws:
DataSetException
- if the metadata components are invalidDataSetTxIllegalArgumentException
- if the time series data components are invalidDataSetIllegalArgumentException
-
DataSetTx
@Deprecated public DataSetTx(String officeId, TimeSeriesContainer tsc) throws DataSetException, DataSetIllegalArgumentException, DataSetTxIllegalArgumentException Deprecated.- DataSetTx has been replaced byTimeSeries
useTimeSeriesContainerFactory.toTimeSeries(TimeSeriesContainer)
for transformation instead- Parameters:
officeId
- office id metadatatsc
- this constructor does not support LRTS data types as the interval offset to distinguish from PRTS is not provided. Use the overload with DescriptionTx- Throws:
DataSetException
- if the metadata components are invalidDataSetTxIllegalArgumentException
- if the time series data components are invalidDataSetIllegalArgumentException
-
DataSetTx
@Deprecated public DataSetTx(TimeSeriesContainer tsc, DescriptionTx descriptionTx) throws DataSetException, DataSetIllegalArgumentException, DataSetTxIllegalArgumentException Deprecated.- DataSetTx has been replaced byTimeSeries
useTimeSeriesContainerFactory.toTimeSeries(TimeSeriesContainer, mil.army.usace.hec.metadata.timeseries.TimeSeriesIdentifier)
for transformation instead -
DataSetTx
public DataSetTx(DescriptionTx description, Units units) throws DataSetTxException, DataSetTxIllegalArgumentException Deprecated.Constructor for Empty Time Series -
DataSetTx
public DataSetTx()Deprecated. -
DataSetTx
Deprecated.Copy construct a time series dataset. -
DataSetTx
public DataSetTx(mil.army.usace.hec.data.timeseries.TimeSeries timeSeries) throws DataSetTxIllegalArgumentException Deprecated.
-
-
Method Details
-
getTimeSeries
public final mil.army.usace.hec.data.timeseries.TimeSeries getTimeSeries()Deprecated. -
setStartTime
Deprecated.- Overrides:
setStartTime
in classDataSetTxTemplate
- Throws:
DataSetTxIllegalArgumentException
-
setEndTime
Deprecated.- Overrides:
setEndTime
in classDataSetTxTemplate
- Throws:
DataSetTxIllegalArgumentException
-
clearTimeWindow
Deprecated.- Overrides:
clearTimeWindow
in classDataSetTxTemplate
- Throws:
DataSetTxIllegalArgumentException
-
getFirstTime
public long getFirstTime()Deprecated.Returns the first time or Const.UNDEFINED_TIME if there are no times.- Returns:
-
setCountMissing
public void setCountMissing(boolean bStart, boolean bEnd) Deprecated. -
set
public void set(long[] times, double[] values, QualityTx quality) throws DataSetTxIllegalArgumentException, UtcIntervalOffsetMismatchException, DataSetIllegalArgumentException Deprecated.Set times, values and quality for an existing time series. If there is no quality passnull
. -
getTimeSeriesContainer
Deprecated. -
toString
Deprecated.- Overrides:
toString
in classDataSetTxTemplate
-
tabulateValues
Deprecated. -
tabulateValues
Deprecated. -
tabulateValues
public void tabulateValues()Deprecated. -
tabulateStatistics
Deprecated. -
tabulateStatistics
Deprecated. -
tabulateStatistics
public void tabulateStatistics()Deprecated. -
getQualitySymbols
Deprecated.Method for transforming underlying QualityTx into an accessible Collections object. This method will perform the entire calculation for the times array from the getTimes() method and uses the QualityTx methods to transform the symbolic String quality into integers.- Returns:
- sorted map that is not thread safe of dates to quality. Values will not be null, but the collection will be empty if QualityTx is null.
-
getQualityIntegers
Deprecated.Method for transforming underlying QualityTx into an accessible Collections object. This method will perform the entire calculation for the times array from the getTimes() method and uses the QualityTx methods to transform the Integer quality into integers.- Returns:
- sorted map that is not thread safe of dates to quality. Values will not be null, but the collection will be empty if QualityTx is null.
-
getQualityBytes
Deprecated.Method for transforming underlying QualityTx into an accessible Collections object. This method will perform the entire calculation for the times array from the getTimes() method and uses the QualityTx methods to transform the byte[] quality into integers.- Returns:
- sorted map that is not thread safe of dates to quality. Values will not be null, but the collection will be empty if QualityTx is null.
-
getValues
public double[] getValues()Deprecated. -
getValuesWithQualityFlagsApplied
public double[] getValuesWithQualityFlagsApplied()Deprecated. -
getIndexOfLatestValidValue
public int getIndexOfLatestValidValue()Deprecated. -
getQualityTx
Deprecated. -
hasQuality
public boolean hasQuality()Deprecated. -
addEmptyQualityTx
public void addEmptyQualityTx()Deprecated. -
getIntTimes
public int[] getIntTimes()Deprecated. -
getTimes
public long[] getTimes()Deprecated. -
getTimes
Deprecated. -
getTimes
@Deprecated public static long[] getTimes(long startValuesTime, double[] values, Interval interval, TimeZone tz) Deprecated. -
equals
Deprecated.Determine if two data sets are 'equal'. To be 'equal' the description, startTime, endTime, units, and number of data values must all be identical. The data values, quality flags, and times are not checked.- Overrides:
equals
in classDataSetTxTemplate
-
hashCode
public int hashCode()Deprecated.- Overrides:
hashCode
in classDataSetTxTemplate
-
equals
Deprecated. -
identicalTimesValuesQuality
Deprecated. -
isOkay
public boolean isOkay(int index) Deprecated. -
isNotOkay
public boolean isNotOkay(int index) Deprecated. -
isMissing
public boolean isMissing(int index) Deprecated. -
isNotMissing
public boolean isNotMissing(int index) Deprecated. -
isProtected
public boolean isProtected(int index) Deprecated. -
isNotProtected
public boolean isNotProtected(int index) Deprecated. -
isReject
public boolean isReject(int index) Deprecated. -
isNotReject
public boolean isNotReject(int index) Deprecated. -
isQuestion
public boolean isQuestion(int index) Deprecated. -
isNotQuestion
public boolean isNotQuestion(int index) Deprecated. -
isScreened
public boolean isScreened(int index) Deprecated. -
isNotScreened
public boolean isNotScreened(int index) Deprecated. -
updateStatistics
public void updateStatistics()Deprecated.Compute Statistics for this data set. Statistics are based ONLY on those data values that with quality have their "Okay" or "Question" bits set. Without flags set statistics are based on all values that are not numerically set to UNDEFINED. The absMinNonZeroValue statistic is always based on ALL values that are not UNDEFINED.Thus, when calculating statistics, interpolating, and deriving alternative data sets, Missing and Reject data values are not processed numerically.
-
getNumberValuesOkay
public int getNumberValuesOkay()Deprecated. -
getNumberValuesMissing
public int getNumberValuesMissing()Deprecated. -
getNumberValuesMissing
Deprecated. -
getNumberValuesReject
public int getNumberValuesReject()Deprecated. -
getNumberValuesReject
Deprecated. -
getNumberValuesQuestion
public int getNumberValuesQuestion()Deprecated. -
getNumberValuesQuestion
Deprecated. -
getNumberValuesProtected
public int getNumberValuesProtected()Deprecated. -
getNumberValues
public int getNumberValues()Deprecated. -
getIntervalOffsetFromUTCBaseSec
public int getIntervalOffsetFromUTCBaseSec()Deprecated. -
getMaxValue
public double getMaxValue()Deprecated. -
getMaxValueTime
public long getMaxValueTime()Deprecated. -
getMinValueTime
public long getMinValueTime()Deprecated. -
getMinValue
public double getMinValue()Deprecated. -
getAbsMinNonZeroValue
public double getAbsMinNonZeroValue()Deprecated. -
getAveValue
public double getAveValue()Deprecated. -
isSameTimeWindow
Deprecated. -
combine
public void combine(DataSetTx dataSetTx, int storeRule, boolean overrideProtection) throws DataSetException Deprecated.Combine a like time series with this current one. The description and units of both time series must be identical. Seederive
for changing the characteristics of a time series data set.When combining, the value of
storeRule
controls the operation. Valid values are:-
hec.lang.Const.DELETE_INSERT
-
hec.lang.Const.REPLACE_ALL
-
hec.lang.Const.DO_NOT_REPLACE
-
hec.lang.Const.REPLACE_MISSING_VALUES_ONLY
-
hec.lang.Const.REPLACE_WITH_NON_MISSING
The
hec.lang.Const.DELETE_INSERT
rule removes all unprotected data from the current dataset which falls within the incoming data's earliest and lastest times. Then incoming data are merged between protected current data. Unprotected current data at corresponding times are updated with incoming data. Incoming data are discarded when there are protected current data at corresponding times.The
hec.lang.Const.REPLACE_ALL
rule merges incoming data between current data and replaces unprotected current data at corresponding times with incoming data. Incoming data are discarded when there are protected current data at corresponding times.The
hec.lang.Const.DO_NOT_REPLACE
rule merges incoming data between current data and discards incoming data when there are current data at corresponding times.The
hec.lang.Const.REPLACE_MISSING_VALUES_ONLY
rule merges incoming data between current data and replaces unprotected missing current data at corresponding times with incoming data. Incoming data are discarded when there are protected current data at corresponding times.The
hec.lang.Const.REPLACE_WITH_NON_MISSING
rule merges incoming data between current data and replaces unprotected current data at corresponding times with non-missing incoming data. Incoming data are discarded when there are protected current data at corresponding times.Setting
overrideProtection
totrue
will cause the the current data's protection bits to be ignored when the rule is applied.- Parameters:
dataSetTx
- The time series to combine with the current one.storeRule
- The rule governing how the time series are combined.overrideProtection
- specifies whether the combining governed bystoreRule
ignores any specified value protection.- Throws:
DataSetException
-
-
combine
public void combine(DataSetTx dataSetTx, int storeRule, boolean overrideProtection, long timeComparisonInterval, int timeComparisonMethod) throws DataSetIllegalArgumentException, DataSetException Deprecated.Combine a like time series with this current one. The description and units of both time series must be identical. Seederive
for changing the characteristics of a time series data set.When combining, the values of
storeRule
,timeComparisonInterval
, andtimeComparisonMethod
control the operation.Valid values for
storeRule
are:-
hec.lang.Const.DELETE_INSERT
-
hec.lang.Const.REPLACE_ALL
-
hec.lang.Const.DO_NOT_REPLACE
-
hec.lang.Const.REPLACE_MISSING_VALUES_ONLY
-
hec.lang.Const.REPLACE_WITH_NON_MISSING
The
hec.lang.Const.DELETE_INSERT
rule removes all unprotected data from the current dataset which falls within the incoming data's earliest and lastest times. Then incoming data are merged between protected current data. Unprotected current data at corresponding times are updated with incoming data. Incoming data are discarded when there are protected current data at corresponding times.The
hec.lang.Const.REPLACE_ALL
rule merges incoming data between current data and replaces unprotected current data at corresponding times with incoming data. Incoming data are discarded when there are protected current data at corresponding times.The
hec.lang.Const.DO_NOT_REPLACE
rule merges incoming data between current data and discards incoming data when there are current data at corresponding times.The
hec.lang.Const.REPLACE_MISSING_VALUES_ONLY
rule merges incoming data between current data and replaces unprotected missing current data at corresponding times with incoming data. Incoming data are discarded when there are protected current data at corresponding times.The
hec.lang.Const.REPLACE_WITH_NON_MISSING
rule merges incoming data between current data and replaces unprotected current data at corresponding times with non-missing incoming data. Incoming data are discarded when there are protected current data at corresponding times.Setting
overrideProtection
totrue
will cause the the current data's protection bits to be ignored when the rule is applied.Valid values for
timeComparisonMethod
are:hec.data.tx.COMPARE_NORMAL_TIMES
hec.data.tx.COMPARE_TRUNCATED_TIMES
hec.data.tx.COMPARE_ROUNDED_TIMES
hec.data.tx.COMPARE_NEAR_TIMES
The
hec.data.tx.COMPARE_NORMAL_TIMES
method compares times to millisecond precision without alteration.The
hec.data.tx.COMPARE_TRUNCATED_TIMES
method truncates each time to an even multiple oftimeComparisonInterval
milliseconds before comparing.The
hec.data.tx.COMPARE_ROUNDED_TIMES
method rounds each time to the nearest even multiple oftimeComparisonInterval
milliseconds before comparing.The
hec.data.tx.COMPARE_NEAR_TIMES
method considers times withintimeComparisonInterval
milliseconds of each other to be the same time for comparison purposes.- Parameters:
dataSetTx
- The time series to combine with the current one.storeRule
- The rule governing how the time series are combined.overrideProtection
- specifies whether the combining governed bystoreRule
ignores any specified value protection.timeComparisonInterval
- The time interval in milliseconds to use when comparing times.timeComparisonMethod
- The method to use for determining whether two times are to be considered coincident.- Throws:
DataSetException
DataSetIllegalArgumentException
-
-
combine
public void combine(long time, double value, byte[] qualityBytes, int storeRule, boolean overrideProtection) throws DataSetException Deprecated.Combine a single value with this current time series. If no quality pass in anull
forqualityBytes
. Caller is responsible for assuring that the single value to be combined is consistent with this dataset.When combining, the value of
storeRule
controls the operation. Valid values are:-
hec.lang.Const.DELETE_INSERT
-
hec.lang.Const.REPLACE_ALL
-
hec.lang.Const.DO_NOT_REPLACE
-
hec.lang.Const.REPLACE_MISSING_VALUES_ONLY
-
hec.lang.Const.REPLACE_WITH_NON_MISSING
The
hec.lang.Const.DELETE_INSERT
rule removes all unprotected data from the current dataset which falls within the incoming data's earliest and lastest times. Then incoming data are merged between protected current data. Unprotected current data at corresponding times are updated with incoming data. Incoming data are discarded when there are protected current data at corresponding times.The
hec.lang.Const.REPLACE_ALL
rule merges incoming data between current data and replaces unprotected current data at corresponding times with incoming data. Incoming data are discarded when there are protected current data at corresponding times.The
hec.lang.Const.DO_NOT_REPLACE
rule merges incoming data between current data and discards incoming data when there are current data at corresponding times.The
hec.lang.Const.REPLACE_MISSING_VALUES_ONLY
rule merges incoming data between current data and replaces unprotected missing current data at corresponding times with incoming data. Incoming data are discarded when there are protected current data at corresponding times.The
hec.lang.Const.REPLACE_WITH_NON_MISSING
rule merges incoming data between current data and replaces unprotected current data at corresponding times with non-missing incoming data. Incoming data are discarded when there are protected current data at corresponding times.Setting
overrideProtection
totrue
will cause the the current data's protection bits to be ignored when the rule is applied.- Parameters:
time
- The time of the single value to combine with the time series.value
- The single value to combine with the time series.qualityBytes
- The quality of the single value to combine with the time series.storeRule
- The rule governing how the data are combined.overrideProtection
- specifies whether the combining governed bystoreRule
ignores any specified value protection.- Throws:
DataSetException
-
-
combine
public void combine(long time, double value, byte[] qualityBytes, int storeRule, boolean overrideProtection, long timeComparisonInterval, int timeComparisonMethod) throws DataSetException Deprecated.Combine a single value with this current time series. If no quality pass in anull
forqualityBytes
. Caller is responsible for assuring that the single value to be combined is consistent with this dataset.When combining, the values of
storeRule
,timeComparisonInterval
, andtimeComparisonMethod
control the operation.-
hec.lang.Const.DELETE_INSERT
-
hec.lang.Const.REPLACE_ALL
-
hec.lang.Const.DO_NOT_REPLACE
-
hec.lang.Const.REPLACE_MISSING_VALUES_ONLY
-
hec.lang.Const.REPLACE_WITH_NON_MISSING
The
hec.lang.Const.DELETE_INSERT
rule removes all unprotected data from the current dataset which falls within the incoming data's earliest and lastest times. Then incoming data are merged between protected current data. Unprotected current data at corresponding times are updated with incoming data. Incoming data are discarded when there are protected current data at corresponding times.The
hec.lang.Const.REPLACE_ALL
rule merges incoming data between current data and replaces unprotected current data at corresponding times with incoming data. Incoming data are discarded when there are protected current data at corresponding times.The
hec.lang.Const.DO_NOT_REPLACE
rule merges incoming data between current data and discards incoming data when there are current data at corresponding times.The
hec.lang.Const.REPLACE_MISSING_VALUES_ONLY
rule merges incoming data between current data and replaces unprotected missing current data at corresponding times with incoming data. Incoming data are discarded when there are protected current data at corresponding times.The
hec.lang.Const.REPLACE_WITH_NON_MISSING
rule merges incoming data between current data and replaces unprotected current data at corresponding times with non-missing incoming data. Incoming data are discarded when there are protected current data at corresponding times.Setting
overrideProtection
totrue
will cause the the current data's protection bits to be ignored when the rule is applied.Valid values for
timeComparisonMethod
are:hec.data.tx.COMPARE_NORMAL_TIMES
hec.data.tx.COMPARE_TRUNCATED_TIMES
hec.data.tx.COMPARE_ROUNDED_TIMES
hec.data.tx.COMPARE_NEAR_TIMES
The
hec.data.tx.COMPARE_NORMAL_TIMES
method compares times to millisecond precision without alteration.The
hec.data.tx.COMPARE_TRUNCATED_TIMES
method truncates each time to an even multiple oftimeComparisonInterval
milliseconds before comparing.The
hec.data.tx.COMPARE_ROUNDED_TIMES
method rounds each time to the nearest even multiple oftimeComparisonInterval
milliseconds before comparing.The
hec.data.tx.COMPARE_NEAR_TIMES
method considers times withintimeComparisonInterval
milliseconds of each other to be the same time for comparison purposes.- Parameters:
time
- The time of the single value to combine with the time series.value
- The single value to combine with the time series.qualityBytes
- The quality of the single value to combine with the time series.storeRule
- The rule governing how the data are combined.overrideProtection
- specifies whether the combining governed bystoreRule
ignores any specified value protection.timeComparisonInterval
- The time interval in milliseconds to use when comparing times.timeComparisonMethod
- The method to use for determining whether two times are to be considered coincident.- Throws:
DataSetException
-
-
derive
public void derive(DataSetTxTemplate dataSetTxTemplate) throws DataSetIllegalArgumentException, DataSetException Deprecated.Derive replacement time series.When interpolating, this method will not try to fill in with interploated values if a gap of more than
maxTimeGap exists between the original data points. If the gap is exceeded, missing values will be generated. -
needToChangeUnits
public boolean needToChangeUnits(DataSetTxTemplate dataSetTxTemplate) throws DataSetTxDeriveException Deprecated.- Throws:
DataSetTxDeriveException
-
needToChangeUnits
Deprecated.- Throws:
DataSetTxDeriveException
-
changeUnits
Deprecated.- Throws:
DataSetTxDeriveException
-
changeUnits
Deprecated.- Throws:
DataSetTxDeriveException
-
changeUnitSystem
public void changeUnitSystem(String unitSystem) throws DataSetTxException, UnitsConversionException, DataSetIllegalArgumentException Deprecated. -
changeUnitSystem
public void changeUnitSystem(int unitSystemId) throws DataSetTxException, UnitsConversionException, DataSetIllegalArgumentException Deprecated. -
window
Deprecated.- Throws:
DataSetTxDeriveException
-
fillTails
public void fillTails(DataSetTxTemplate template) throws DataSetTxException, DataSetIllegalArgumentException Deprecated. -
trimTail
public void trimTail()Deprecated.Trim UNDEFINED values from the tail of a time series. If there are UNDEFINED values at the end of a time series, they are removed and the original time series size is reduced to the trimmed size. If the UNDEFINED values have quality, and either the MISSING bit or the PROTECTED bit are set, the values are not removed. If no values remain in the time series after trimming, a zero length time series results. -
trim
Deprecated.Trim a time series of UNDEFINED values at front and rear. If there are UNDEFINED values at the beginning or end of a time series, they removed and the original time series size is reduced to the trimmed size. If the UNDEFINED values have quality, and either the MISSING bit and the PROTECTED bit are set, the values are not removed. If no values remain in the time series after trimming, a zero length time series results. -
cannotCombine
Deprecated. -
canCombine
Deprecated. -
cannotCombine
Deprecated. -
canCombine
Deprecated. -
cannotDerive
Deprecated. -
canDerive
Deprecated. -
generateDifferences
Deprecated.Creates a new time series from this where the first data point is the first diff between this time series and the argument time series. The last data point is the last difference between the two. Everything between the first and last difference points is included in the resulting data set.- Parameters:
filterData
-- Returns:
- Throws:
DataSetException
-
TimeSeries
useTimeSeriesContainerFactory.toTimeSeries(TimeSeriesContainer)
for transformation instead