Module org.elasticsearch.server
Class SmoothingModel
java.lang.Object
org.elasticsearch.search.suggest.phrase.SmoothingModel
- All Implemented Interfaces:
NamedWriteable,VersionedNamedWriteable,Writeable,ToXContent,ToXContentFragment
- Direct Known Subclasses:
Laplace,LinearInterpolation,StupidBackoff
public abstract class SmoothingModel
extends Object
implements VersionedNamedWriteable, ToXContentFragment
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.elasticsearch.xcontent.ToXContent
ToXContent.DelegatingMapParams, ToXContent.MapParams, ToXContent.ParamsNested 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.xcontent.ToXContent
EMPTY, EMPTY_PARAMS -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionabstract WordScorer.WordScorerFactoryprotected abstract booleandoEquals(SmoothingModel other) subtype specific implementation of "equals".protected abstract intfinal booleanstatic SmoothingModelfromXContent(XContentParser parser) final inthashCode()protected abstract XContentBuilderinnerToXContent(XContentBuilder builder, ToXContent.Params params) toXContent(XContentBuilder builder, ToXContent.Params params) Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.elasticsearch.xcontent.ToXContentFragment
isFragmentMethods inherited from interface org.elasticsearch.common.io.stream.VersionedNamedWriteable
getMinimalSupportedVersion, getWriteableName
-
Constructor Details
-
SmoothingModel
public SmoothingModel()
-
-
Method Details
-
toXContent
public XContentBuilder toXContent(XContentBuilder builder, ToXContent.Params params) throws IOException - Specified by:
toXContentin interfaceToXContent- Throws:
IOException
-
equals
-
hashCode
public final int hashCode() -
doHashCode
protected abstract int doHashCode() -
fromXContent
- Throws:
IOException
-
buildWordScorerFactory
-
doEquals
subtype specific implementation of "equals". -
innerToXContent
protected abstract XContentBuilder innerToXContent(XContentBuilder builder, ToXContent.Params params) throws IOException - Throws:
IOException
-