public class ArrayOfDoublesSetOperationBuilder extends Object
Modifier and Type | Field and Description |
---|---|
static int |
DEFAULT_NOMINAL_ENTRIES
Default Nominal Entries (a.k.a.
|
static int |
DEFAULT_NUMBER_OF_VALUES
Default number of values
|
Constructor and Description |
---|
ArrayOfDoublesSetOperationBuilder()
Creates an instance of the builder with default parameters
|
Modifier and Type | Method and Description |
---|---|
ArrayOfDoublesAnotB |
buildAnotB()
Creates an instance of ArrayOfDoublesAnotB based on the current configuration of the builder.
|
ArrayOfDoublesIntersection |
buildIntersection()
Creates an instance of ArrayOfDoublesIntersection based on the current configuration of the
builder.
|
ArrayOfDoublesIntersection |
buildIntersection(org.apache.datasketches.memory.WritableMemory dstMem)
Creates an instance of ArrayOfDoublesIntersection based on the current configuration of the
builder.
|
ArrayOfDoublesUnion |
buildUnion()
Creates an instance of ArrayOfDoublesUnion based on the current configuration of the builder.
|
ArrayOfDoublesUnion |
buildUnion(org.apache.datasketches.memory.WritableMemory dstMem)
Creates an instance of ArrayOfDoublesUnion based on the current configuration of the builder
and the given destination memory.
|
ArrayOfDoublesSetOperationBuilder |
setNominalEntries(int nomEntries)
This is to set the nominal number of entries.
|
ArrayOfDoublesSetOperationBuilder |
setNumberOfValues(int numValues)
This is to set the number of double values associated with each key
|
ArrayOfDoublesSetOperationBuilder |
setSeed(long seed)
Sets the long seed value that is required by the hashing function.
|
public static final int DEFAULT_NOMINAL_ENTRIES
public static final int DEFAULT_NUMBER_OF_VALUES
public ArrayOfDoublesSetOperationBuilder()
public ArrayOfDoublesSetOperationBuilder setNominalEntries(int nomEntries)
nomEntries
- Nominal number of entries. Forced to the nearest power of 2 greater than
given value.public ArrayOfDoublesSetOperationBuilder setNumberOfValues(int numValues)
numValues
- number of double valuespublic ArrayOfDoublesSetOperationBuilder setSeed(long seed)
seed
- See seedpublic ArrayOfDoublesUnion buildUnion()
public ArrayOfDoublesUnion buildUnion(org.apache.datasketches.memory.WritableMemory dstMem)
dstMem
- destination memory to be used by the sketchpublic ArrayOfDoublesIntersection buildIntersection()
public ArrayOfDoublesIntersection buildIntersection(org.apache.datasketches.memory.WritableMemory dstMem)
dstMem
- destination memory to be used by the sketchpublic ArrayOfDoublesAnotB buildAnotB()
Copyright © 2015–2024 The Apache Software Foundation. All rights reserved.