static DoublesUnionImpl wrapInstance ( final WritableMemory mem ) { final DirectUpdateDoublesSketch sketch = DirectUpdateDoublesSketch . wrapInstance ( mem ) ; final DoublesUnionImpl union = new DoublesUnionImpl ( sketch . getK ( ) ) ; union . gadget_ = sketch ; return union ; }
Returns an updatable Union object that wraps off - heap data structure of the given memory image of a non - compact DoublesSketch . The data structures of the Union remain off - heap .