Package com.cobber.fta
Class Facts
- java.lang.Object
-
- com.cobber.fta.Facts
-
public class Facts extends java.lang.Object
A set of facts for the Analysis in question.
-
-
Field Summary
Fields Modifier and Type Field Description protected java.util.Set<java.lang.String>
bottomK
The bottom 10 values.protected double
currentM2
protected double
currentMean
protected char
decimalSeparator
Get the Decimal Separator used to interpret Doubles.protected java.lang.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.java.lang.String
maxBoolean
double
maxDouble
java.time.LocalDate
maxLocalDate
java.time.LocalDateTime
maxLocalDateTime
java.time.LocalTime
maxLocalTime
long
maxLong
java.time.OffsetDateTime
maxOffsetDateTime
protected int
maxRawLength
The maximum length (not trimmed) - Only relevant for Numeric, Boolean and String.java.lang.String
maxString
protected java.lang.String
maxValue
The maximum value observed.java.time.ZonedDateTime
maxZonedDateTime
protected java.lang.Double
mean
The mean of the observed values (Numeric types only).java.lang.String
minBoolean
double
minDouble
java.time.LocalDate
minLocalDate
java.time.LocalDateTime
minLocalDateTime
java.time.LocalTime
minLocalTime
long
minLong
java.time.OffsetDateTime
minOffsetDateTime
protected int
minRawLength
The minimum length (not trimmed) - Only relevant for Numeric, Boolean and String.java.lang.String
minString
protected java.lang.String
minValue
The minimum value observed.java.time.ZonedDateTime
minZonedDateTime
protected boolean
multiline
Are any elements multi-line?TopBottomK<java.lang.Double,java.lang.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<java.lang.Long,java.lang.Long>
tbLong
TopBottomK<java.time.OffsetDateTime,java.time.OffsetDateTime>
tbOffsetDateTime
TopBottomK<java.lang.String,java.lang.String>
tbString
TopBottomK<java.time.ZonedDateTime,java.time.chrono.ChronoZonedDateTime<?>>
tbZonedDateTime
protected java.util.Set<java.lang.String>
topK
The top 10 values.protected boolean
trailingWhiteSpace
Do any elements have trailing White Space?protected java.lang.Double
uniqueness
What is the uniqueness percentage of this column.protected java.lang.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(java.util.Locale locale)
-
-
-
Field Detail
-
minRawLength
protected 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
protected 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 java.lang.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 java.lang.Double uniqueness
What is the uniqueness percentage of this column.
-
minBoolean
public java.lang.String minBoolean
-
maxBoolean
public java.lang.String maxBoolean
-
minLong
public long minLong
-
maxLong
public long maxLong
-
tbLong
public final TopBottomK<java.lang.Long,java.lang.Long> tbLong
-
minDouble
public double minDouble
-
maxDouble
public double maxDouble
-
tbDouble
public final TopBottomK<java.lang.Double,java.lang.Double> tbDouble
-
minString
public java.lang.String minString
-
maxString
public java.lang.String maxString
-
tbString
public final TopBottomK<java.lang.String,java.lang.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 java.lang.String minValue
The minimum value observed.
-
maxValue
protected java.lang.String maxValue
The maximum value observed.
-
mean
protected java.lang.Double mean
The mean of the observed values (Numeric types only).
-
variance
protected java.lang.Double variance
The variance of the observed values (Numeric types only).
-
topK
protected java.util.Set<java.lang.String> topK
The top 10 values.
-
bottomK
protected java.util.Set<java.lang.String> bottomK
The bottom 10 values.
-
-
Method Detail
-
setLocale
public void setLocale(java.util.Locale locale)
-
setCollectStatistics
public void setCollectStatistics(boolean collectStatistics)
-
calculateFacts
public Facts calculateFacts(com.cobber.fta.PatternInfo matchPatternInfo, long matchCount)
-
-