Package org.yamcs.parameterarchive
Class BinaryValueSegment
java.lang.Object
org.yamcs.parameterarchive.BaseSegment
org.yamcs.parameterarchive.ObjectSegment<byte[]>
org.yamcs.parameterarchive.BinaryValueSegment
- All Implemented Interfaces:
ValueSegment
-
Field Summary
Modifier and TypeFieldDescriptionstatic final int
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
Modifier and TypeMethodDescriptionvoid
Add data at the end of the segment.getRange
(int posStart, int posStop, boolean ascending) returns an array containing the values in the range [posStart, posStop) if ascending or [posStop, posStart) if descendinggetValue
(int index) returns Value at position indexvoid
Insert data at position pos.static BinaryValueSegment
parseFrom
(ByteBuffer bb) Methods inherited from class org.yamcs.parameterarchive.ObjectSegment
add, add, consolidate, equals, get, getMaxSerializedSize, getRangeArray, getRleRangeDescending, makeWritable, parse, size, toString, writeRaw, writeTo
Methods inherited from class org.yamcs.parameterarchive.BaseSegment
getFormatId, parseSegment
Methods inherited from class java.lang.Object
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
Methods inherited from interface org.yamcs.parameterarchive.ValueSegment
consolidate, makeWritable, size
-
Field Details
-
MAX_UTF8_CHAR_LENGTH
public static final int MAX_UTF8_CHAR_LENGTH- See Also:
-
values
-
-
Method Details
-
getValue
Description copied from interface:ValueSegment
returns Value at position index- Specified by:
getValue
in interfaceValueSegment
- Returns:
- the value at the index
-
insert
Description copied from interface:ValueSegment
Insert data at position pos. The data at the subsequent positions is shifted to the right.- Specified by:
insert
in interfaceValueSegment
-
add
Description copied from interface:ValueSegment
Add data at the end of the segment.- Specified by:
add
in interfaceValueSegment
-
parseFrom
- Throws:
DecodingException
-
getRange
Description copied from interface:ValueSegment
returns an array containing the values in the range [posStart, posStop) if ascending or [posStop, posStart) if descending- Specified by:
getRange
in interfaceValueSegment
- Returns:
- an array containing the values in the specified range
-