java.lang.Object
org.yamcs.parameterarchive.ParameterGroupIdDb
Stores a map between
List<parameter_id> and ParameterGroup_id.
Stores data in the main tablespace database
key = tbsIndex,ParameterGroup_id
value = SortedVarArray of parameter_id
Backed by RocksDB
-
Method Summary
Modifier and TypeMethodDescriptionintCreates (if not already there) a new ParameterGroupId for the given parameter id arrayint[]getAllGroups(int pid) get all parameter group ids for the parameters from which this parameter id is part ofgetParameterGroup(int pg) return the members of the pg group.voidprint(PrintStream out) toString()
-
Method Details
-
createAndGet
Creates (if not already there) a new ParameterGroupId for the given parameter id array- Parameters:
s-- Returns:
- the parameterGroupId for the given parameter id array
- Throws:
org.rocksdb.RocksDBException
-
getParameterGroup
return the members of the pg group.Throws
IllegalArgumentExceptionif the group does not exist -
toString
-
print
-
getAllGroups
public int[] getAllGroups(int pid) get all parameter group ids for the parameters from which this parameter id is part of- Parameters:
pid-- Returns:
- the parameter group ids for the parameters groups that contain the pid
-