Package com.intuit.fuzzymatcher.domain
Class Document
- java.lang.Object
-
- com.intuit.fuzzymatcher.domain.Document
-
- All Implemented Interfaces:
Matchable
public class Document extends Object implements Matchable
The primary object for matching. The required attribute is a unique key and elements
Configurable attributes
- elements - A set of Element object to match against
- threshold - Value above which documents are considered a match, default 0.5
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classDocument.Builder
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(Object o)longgetChildCount(Matchable other)java.util.stream.Stream<Element>getDistinctElements()java.util.stream.Stream<Element>getDistinctNonEmptyElements()Set<Element>getElements()StringgetKey()List<Element>getOrderedElements(Set<Element> elements)Set<Element>getPreProcessedElement()java.util.function.BiFunction<Match,List<Score>,Score>getScoringFunction()doublegetThreshold()longgetUnmatchedChildCount(Matchable other)doublegetWeight()inthashCode()BooleanisSource()voidsetSource(Boolean source)StringtoString()
-
-
-
Method Detail
-
getKey
public String getKey()
-
getThreshold
public double getThreshold()
-
getDistinctElements
public java.util.stream.Stream<Element> getDistinctElements()
-
getDistinctNonEmptyElements
public java.util.stream.Stream<Element> getDistinctNonEmptyElements()
-
getChildCount
public long getChildCount(Matchable other)
- Specified by:
getChildCountin interfaceMatchable
-
getUnmatchedChildCount
public long getUnmatchedChildCount(Matchable other)
- Specified by:
getUnmatchedChildCountin interfaceMatchable
-
getScoringFunction
public java.util.function.BiFunction<Match,List<Score>,Score> getScoringFunction()
- Specified by:
getScoringFunctionin interfaceMatchable
-
isSource
public Boolean isSource()
-
setSource
public void setSource(Boolean source)
-
-