public ArrayOfDoublesCompactSketch getResult ( final WritableMemory dstMem ) { if ( isFirstCall_ ) { throw new SketchesStateException ( "getResult() with no intervening intersections is not a legal result." ) ; } if ( sketch_ == null ) { return new HeapArrayOfDoublesCompactSketch ( null , null , Long . MAX_VALUE , true , numValues_ , seedHash_ ) ; } return sketch_ . compact ( dstMem ) ; }
Gets the internal set as an off - heap compact sketch using the given memory .