Package org.yamcs.parameterarchive
Class PGSegment
java.lang.Object
org.yamcs.parameterarchive.PGSegment
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
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
addRecord
(long instant, org.yamcs.parameterarchive.BasicParameterList sortedPvList) void
addRecord
(long instant, IntArray pids, List<BasicParameterValue> values) Add a new recordvoid
long
int
int
getParameterId
(int idx) getParametersValues
(ParameterId[] pids) getParameterValue
(int pid) long
long
int
size()
toString()
-
Constructor Details
-
PGSegment
public PGSegment(int parameterGroupId, long segmentStart) -
PGSegment
public PGSegment(int parameterGroupId, long segmentStart, int capacity)
-
-
Method Details
-
addRecord
public void addRecord(long instant, org.yamcs.parameterarchive.BasicParameterList sortedPvList) -
addRecord
Add a new recordinstant goes into the timeSegment the values goes each into a value segment
-
consolidate
public void consolidate() -
getParameterValue
-
getParametersValues
-
getInterval
public long getInterval() -
getSegmentStart
public long getSegmentStart() -
getSegmentEnd
public long getSegmentEnd()- Returns:
- timestamp of the last parameter in this segment
-
getTimeSegment
-
getParameterGroupId
public int getParameterGroupId() -
size
public int size() -
toString
-
getParameterId
public int getParameterId(int idx)
-