Class 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
    • 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()
      • getParameterGroupId

        public int getParameterGroupId()
      • getParameterId

        public int getParameterId​(int index)
      • getConsolidatedValueSegments

        public List<BaseSegment> getConsolidatedValueSegments()
      • getConsolidatedRawValueSegments

        public List<BaseSegment> getConsolidatedRawValueSegments()
      • size

        public int size()