Package com.cobber.fta
Class Facts
- Object
-
- com.cobber.fta.Facts
-
public class Facts extends Object
A set of facts for the Analysis in question.
-
-
Field Summary
Fields Modifier and Type Field Description protected Set<String>
bottomK
The bottom 10 values.protected double
currentM2
protected double
currentMean
protected char
decimalSeparator
Get the Decimal Separator used to interpret Doubles.protected Double
keyConfidence
The percentage confidence (0-1.0) that the observed stream is a Key field.protected boolean
leadingWhiteSpace
Do any elements have leading White Space?protected long
leadingZeroCount
The number of leading zeros seen in sample set.String
maxBoolean
double
maxDouble
java.time.LocalDate
maxLocalDate
java.time.LocalDateTime
maxLocalDateTime
java.time.LocalTime
maxLocalTime
long
maxLong
java.time.OffsetDateTime
maxOffsetDateTime
int
maxRawLength
The maximum length (not trimmed) - Only relevant for Numeric, Boolean and String.String
maxString
protected String
maxValue
The maximum value observed.java.time.ZonedDateTime
maxZonedDateTime
protected Double
mean
The mean of the observed values (Numeric types only).String
minBoolean
double
minDouble
java.time.LocalDate
minLocalDate
java.time.LocalDateTime
minLocalDateTime
java.time.LocalTime
minLocalTime
long
minLong
java.time.OffsetDateTime
minOffsetDateTime
int
minRawLength
The minimum length (not trimmed) - Only relevant for Numeric, Boolean and String.String
minString
protected String
minValue
The minimum value observed.java.time.ZonedDateTime
minZonedDateTime
protected boolean
multiline
Are any elements multi-line?TopBottomK<Double,Double>
tbDouble
TopBottomK<java.time.LocalDate,java.time.chrono.ChronoLocalDate>
tbLocalDate
TopBottomK<java.time.LocalDateTime,java.time.chrono.ChronoLocalDateTime<?>>
tbLocalDateTime
TopBottomK<java.time.LocalTime,java.time.LocalTime>
tbLocalTime
TopBottomK<Long,Long>
tbLong
TopBottomK<java.time.OffsetDateTime,java.time.OffsetDateTime>
tbOffsetDateTime
TopBottomK<String,String>
tbString
TopBottomK<java.time.ZonedDateTime,java.time.chrono.ChronoZonedDateTime<?>>
tbZonedDateTime
protected Set<String>
topK
The top 10 values.protected boolean
trailingWhiteSpace
Do any elements have trailing White Space?protected Double
uniqueness
What is the uniqueness percentage of this column.protected Double
variance
The variance of the observed values (Numeric types only).
-
Constructor Summary
Constructors Constructor Description Facts()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Facts
calculateFacts(com.cobber.fta.PatternInfo matchPatternInfo, long matchCount)
void
setCollectStatistics(boolean collectStatistics)
void
setLocale(Locale locale)
-
-
-
Field Detail
-
minRawLength
public int minRawLength
The minimum length (not trimmed) - Only relevant for Numeric, Boolean and String. Note: For String and Boolean types this length includes any whitespace.
-
maxRawLength
public int maxRawLength
The maximum length (not trimmed) - Only relevant for Numeric, Boolean and String. Note: For String and Boolean types this length includes any whitespace.
-
multiline
protected boolean multiline
Are any elements multi-line?
-
leadingWhiteSpace
protected boolean leadingWhiteSpace
Do any elements have leading White Space?
-
trailingWhiteSpace
protected boolean trailingWhiteSpace
Do any elements have trailing White Space?
-
keyConfidence
protected Double keyConfidence
The percentage confidence (0-1.0) that the observed stream is a Key field.
-
leadingZeroCount
protected long leadingZeroCount
The number of leading zeros seen in sample set. Only relevant for type Long.
-
decimalSeparator
protected char decimalSeparator
Get the Decimal Separator used to interpret Doubles. Only relevant for type double.
-
uniqueness
protected Double uniqueness
What is the uniqueness percentage of this column.
-
minBoolean
public String minBoolean
-
maxBoolean
public String maxBoolean
-
minLong
public long minLong
-
maxLong
public long maxLong
-
tbLong
public final TopBottomK<Long,Long> tbLong
-
minDouble
public double minDouble
-
maxDouble
public double maxDouble
-
tbDouble
public final TopBottomK<Double,Double> tbDouble
-
minString
public String minString
-
maxString
public String maxString
-
tbString
public final TopBottomK<String,String> tbString
-
minLocalDate
public java.time.LocalDate minLocalDate
-
maxLocalDate
public java.time.LocalDate maxLocalDate
-
tbLocalDate
public final TopBottomK<java.time.LocalDate,java.time.chrono.ChronoLocalDate> tbLocalDate
-
minLocalTime
public java.time.LocalTime minLocalTime
-
maxLocalTime
public java.time.LocalTime maxLocalTime
-
tbLocalTime
public final TopBottomK<java.time.LocalTime,java.time.LocalTime> tbLocalTime
-
minLocalDateTime
public java.time.LocalDateTime minLocalDateTime
-
maxLocalDateTime
public java.time.LocalDateTime maxLocalDateTime
-
tbLocalDateTime
public final TopBottomK<java.time.LocalDateTime,java.time.chrono.ChronoLocalDateTime<?>> tbLocalDateTime
-
minOffsetDateTime
public java.time.OffsetDateTime minOffsetDateTime
-
maxOffsetDateTime
public java.time.OffsetDateTime maxOffsetDateTime
-
tbOffsetDateTime
public final TopBottomK<java.time.OffsetDateTime,java.time.OffsetDateTime> tbOffsetDateTime
-
minZonedDateTime
public java.time.ZonedDateTime minZonedDateTime
-
maxZonedDateTime
public java.time.ZonedDateTime maxZonedDateTime
-
tbZonedDateTime
public final TopBottomK<java.time.ZonedDateTime,java.time.chrono.ChronoZonedDateTime<?>> tbZonedDateTime
-
currentM2
protected double currentM2
-
currentMean
protected double currentMean
-
minValue
protected String minValue
The minimum value observed.
-
maxValue
protected String maxValue
The maximum value observed.
-
mean
protected Double mean
The mean of the observed values (Numeric types only).
-
variance
protected Double variance
The variance of the observed values (Numeric types only).
-
topK
protected Set<String> topK
The top 10 values.
-
bottomK
protected Set<String> bottomK
The bottom 10 values.
-
-
Method Detail
-
setLocale
public void setLocale(Locale locale)
-
setCollectStatistics
public void setCollectStatistics(boolean collectStatistics)
-
calculateFacts
public Facts calculateFacts(com.cobber.fta.PatternInfo matchPatternInfo, long matchCount)
-
-