flink-instrumentation/workspace/flink-1.4.1-instrumented/flink-1.4.1/flink-runtime/src/main/java/org/apache/flink/runtime/state/heap/CopyOnWriteStateTable.java
/**
	 * Returns whether this table contains the specified key/namespace composite key.
	 *
	 * @param key       the key in the composite key to search for. Not null.
	 * @param namespace the namespace in the composite key to search for. Not null.
	 * @return {@code true} if this map contains the specified key/namespace composite key,
	 * {@code false} otherwise.
	 */
Returns whether this table contains the specified key/namespace composite key.
@param key       the key in the composite key to search for. Not null.
@param namespace the namespace in the composite key to search for. Not null.
@return  true if this map contains the specified key/namespace composite key,
false otherwise.
Returns whether this table contains the specified key / namespace composite key . @param key the key in the composite key to search for . Not null . @param namespace the namespace in the composite key to search for . Not null . @return true if this map contains the specified key / namespace composite key false otherwise .
boolean containsKey(K key, N namespace) {
		final int hash = computeHashForOperationAndDoIncrementalRehash(key, namespace);
		final StateTableEntry<K, N, S>[] tab = selectActiveTable(hash);
		int index = hash & (tab.length - 1);
		for (StateTableEntry<K, N, S> e = tab[index]; e != null; e = e.next) {
			final K eKey = e.key;
			final N eNamespace = e.namespace;
			if ((e.hash == hash && key.equals(eKey) && namespace.equals(eNamespace))) {
				return true;
			}
		}
		return false;
	}
boolean containsKey ( K key , N namespace ) { final int hash = computeHashForOperationAndDoIncrementalRehash ( key , namespace ) ; final StateTableEntry < K , N , S > [ ] tab = selectActiveTable ( hash ) ; int index = hash & ( tab . length - 1 ) ; for ( StateTableEntry < K , N , S > e = tab [ index ] ; e != null ; e = e . next ) { final K eKey = e . key ; final N eNamespace = e . namespace ; if ( ( e . hash == hash && key . equals ( eKey ) && namespace . equals ( eNamespace ) ) ) { return true ; } } return false ; }
Returns whether this table contains the specified key/namespace composite key.
Returns whether this table contains the specified key / namespace composite key .