public class PluginColor extends LogicalTypeFinite
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
SEMANTIC_TYPE |
maxLength, minLength
defn, locale, priority, threshold
Constructor and Description |
---|
PluginColor() |
Modifier and Type | Method and Description |
---|---|
java.util.Set<java.lang.String> |
getMembers() |
java.lang.String |
getQualifier()
The user-friendly name of the Qualifier.
|
java.lang.String |
getRegExp()
The Regular Expression that most closely matches (See
LogicalType.isRegExpComplete() ) this Logical Type. |
java.lang.String |
isValidSet(java.lang.String dataStreamName,
long matchCount,
long realSamples,
StringFacts stringFacts,
java.util.Map<java.lang.String,java.lang.Long> cardinality,
java.util.Map<java.lang.String,java.lang.Long> outliers)
Given the data to date as embodied by the arguments return null if we think this is an instance
of this logical type, if not return a new suitable pattern.
|
java.lang.String |
nextRandom() |
getBaseType, getMaxLength, getMinLength, getSize, initialize, isClosed, isRegExpComplete, isValid
newInstance, seed
compareTo, getConfidence, getThreshold, setThreshold
public static final java.lang.String SEMANTIC_TYPE
public java.util.Set<java.lang.String> getMembers()
getMembers
in class LogicalTypeFinite
public java.lang.String nextRandom()
public java.lang.String getQualifier()
LogicalType
getQualifier
in class LogicalType
public java.lang.String getRegExp()
LogicalType
LogicalType.isRegExpComplete()
) this Logical Type.
Note: All valid matches will match this RE, but the inverse is not necessarily true.getRegExp
in class LogicalType
public java.lang.String isValidSet(java.lang.String dataStreamName, long matchCount, long realSamples, StringFacts stringFacts, java.util.Map<java.lang.String,java.lang.Long> cardinality, java.util.Map<java.lang.String,java.lang.Long> outliers)
LogicalType
isValidSet
in class LogicalType
dataStreamName
- The name of the Data StreammatchCount
- Number of samples that match so far (as determined by isValid()realSamples
- Number of real (i.e. non-blank and non-null) samples that we have processed so far.stringFacts
- Facts (min, max, sum) for the analysis to date (optional - i.e. maybe null)cardinality
- Cardinality set, up to the maximum maintainedoutliers
- Outlier set, up to the maximum maintained