code: public List<ORecordOperation> getRecordEntriesByClusterIds(final int[] iIds) {
      final List<ORecordOperation> result = new ArrayList<ORecordOperation>();
  
      if (iIds == null)
        // RETURN ALL THE RECORDS
        for (ORecordOperation entry : recordEntries.values()) {
          result.add(entry);
        }
      else
        // FILTER RECORDS BY ID
        for (ORecordOperation entry : recordEntries.values()) {
          for (int id : iIds) {
            if (entry.getRecord() != null && entry.getRecord().getIdentity().getClusterId() == id) {
              result.add(entry);
              break;
            }
          }
        }
  
      return result;
    }
docs: Called by cluster iterator.