public static class Comparisons.TextWithMaxDistanceComparison extends Comparisons.TextComparison
Comparisons.TextComparison
that must be satisfied within a certain number of text tokens.Constructor and Description |
---|
TextWithMaxDistanceComparison(List<String> tokens,
int maxDistance,
String tokenizerName,
String fallbackTokenizerName) |
TextWithMaxDistanceComparison(String tokens,
int maxDistance,
String tokenizerName,
String fallbackTokenizerName) |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object o) |
int |
getMaxDistance()
Get the maximum distance allowed between tokens in the source document allowed by
this filter.
|
int |
hashCode() |
int |
planHash()
Return a hash similar to
hashCode , but with the additional guarantee that is is stable across JVMs. |
String |
toString() |
eval, getComparand, getFallbackTokenizerName, getTokenizerName, getType, typelessString, validate
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
getComparand
combineHashes, iterablePlanHash, objectPlanHash, objectsPlanHash, planHash, planHash, planHashUnordered, stringHashUnordered
public TextWithMaxDistanceComparison(@Nonnull String tokens, int maxDistance, @Nullable String tokenizerName, @Nonnull String fallbackTokenizerName)
public int getMaxDistance()
public boolean equals(Object o)
equals
in class Comparisons.TextComparison
public int planHash()
PlanHashable
hashCode
, but with the additional guarantee that is is stable across JVMs.planHash
in interface PlanHashable
planHash
in class Comparisons.TextComparison
public int hashCode()
hashCode
in class Comparisons.TextComparison
@Nonnull public String toString()
toString
in class Comparisons.TextComparison