java.lang.Object
org.yamcs.parameterarchive.SimpleParameterIterator
- All Implemented Interfaces:
AutoCloseable,ParameterIterator,ParchiveIterator<TimedValue>,PeekingIterator<TimedValue>
For a given parameter id and group id, iterates over all parameters in the parameter archive (across all segments and
partitions).
Provides objects of type TimedValue.
It embeds an SegmentIterator object.
-
Constructor Summary
ConstructorsConstructorDescriptionSimpleParameterIterator(ParameterArchive parchive, ParameterId parameterId, int parameterGroupId, ParameterRetrievalOptions req) -
Method Summary
-
Constructor Details
-
SimpleParameterIterator
public SimpleParameterIterator(ParameterArchive parchive, ParameterId parameterId, int parameterGroupId, ParameterRetrievalOptions req)
-
-
Method Details
-
isValid
public boolean isValid()Description copied from interface:PeekingIteratorReturnstrueif the iterator has more elements.This method allows to verify whether the iterator has a valid value to be fetched.
- Specified by:
isValidin interfacePeekingIterator<TimedValue>- Returns:
trueif the iterator has more elements orfalseotherwise
-
value
Description copied from interface:PeekingIteratorReturns the current value from the iterator without advancing.This method can only be called if
PeekingIterator.isValid()returnstrue. If called afterPeekingIterator.isValid()returnsfalse, this method will throw an exception.- Specified by:
valuein interfaceParameterIterator- Specified by:
valuein interfacePeekingIterator<TimedValue>- Returns:
- the current element
-
next
public void next()Description copied from interface:PeekingIteratorMoves the iterator to the next element.If
PeekingIterator.isValid()returnsfalse, calling this method has no effect.- Specified by:
nextin interfacePeekingIterator<TimedValue>
-
close
public void close()- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceParchiveIterator<TimedValue>
-
getParameterId
- Specified by:
getParameterIdin interfaceParameterIterator
-
getParameterGroupId
public int getParameterGroupId()- Specified by:
getParameterGroupIdin interfaceParameterIterator
-