static DirectCompactUnorderedSketch wrapInstance(final Memory srcMem, final long seed) {
    final short memSeedHash = srcMem.getShort(SEED_HASH_SHORT);
    final short computedSeedHash = computeSeedHash(seed);
    checkSeedHashes(memSeedHash, computedSeedHash);
    return new DirectCompactUnorderedSketch(srcMem);
  }
static DirectCompactUnorderedSketch wrapInstance ( final Memory srcMem , final long seed ) { final short memSeedHash = srcMem . getShort ( SEED_HASH_SHORT ) ; final short computedSeedHash = computeSeedHash ( seed ) ; checkSeedHashes ( memSeedHash , computedSeedHash ) ; return new DirectCompactUnorderedSketch ( srcMem ) ; }
Wraps the given Memory, which must be a SerVer 3, unordered, Compact Sketch image.
Must check the validity of the Memory before calling.
@param srcMem <a href="{@docRoot}/resources/dictionary.html#mem">See Memory</a>
@param seed <a href="{@docRoot}/resources/dictionary.html#seed">See Update Hash Seed</a>.
@return this sketch