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.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.xcontent.ToXContent
EMPTY_PARAMS
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionabstract WordScorer.WordScorerFactory
protected abstract boolean
doEquals
(SmoothingModel other) subtype specific implementation of "equals".protected abstract int
final boolean
static SmoothingModel
fromXContent
(XContentParser parser) final int
hashCode()
protected abstract XContentBuilder
innerToXContent
(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, wait
Methods inherited from interface org.elasticsearch.xcontent.ToXContentFragment
isFragment
Methods 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:
toXContent
in 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
-