-
Field Summary
Fields
Fields inherited from class org.yamcs.parameterarchive.BaseSegment
FORMAT_ID_BinaryValueSegment, FORMAT_ID_BooleanValueSegment, FORMAT_ID_DoubleValueSegment, FORMAT_ID_FloatValueSegment, FORMAT_ID_GapSegment, FORMAT_ID_GenericValueSegment, FORMAT_ID_IntValueSegment, FORMAT_ID_LongValueSegment, FORMAT_ID_ParameterStatusSegment, FORMAT_ID_SortedTimeValueSegmentV1, FORMAT_ID_SortedTimeValueSegmentV2, FORMAT_ID_StringValueSegment, formatId
-
Method Summary
void
Add data at the end of the segment.
void
getRange(int posStart,
int posStop,
boolean ascending)
returns an array containing the values in the range [posStart, posStop) if ascending or [posStop, posStart) if
descending
returns Value at position index
void
Insert data at position pos.
Methods inherited from class org.yamcs.parameterarchive.ObjectSegment
add, add, consolidate, equals, get, getMaxSerializedSize, getRangeArray, getRleRangeDescending, makeWritable, parse, size, toString, writeRaw, writeTo
-
Field Details
-
MAX_UTF8_CHAR_LENGTH
public static final int MAX_UTF8_CHAR_LENGTH
- See Also:
-
-
Method Details
-
insert
public void insert(int pos,
Value value)
Insert data at position pos. The data at the subsequent positions is shifted to the right.
- Specified by:
insert in interface ValueSegment
-
add
public void add(Value value)
Add data at the end of the segment.
- Specified by:
add in interface ValueSegment
-
getValue
public Value getValue(int index)
returns Value at position index
- Specified by:
getValue in interface ValueSegment
- Returns:
- the value at the index
-
addValue
public void addValue(Value v)
-
-
getRange
public ValueArray getRange(int posStart,
int posStop,
boolean ascending)
returns an array containing the values in the range [posStart, posStop) if ascending or [posStop, posStart) if
descending
- Specified by:
getRange in interface ValueSegment
- Returns:
- an array containing the values in the specified range