Package org.apache.datasketches.req
Class ReqSketchBuilder
java.lang.Object
org.apache.datasketches.req.ReqSketchBuilder
For building a new ReqSketch
- Author:
- Lee Rhodes
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
Returns a new ReqSketch with the current configuration of the builder.boolean
Gets the builder configured High Rank Accuracy.int
getK()
Gets the builder configured k.Gets the builder configured ReqDebugsetHighRankAccuracy
(boolean hra) This sets the parameter highRankAccuracy.setK
(int k) This sets the parameter k.setReqDebug
(ReqDebug reqDebug) This sets the parameter reqDebug.toString()
-
Constructor Details
-
ReqSketchBuilder
public ReqSketchBuilder()Constructor for the ReqSketchBuilder.
-
-
Method Details
-
build
Returns a new ReqSketch with the current configuration of the builder.- Returns:
- a new ReqSketch
-
getHighRankAccuracy
public boolean getHighRankAccuracy()Gets the builder configured High Rank Accuracy.- Returns:
- the builder configured High Rank Accuracy.
-
getK
public int getK()Gets the builder configured k.- Returns:
- the builder configured k.
-
getReqDebug
Gets the builder configured ReqDebug- Returns:
- the builder configured ReqDebug, or null.
-
setHighRankAccuracy
This sets the parameter highRankAccuracy.- Parameters:
hra
- See ReqSketch#ReqSketch(int, boolean, ReqDebug)- Returns:
- this
-
setK
This sets the parameter k.- Parameters:
k
- See ReqSketch#ReqSketch(int, boolean, ReqDebug)- Returns:
- this
-
setReqDebug
This sets the parameter reqDebug.- Parameters:
reqDebug
- See ReqSketch#ReqSketch(int, boolean, ReqDebug)- Returns:
- this
-
toString
-