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 Details

    • 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

    • toString

      public String toString()
      Overrides:
      toString in class Object
    • 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