Class SmoothingModel
- java.lang.Object
-
- org.elasticsearch.search.suggest.phrase.SmoothingModel
-
- All Implemented Interfaces:
NamedWriteable,Writeable,ToXContent,ToXContentFragment
- Direct Known Subclasses:
Laplace,LinearInterpolation,StupidBackoff
public abstract class SmoothingModel extends java.lang.Object implements NamedWriteable, ToXContentFragment
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface org.elasticsearch.common.xcontent.ToXContent
ToXContent.DelegatingMapParams, ToXContent.MapParams, ToXContent.Params
-
Nested classes/interfaces inherited from interface org.elasticsearch.common.io.stream.Writeable
Writeable.Reader<V>, Writeable.Writer<V>
-
-
Field Summary
-
Fields inherited from interface org.elasticsearch.common.xcontent.ToXContent
EMPTY_PARAMS
-
-
Constructor Summary
Constructors Constructor Description SmoothingModel()
-
Method Summary
Modifier and Type Method Description abstract WordScorer.WordScorerFactorybuildWordScorerFactory()protected abstract booleandoEquals(SmoothingModel other)subtype specific implementation of "equals".protected abstract intdoHashCode()booleanequals(java.lang.Object obj)static SmoothingModelfromXContent(XContentParser parser)inthashCode()protected abstract XContentBuilderinnerToXContent(XContentBuilder builder, ToXContent.Params params)XContentBuildertoXContent(XContentBuilder builder, ToXContent.Params params)-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.elasticsearch.common.io.stream.NamedWriteable
getWriteableName
-
Methods inherited from interface org.elasticsearch.common.xcontent.ToXContentFragment
isFragment
-
-
-
-
Method Detail
-
toXContent
public XContentBuilder toXContent(XContentBuilder builder, ToXContent.Params params) throws java.io.IOException
- Specified by:
toXContentin interfaceToXContent- Throws:
java.io.IOException
-
equals
public final boolean equals(java.lang.Object obj)
- Overrides:
equalsin classjava.lang.Object
-
hashCode
public final int hashCode()
- Overrides:
hashCodein classjava.lang.Object
-
doHashCode
protected abstract int doHashCode()
-
fromXContent
public static SmoothingModel fromXContent(XContentParser parser) throws java.io.IOException
- Throws:
java.io.IOException
-
buildWordScorerFactory
public abstract WordScorer.WordScorerFactory buildWordScorerFactory()
-
doEquals
protected abstract boolean doEquals(SmoothingModel other)
subtype specific implementation of "equals".
-
innerToXContent
protected abstract XContentBuilder innerToXContent(XContentBuilder builder, ToXContent.Params params) throws java.io.IOException
- Throws:
java.io.IOException
-
-