Package com.cobber.fta
Class AnalysisConfig
- Object
-
- AnalysisConfig
-
public class AnalysisConfig extends Object
Capture how the Analysis is configured. Attributes on the analysis are typically frozen once training has started.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
AnalysisConfig.TrainingMode
-
Field Summary
Fields Modifier and Type Field Description static int
DETECT_WINDOW_DEFAULT
The default value for the number of samples to collect before making a type determination.static int
DETECTION_THRESHOLD_DEFAULT
The default value for the detection threshold.static int
HISTOGRAM_BINS_DEFAULT
The default value for the number of Histogram bins.static int
MAX_CARDINALITY_DEFAULT
The default value for the maximum Cardinality tracked.static int
MAX_INPUT_LENGTH_DEFAULT
The default value for the maximum length of input to process.static int
MAX_INPUT_LENGTH_MINIMUM
The minimum value for the maximum length of input to process.static int
MAX_INVALID_DEFAULT
The default value for the maximum # of invalid entries tracked.static int
MAX_OUTLIERS_DEFAULT
The default value for the maximum # of outliers tracked.static int
MAX_SHAPES_DEFAULT
The default value for the maximum number of shapes tracked.static double
QUANTILE_RELATIVE_ACCURACY_DEFAULT
The default value for the quantile relative-accuracy guarantee.
-
Constructor Summary
Constructors Constructor Description AnalysisConfig()
AnalysisConfig(AnalysisConfig other)
AnalysisConfig(Locale locale)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
bindSemanticType(String unbound)
void
configure(TextAnalyzer.Feature feature, boolean state)
Method for changing state of an on/off feature for this TextAnalyzer.boolean
equals(Object obj)
int
getDebug()
int
getDetectWindow()
int
getHistogramBins()
Locale
getLocale()
String
getLocaleTag()
int
getMaxCardinality()
int
getMaxInputLength()
int
getMaxInvalids()
int
getMaxOutliers()
int
getMaxShapes()
double
getQuantileRelativeAccuracy()
int
getThreshold()
String
getTraceOptions()
AnalysisConfig.TrainingMode
getTrainingMode()
boolean
isEnabled(TextAnalyzer.Feature feature)
Method for checking whether given TextAnalyzer feature is enabled.void
setDebug(int debug)
int
setDetectWindow(int detectWindow)
int
setHistogramBins(int histogramBins)
void
setLocale(Locale locale)
void
setLocaleTag(String localeTag)
int
setMaxCardinality(int maxCardinality)
int
setMaxInputLength(int maxInputLength)
int
setMaxInvalids(int maxInvalids)
int
setMaxOutliers(int maxOutliers)
int
setMaxShapes(int maxShapes)
double
setQuantileRelativeAccuracy(double quantileRelativeAccuracy)
int
setThreshold(int threshold)
void
setTraceOptions(String traceOptions)
void
setTrainingMode(AnalysisConfig.TrainingMode trainingMode)
AnalysisConfig
withLocale(Locale locale)
-
-
-
Field Detail
-
MAX_CARDINALITY_DEFAULT
public static final int MAX_CARDINALITY_DEFAULT
The default value for the maximum Cardinality tracked.- See Also:
- Constant Field Values
-
QUANTILE_RELATIVE_ACCURACY_DEFAULT
public static final double QUANTILE_RELATIVE_ACCURACY_DEFAULT
The default value for the quantile relative-accuracy guarantee.- See Also:
- Constant Field Values
-
HISTOGRAM_BINS_DEFAULT
public static final int HISTOGRAM_BINS_DEFAULT
The default value for the number of Histogram bins.- See Also:
- Constant Field Values
-
MAX_OUTLIERS_DEFAULT
public static final int MAX_OUTLIERS_DEFAULT
The default value for the maximum # of outliers tracked.- See Also:
- Constant Field Values
-
MAX_INVALID_DEFAULT
public static final int MAX_INVALID_DEFAULT
The default value for the maximum # of invalid entries tracked.- See Also:
- Constant Field Values
-
MAX_SHAPES_DEFAULT
public static final int MAX_SHAPES_DEFAULT
The default value for the maximum number of shapes tracked.- See Also:
- Constant Field Values
-
DETECTION_THRESHOLD_DEFAULT
public static final int DETECTION_THRESHOLD_DEFAULT
The default value for the detection threshold.- See Also:
- Constant Field Values
-
DETECT_WINDOW_DEFAULT
public static final int DETECT_WINDOW_DEFAULT
The default value for the number of samples to collect before making a type determination.- See Also:
- Constant Field Values
-
MAX_INPUT_LENGTH_DEFAULT
public static final int MAX_INPUT_LENGTH_DEFAULT
The default value for the maximum length of input to process.- See Also:
- Constant Field Values
-
MAX_INPUT_LENGTH_MINIMUM
public static final int MAX_INPUT_LENGTH_MINIMUM
The minimum value for the maximum length of input to process.- See Also:
- Constant Field Values
-
-
Constructor Detail
-
AnalysisConfig
public AnalysisConfig()
-
AnalysisConfig
public AnalysisConfig(Locale locale)
-
AnalysisConfig
public AnalysisConfig(AnalysisConfig other)
-
-
Method Detail
-
configure
public void configure(TextAnalyzer.Feature feature, boolean state)
Method for changing state of an on/off feature for this TextAnalyzer.- Parameters:
feature
- The feature to be set.state
- The new state of the feature.
-
isEnabled
public boolean isEnabled(TextAnalyzer.Feature feature)
Method for checking whether given TextAnalyzer feature is enabled.- Parameters:
feature
- The feature to be tested.- Returns:
- Whether the identified feature is enabled.
-
getDetectWindow
public int getDetectWindow()
-
setDetectWindow
public int setDetectWindow(int detectWindow)
-
getQuantileRelativeAccuracy
public double getQuantileRelativeAccuracy()
-
setQuantileRelativeAccuracy
public double setQuantileRelativeAccuracy(double quantileRelativeAccuracy)
-
getHistogramBins
public int getHistogramBins()
-
setHistogramBins
public int setHistogramBins(int histogramBins)
-
getMaxCardinality
public int getMaxCardinality()
-
setMaxCardinality
public int setMaxCardinality(int maxCardinality)
-
getMaxInputLength
public int getMaxInputLength()
-
setMaxInputLength
public int setMaxInputLength(int maxInputLength)
-
getMaxOutliers
public int getMaxOutliers()
-
setMaxOutliers
public int setMaxOutliers(int maxOutliers)
-
getMaxInvalids
public int getMaxInvalids()
-
setMaxInvalids
public int setMaxInvalids(int maxInvalids)
-
getThreshold
public int getThreshold()
-
setThreshold
public int setThreshold(int threshold)
-
getLocaleTag
public String getLocaleTag()
-
setLocaleTag
public void setLocaleTag(String localeTag)
-
getLocale
public Locale getLocale()
-
setLocale
public void setLocale(Locale locale)
-
withLocale
public AnalysisConfig withLocale(Locale locale)
-
getMaxShapes
public int getMaxShapes()
-
setMaxShapes
public int setMaxShapes(int maxShapes)
-
getTraceOptions
public String getTraceOptions()
-
setTraceOptions
public void setTraceOptions(String traceOptions)
-
getDebug
public int getDebug()
-
setDebug
public void setDebug(int debug)
-
getTrainingMode
public AnalysisConfig.TrainingMode getTrainingMode()
-
setTrainingMode
public void setTrainingMode(AnalysisConfig.TrainingMode trainingMode)
-
bindSemanticType
public String bindSemanticType(String unbound)
-
equals
public boolean equals(Object obj)
- Overrides:
equals
in classObject
-
-