public class TextAnalysisResult
extends java.lang.Object
TextAnalyzer
analysis of a data stream.Modifier and Type | Method and Description |
---|---|
java.lang.String |
asJSON(boolean pretty,
int verbose)
A JSON representation of the Analysis.
|
long |
getBlankCount()
Get the count of all blank samples.
|
int |
getCardinality()
Get the cardinality for the current data stream.
|
java.util.Map<java.lang.String,java.lang.Long> |
getCardinalityDetails()
Get the cardinality details for the current data stream.
|
double |
getConfidence()
Confidence in the type classification.
|
DateTimeParser.DateResolutionMode |
getDateResolutionMode()
Get the DateResolutionMode actually used to process Dates.
|
char |
getDecimalSeparator()
Get the Decimal Separator used to interpret Doubles.
|
boolean |
getLeadingWhiteSpace()
Does the set of elements contain any elements with leading White Space?
|
long |
getLeadingZeroCount()
Get the count of all samples with leading zeros (Type long only).
|
long |
getMatchCount()
Get the count of all (non-blank/non-null) samples that matched the determined type.
|
int |
getMaxLength()
Get the maximum length for Numeric, Boolean and String.
|
java.lang.String |
getMaxValue()
Get the maximum value for Numeric, Boolean and String.
|
int |
getMinLength()
Get the minimum length for Numeric, Boolean and String.
|
java.lang.String |
getMinValue()
Get the minimum value for Numeric, Boolean and String types.
|
boolean |
getMultiline()
Does the set of elements contain any multi-line elements?
|
java.lang.String |
getName()
Name of the data stream being analyzed.
|
long |
getNullCount()
Get the count of all null samples.
|
int |
getOutlierCount()
Get the number of distinct outliers for the current data stream.
|
java.util.Map<java.lang.String,java.lang.Long> |
getOutlierDetails()
Get the outlier details for the current data stream.
|
java.lang.String |
getRegExp()
Get Regular Expression that reflects the data stream.
|
long |
getSampleCount()
Get the count of all samples seen.
|
java.lang.String |
getSum()
Get the sum for Numeric types (Long, Double).
|
boolean |
getTrailingWhiteSpace()
Does the set of elements contain any elements with trailing White Space?
|
PatternInfo.Type |
getType()
Get 'Type' as determined by training to date.
|
java.lang.String |
getTypeQualifier()
Get the optional Type Qualifier.
|
boolean |
isKey()
Is this field a possible key?
|
boolean |
isLogicalType()
Is this a Logical Type?
|
boolean |
statisticsEnabled()
Was statistics collection enabled for this analysis.
|
java.lang.String |
toString()
A String representation of the Analysis.
|
public java.lang.String getName()
public double getConfidence()
public PatternInfo.Type getType()
public java.lang.String getTypeQualifier()
public boolean isLogicalType()
public java.lang.String getMinValue()
public java.lang.String getMaxValue()
public int getMinLength()
public int getMaxLength()
public char getDecimalSeparator()
public DateTimeParser.DateResolutionMode getDateResolutionMode()
public java.lang.String getSum()
public java.lang.String getRegExp()
public long getMatchCount()
public boolean getLeadingWhiteSpace()
public boolean getTrailingWhiteSpace()
public boolean getMultiline()
public long getSampleCount()
public long getNullCount()
public long getBlankCount()
public long getLeadingZeroCount()
public int getCardinality()
setMaxCardinality()
method in TextAnalyzer.
Note: The cardinality returned is the cardinality of the valid samples. For example, if a date is invalid it will not
be included in the cardinality.
Note: This is not a complete cardinality analysis unless the cardinality of the
data stream is less than the maximum cardinality (Default: 12000).
See also setMaxCardinality()
method in TextAnalyzer.public java.util.Map<java.lang.String,java.lang.Long> getCardinalityDetails()
public int getOutlierCount()
setMaxOutliers()
method in TextAnalyzer.
Note: This is not a complete outlier analysis unless the outlier count of the
data stream is less than the maximum outlier count (Default: 50).
See also setMaxOutliers()
method in TextAnalyzer.public java.util.Map<java.lang.String,java.lang.Long> getOutlierDetails()
public boolean isKey()
public boolean statisticsEnabled()
public java.lang.String toString()
toString
in class java.lang.Object
public java.lang.String asJSON(boolean pretty, int verbose)
pretty
- If set, add minimal whitespace formatting.verbose
- If set provides additional details on the core and Outlier sets.