public static DoublesSketch heapify ( final Memory srcMem ) { if ( checkIsCompactMemory ( srcMem ) ) { return CompactDoublesSketch . heapify ( srcMem ) ; } return UpdateDoublesSketch . heapify ( srcMem ) ; }
Heapify takes the sketch image in Memory and instantiates an on - heap Sketch . The resulting sketch will not retain any link to the source Memory .