public long[] getActiveProcIds() {
    List<Long> procIds = new ArrayList<>();
    for (int wordIndex = 0; wordIndex < modified.length; wordIndex++) {
      if (deleted[wordIndex] == WORD_MASK || modified[wordIndex] == 0) {
        // This should be the common case, where most procedures has been deleted.
        continue;
      }
      long baseProcId = getStart() + (wordIndex << ADDRESS_BITS_PER_WORD);
      for (int i = 0; i < (1 << ADDRESS_BITS_PER_WORD); i++) {
        long mask = 1L << i;
        if ((deleted[wordIndex] & mask) == 0 && (modified[wordIndex] & mask) != 0) {
          procIds.add(baseProcId + i);
        }
      }
    }
    return procIds.stream().mapToLong(Long::longValue).toArray();
  }
Returns all the active procedure ids in this bit set.
hbase-procedure/src/main/java/org/apache/hadoop/hbase/procedure2/store/wal/BitSetNode.java