Package org.yamcs.parameterarchive
Class SegmentKey
java.lang.Object
org.yamcs.parameterarchive.SegmentKey
Holder, encoder and decoder for the segment keys (in the sense of key,value storage used for RocksDb)
-
Field Summary
Modifier and TypeFieldDescriptionstatic final byte
static final byte
static final byte
static final byte
-
Constructor Summary
ConstructorDescriptionSegmentKey
(int parameterId, int parameterGroupId, long segmentStart, byte type) -
Method Summary
Modifier and TypeMethodDescriptionstatic SegmentKey
decode
(byte[] b) Key decode in Yamcs starting with 5.10 - we use the invertSign for the timestamps in order for the negative times to sort before the positive ones in the archivestatic SegmentKey
decodeV0
(byte[] b) Version 0 is prior to Yamcs 5.10 when the negative times were not sorting properlybyte[]
encode()
Key encode in Yamcs starting with 5.10 - we use the invertSign for the timestamps in order for the negative times to sort before the positive ones in the archivestatic byte[]
encode
(int parameterId, int parameterGroupId, long segmentStart, byte type) Key encode in Yamcs starting with 5.10 - we use the invertSign for the timestamps in order for the negative times to sort before the positive ones in the archivebyte[]
encodeV0()
Version 0 is prior to Yamcs 5.10 when the negative times were not sorting properlystatic byte[]
encodeV0
(int parameterId, int parameterGroupId, long segmentStart, byte type) Version 0 is prior to Yamcs 5.10 when the negative times were not sorting properlytoString()
-
Field Details
-
TYPE_ENG_VALUE
public static final byte TYPE_ENG_VALUE- See Also:
-
TYPE_RAW_VALUE
public static final byte TYPE_RAW_VALUE- See Also:
-
TYPE_PARAMETER_STATUS
public static final byte TYPE_PARAMETER_STATUS- See Also:
-
TYPE_GAPS
public static final byte TYPE_GAPS- See Also:
-
-
Constructor Details
-
SegmentKey
public SegmentKey(int parameterId, int parameterGroupId, long segmentStart, byte type)
-
-
Method Details
-
encode
public byte[] encode()Key encode in Yamcs starting with 5.10 - we use the invertSign for the timestamps in order for the negative times to sort before the positive ones in the archive -
decode
Key decode in Yamcs starting with 5.10 - we use the invertSign for the timestamps in order for the negative times to sort before the positive ones in the archive -
encode
public static byte[] encode(int parameterId, int parameterGroupId, long segmentStart, byte type) Key encode in Yamcs starting with 5.10 - we use the invertSign for the timestamps in order for the negative times to sort before the positive ones in the archive -
encodeV0
public byte[] encodeV0()Version 0 is prior to Yamcs 5.10 when the negative times were not sorting properly -
decodeV0
Version 0 is prior to Yamcs 5.10 when the negative times were not sorting properly -
encodeV0
public static byte[] encodeV0(int parameterId, int parameterGroupId, long segmentStart, byte type) Version 0 is prior to Yamcs 5.10 when the negative times were not sorting properly -
toString
-