Package com.cobber.fta
Enum TextAnalyzer.Feature
- Object
-
- Enum<TextAnalyzer.Feature>
-
- Feature
-
- All Implemented Interfaces:
java.io.Serializable
,Comparable<TextAnalyzer.Feature>
- Enclosing class:
- TextAnalyzer
public static enum TextAnalyzer.Feature extends Enum<TextAnalyzer.Feature>
Enumeration that defines all on/off features for parsers.
-
-
Enum Constant Summary
Enum Constants Enum Constant Description COLLECT_STATISTICS
Feature that determines whether to collect statistics or not.DEFAULT_SEMANTIC_TYPES
Feature that indicates whether to enable the built-in Semantic Types.DISTRIBUTIONS
Indicate whether we should track distributions (Quantiles/Histograms).FORMAT_DETECTION
Feature that indicates whether to attempt to detect the stream format (HTML, XML, JSON, BASE64, OTHER).LEGACY_JSON
Indicate whether we should generate Legacy JSON (compatible with FTA 11.X).LENGTH_QUALIFIER
Indicate whether we should qualify the size of the RegExp.NO_ABBREVIATION_PUNCTUATION
Indicate whether we should Month Abbreviations (without punctuation), for instance the locale for Canada uses 'AUG.' for the month abbreviation, and similarly for the AM/PM string which are defined as A.M and P.M.NULL_AS_TEXT
Indicate whether we should treat "NULL" (and similar) as Null values.NUMERIC_WIDENING
Feature that if enabled return a double if we see a set of integers followed by some doubles call it a double.
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static TextAnalyzer.Feature
valueOf(String name)
Returns the enum constant of this type with the specified name.static TextAnalyzer.Feature[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
COLLECT_STATISTICS
public static final TextAnalyzer.Feature COLLECT_STATISTICS
Feature that determines whether to collect statistics or not. Feature is enabled by default.
-
DEFAULT_SEMANTIC_TYPES
public static final TextAnalyzer.Feature DEFAULT_SEMANTIC_TYPES
Feature that indicates whether to enable the built-in Semantic Types. Feature is enabled by default.
-
DISTRIBUTIONS
public static final TextAnalyzer.Feature DISTRIBUTIONS
Indicate whether we should track distributions (Quantiles/Histograms). Feature is enabled by default.
-
FORMAT_DETECTION
public static final TextAnalyzer.Feature FORMAT_DETECTION
Feature that indicates whether to attempt to detect the stream format (HTML, XML, JSON, BASE64, OTHER). Feature is disabled by default.
-
LEGACY_JSON
public static final TextAnalyzer.Feature LEGACY_JSON
Indicate whether we should generate Legacy JSON (compatible with FTA 11.X).
-
LENGTH_QUALIFIER
public static final TextAnalyzer.Feature LENGTH_QUALIFIER
Indicate whether we should qualify the size of the RegExp. Feature is enabled by default.
-
NO_ABBREVIATION_PUNCTUATION
public static final TextAnalyzer.Feature NO_ABBREVIATION_PUNCTUATION
Indicate whether we should Month Abbreviations (without punctuation), for instance the locale for Canada uses 'AUG.' for the month abbreviation, and similarly for the AM/PM string which are defined as A.M and P.M. Feature is enabled by default.
-
NULL_AS_TEXT
public static final TextAnalyzer.Feature NULL_AS_TEXT
Indicate whether we should treat "NULL" (and similar) as Null values. Feature is enabled by default.
-
NUMERIC_WIDENING
public static final TextAnalyzer.Feature NUMERIC_WIDENING
Feature that if enabled return a double if we see a set of integers followed by some doubles call it a double. Feature is enabled by default.
-
-
Method Detail
-
values
public static TextAnalyzer.Feature[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (TextAnalyzer.Feature c : TextAnalyzer.Feature.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static TextAnalyzer.Feature valueOf(String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
name
- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is null
-
-