question: static HeapDoublesSketch copy ( DoublesSketch sketch ) { HeapDoublesSketch qsCopy ; qsCopy = HeapDoublesSketch . newInstance ( sketch . getK ( ) ) ; qsCopy . n_ = sketch . getN ( ) ; qsCopy . minValue_ = sketch . getMinValue ( ) ; qsCopy . maxValue_ = sketch . getMaxValue ( ) ; qsCopy . combinedBufferItemCapacity_ = sketch . getCombinedBufferItemCapacity ( ) ; qsCopy . baseBufferCount_ = sketch . getBaseBufferCount ( ) ; qsCopy . bitPattern_ = sketch . getBitPattern ( ) ; double [ ] combBuf = sketch . getCombinedBuffer ( ) ; qsCopy . combinedBuffer_ = Arrays . copyOf ( combBuf , combBuf . length ) ; return qsCopy ; }
target:  Returns an on-heap copy of the given sketch