static DoublesUnionImpl directInstance ( final int maxK , final WritableMemory dstMem ) { final DirectUpdateDoublesSketch sketch = DirectUpdateDoublesSketch . newInstance ( maxK , dstMem ) ; final DoublesUnionImpl union = new DoublesUnionImpl ( maxK ) ; union . maxK_ = maxK ; union . gadget_ = sketch ; return union ; }
Returns a empty DoublesUnion object that refers to the given direct off - heap Memory which will be initialized to the empty state .