public enum ComparisonType extends Enum<ComparisonType>
Enum Constant and Description |
---|
CONTAINS
Simple substring comparison
|
DAMERAU_LEVENSHTEIN
String comparison using the Damerau-Levenshtein algorithm
|
EXACT_MATCH
Simple string comparision
|
JARO
String comparison using the Jaro algorithm
|
JARO_WINKLER
String comparison using the Jaro-Winkler algorithm
|
LEVENSHTEIN
String comparison using Levenshtein distance
|
POSITIONAL_QGRAM
String comparison using position Q-grams
|
QGRAM
String comparison using Q-grams
|
SHORTHAND
String comparision based on shorthand
|
Modifier and Type | Method and Description |
---|---|
String |
getAbbreviation()
Gets the abbreviation used for the comparison type.
|
String |
getDisplayName()
Gets a user-friendly name of the comparison type.
|
PropertyDefinition[] |
getPropertyDefinitions()
Gets the definitions for the comparison's
required properties.
|
boolean |
hasProperties()
Indicates whether the comparison requires additional properties.
|
String |
toString() |
static ComparisonType |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static ComparisonType[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final ComparisonType CONTAINS
public static final ComparisonType DAMERAU_LEVENSHTEIN
public static final ComparisonType EXACT_MATCH
public static final ComparisonType JARO
public static final ComparisonType JARO_WINKLER
public static final ComparisonType LEVENSHTEIN
public static final ComparisonType QGRAM
public static final ComparisonType POSITIONAL_QGRAM
public static final ComparisonType SHORTHAND
public static ComparisonType[] values()
for (ComparisonType c : ComparisonType.values()) System.out.println(c);
public static ComparisonType valueOf(String name)
name
- the name of the enum constant to be returned.IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is nullpublic boolean hasProperties()
true
if additional properties are required,
false
otherwisepublic String getDisplayName()
public String getAbbreviation()
public PropertyDefinition[] getPropertyDefinitions()
null
.public String toString()
toString
in class Enum<ComparisonType>
Copyright © 2020 Actian Corporation. All rights reserved.