public UpdateSketch buildLocal ( final UpdateSketch shared ) { if ( ( shared == null ) || ! ( shared instanceof ConcurrentSharedThetaSketch ) ) { throw new SketchesStateException ( "The concurrent shared sketch must be built first." ) ; } return new ConcurrentHeapThetaBuffer ( bLocalLgNomLongs , bSeed , ( ConcurrentSharedThetaSketch ) shared , bPropagateOrderedCompact , bMaxNumLocalThreads ) ; }
Returns a local concurrent UpdateSketch to be used as a per - thread local buffer along with the given concurrent shared UpdateSketch and the current configuration of this Builder