Package org.yamcs.parameterarchive
Class PGSegment
- java.lang.Object
-
- org.yamcs.parameterarchive.PGSegment
-
public class PGSegment extends Object
Parameter Group segment - keeps references to Time and Value segments for a given parameter group and segment. This class is used during the parameter archive buildup
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddRecord(long instant, List<BasicParameterValue> sortedPvList)Add a new record instant goes into the timeSegment the values goes each into a value segment the sortedPvList list has to be already sorted according to the definition of the ParameterGroupvoidconsolidate()List<ParameterStatusSegment>getConsolidatedParameterStatusSegments()List<BaseSegment>getConsolidatedRawValueSegments()List<BaseSegment>getConsolidatedValueSegments()intgetParameterGroupId()intgetParameterId(int index)longgetSegmentEnd()longgetSegmentStart()SortedTimeSegmentgetTimeSegment()intsize()StringtoString()
-
-
-
Constructor Detail
-
PGSegment
public PGSegment(int parameterGroupId, long segmentStart, IntArray parameterIds)
-
-
Method Detail
-
addRecord
public void addRecord(long instant, List<BasicParameterValue> sortedPvList)Add a new record instant goes into the timeSegment the values goes each into a value segment the sortedPvList list has to be already sorted according to the definition of the ParameterGroup- Parameters:
instant-sortedPvList-
-
consolidate
public void consolidate()
-
getSegmentStart
public long getSegmentStart()
-
getSegmentEnd
public long getSegmentEnd()
-
getTimeSegment
public SortedTimeSegment getTimeSegment()
-
getParameterGroupId
public int getParameterGroupId()
-
getParameterId
public int getParameterId(int index)
-
getConsolidatedValueSegments
public List<BaseSegment> getConsolidatedValueSegments()
-
getConsolidatedRawValueSegments
public List<BaseSegment> getConsolidatedRawValueSegments()
-
getConsolidatedParameterStatusSegments
public List<ParameterStatusSegment> getConsolidatedParameterStatusSegments()
-
size
public int size()
-
-