public abstract class LogicalTypeInfinite extends LogicalTypeCode
random
defn, headerPatterns, locale, priority, threshold
Constructor and Description |
---|
LogicalTypeInfinite(PluginDefinition plugin) |
Modifier and Type | Method and Description |
---|---|
abstract boolean |
isCandidate(java.lang.String trimmed,
java.lang.StringBuilder compressed,
int[] charCounts,
int[] lastIndex)
A fast check to see if the supplied String might be an instance of this logical type?
|
boolean |
isClosed()
Does the set of members enumerated reflect the entire set.
|
boolean |
isRegExpComplete()
Is the returned Regular Expression a true representation of the Logical Type.
|
initialize, seed
compareTo, getBaseType, getConfidence, getDescription, getHeaderConfidence, getPriority, getQualifier, getRegExp, getThreshold, isValid, isValidSet, setThreshold
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
nextRandom
public LogicalTypeInfinite(PluginDefinition plugin)
public abstract boolean isCandidate(java.lang.String trimmed, java.lang.StringBuilder compressed, int[] charCounts, int[] lastIndex)
trimmed
- String to checkcompressed
- A compressed representation of the input string (e.g. \d{5} for 20351).charCounts
- An array of occurrence counts for characters in the input (ASCII-only).lastIndex
- An array of the last index where character is located (ASCII-only).public boolean isRegExpComplete()
LogicalType
isRegExpComplete
in class LogicalType
public boolean isClosed()
LogicalType
isClosed
in class LogicalType