public class DoublesUnionBuilder extends Object
Constructor and Description |
---|
DoublesUnionBuilder()
Constructor for a new DoublesUnionBuilder.
|
Modifier and Type | Method and Description |
---|---|
DoublesUnion |
build()
Returns a new empty Union object with the current configuration of this Builder.
|
DoublesUnion |
build(org.apache.datasketches.memory.WritableMemory dstMem)
Returns a new empty Union object with the current configuration of this Builder
and the specified backing destination Memory store.
|
int |
getMaxK()
Gets the current configured maxK
|
DoublesUnionBuilder |
setMaxK(int maxK)
Sets the parameter masK that determines the maximum size of the sketch that
results from a union and its accuracy.
|
public DoublesUnionBuilder()
public DoublesUnionBuilder setMaxK(int maxK)
maxK
- determines the accuracy and size of the union and is a maximum.
The effective k can be smaller due to unions with smaller k sketches.
It is recommended that maxK be a power of 2 to enable unioning of sketches with
different k.public int getMaxK()
public DoublesUnion build()
public DoublesUnion build(org.apache.datasketches.memory.WritableMemory dstMem)
dstMem
- the destination memoryCopyright © 2015–2024 The Apache Software Foundation. All rights reserved.