public class SetOperationBuilder extends Object
| Constructor and Description |
|---|
SetOperationBuilder()
Constructor for building a new SetOperation.
|
| Modifier and Type | Method and Description |
|---|---|
SetOperation |
build(Family family)
Returns a SetOperation with the current configuration of this Builder and the given Family.
|
SetOperation |
build(int nomEntries,
Family family)
Returns a SetOperation with the current configuration of this Builder and the given
Nominal Entries and Family.
|
AnotB |
buildANotB()
Convenience method, returns a configured SetOperation ANotB with
Default Nominal Entries
|
Intersection |
buildIntersection()
Convenience method, returns a configured SetOperation Intersection with
Default Nominal Entries
|
Union |
buildUnion()
Convenience method, returns a configured SetOperation Union with
Default Nominal Entries
|
Union |
buildUnion(int nomEntries)
Convenience method, returns a configured SetOperation Union with the given
Nominal Entries.
|
int |
getLgNominalEntries()
Returns Log-base 2 Nominal Entries
|
Memory |
getMemory()
Returns the Destination Memory
See Destination Memory.
|
float |
getP()
Returns the pre-sampling probability p
|
ResizeFactor |
getResizeFactor()
Returns the Resize Factor
|
long |
getSeed()
Returns the seed
|
SetOperationBuilder |
initMemory(Memory dstMem)
Initializes the backing Memory store.
|
SetOperationBuilder |
setNominalEntries(int nomEntries)
Sets the Nominal Entries for this set operation.
|
SetOperationBuilder |
setP(float p)
Sets the upfront uniform sampling probability, p.
|
SetOperationBuilder |
setResizeFactor(ResizeFactor rf)
Sets the cache Resize Factor
|
SetOperationBuilder |
setSeed(long seed)
Sets the long seed value that is require by the hashing function.
|
String |
toString() |
public SetOperationBuilder()
ResizeFactor.X8public SetOperationBuilder setNominalEntries(int nomEntries)
nomEntries - Nominal Entres
This will become the ceiling power of 2 if it is not.public int getLgNominalEntries()
public SetOperationBuilder setSeed(long seed)
seed - See seedpublic long getSeed()
public SetOperationBuilder setP(float p)
p - See Sampling Probability, ppublic float getP()
public SetOperationBuilder setResizeFactor(ResizeFactor rf)
rf - See Resize Factorpublic ResizeFactor getResizeFactor()
public SetOperationBuilder initMemory(Memory dstMem)
dstMem - The destination Memory.
See Destination Memorypublic Memory getMemory()
public SetOperation build(Family family)
family - the chosen SetOperation familypublic SetOperation build(int nomEntries, Family family)
nomEntries - Nominal Entres
This will become the ceiling power of 2 if it is not.family - build this SetOperation familypublic Union buildUnion()
public Union buildUnion(int nomEntries)
nomEntries - Nominal Entrespublic Intersection buildIntersection()
public AnotB buildANotB()
Copyright © 2015–2017 Yahoo! Inc.. All rights reserved.