public static SetOperation heapify ( final Memory srcMem , final long seed ) { final byte famID = srcMem . getByte ( FAMILY_BYTE ) ; final Family family = idToFamily ( famID ) ; switch ( family ) { case UNION : { return UnionImpl . heapifyInstance ( srcMem , seed ) ; } case INTERSECTION : { return IntersectionImpl . heapifyInstance ( srcMem , seed ) ; } default : { throw new SketchesArgumentException ( "SetOperation cannot heapify family: " + family . toString ( ) ) ; } } }
Heapify takes the SetOperation image in Memory and instantiates an on - heap SetOperation using the given seed . The resulting SetOperation will not retain any link to the source Memory .