Package org.yamcs.parameterarchive
Class ParameterGroupIdDb
- java.lang.Object
-
- org.yamcs.parameterarchive.ParameterGroupIdDb
-
public class ParameterGroupIdDb extends Object
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
All Methods Instance Methods Concrete Methods Modifier and Type Method Description int
createAndGet(IntArray s)
Creates (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 ofIntArray
getParameterGroup(int pg)
return the members of the pg group.void
print(PrintStream out)
String
toString()
-
-
-
Method Detail
-
createAndGet
public int createAndGet(IntArray s) throws org.rocksdb.RocksDBException
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
public IntArray getParameterGroup(int pg)
return the members of the pg group.Throws
IllegalArgumentException
if the group does not exist
-
print
public void print(PrintStream out)
-
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
-
-