public CorrelationKey getCorrelationKey() { return keySet.iterator().next(); }
public CorrelationKey getCorrelationKey() { return _ckeySet.iterator().next(); }
/** * Checks if this correlation key set contains all correlation keys from the given correlation key set. * * @param c a correlation key set * @return return true if this correlation key set is a superset */ public boolean containsAll(CorrelationKeySet c) { Iterator<CorrelationKey> e = c.iterator(); while (e.hasNext()) if (!contains(e.next())) return false; return true; }
CorrelationKeySet subKeySet = new CorrelationKeySet(); int bitPattern = setIndex; // the bitPattern will be 0b0000, 0b0001, 0b0010 and so on Iterator<CorrelationKey> ckeys = explicitKeySet.iterator(); while( ckeys.hasNext() && bitPattern > 0 ) { // bitPattern > 0 condition saves half of the iterations CorrelationKey ckey = ckeys.next();