Class SmoothingModel

java.lang.Object
org.opensearch.search.suggest.phrase.SmoothingModel
All Implemented Interfaces:
NamedWriteable, Writeable, org.opensearch.common.xcontent.ToXContent, org.opensearch.common.xcontent.ToXContentFragment
Direct Known Subclasses:
Laplace, LinearInterpolation, StupidBackoff

public abstract class SmoothingModel
extends java.lang.Object
implements NamedWriteable, org.opensearch.common.xcontent.ToXContentFragment
  • Nested Class Summary

    Nested classes/interfaces inherited from interface org.opensearch.common.xcontent.ToXContent

    org.opensearch.common.xcontent.ToXContent.DelegatingMapParams, org.opensearch.common.xcontent.ToXContent.MapParams, org.opensearch.common.xcontent.ToXContent.Params

    Nested classes/interfaces inherited from interface org.opensearch.common.io.stream.Writeable

    Writeable.Reader<V>, Writeable.Writer<V>
  • Field Summary

    Fields inherited from interface org.opensearch.common.xcontent.ToXContent

    EMPTY_PARAMS
  • Constructor Summary

    Constructors 
    Constructor Description
    SmoothingModel()  
  • Method Summary

    Modifier and Type Method Description
    abstract WordScorer.WordScorerFactory buildWordScorerFactory()  
    protected abstract boolean doEquals​(SmoothingModel other)
    subtype specific implementation of "equals".
    protected abstract int doHashCode()  
    boolean equals​(java.lang.Object obj)  
    static SmoothingModel fromXContent​(org.opensearch.common.xcontent.XContentParser parser)  
    int hashCode()  
    protected abstract org.opensearch.common.xcontent.XContentBuilder innerToXContent​(org.opensearch.common.xcontent.XContentBuilder builder, org.opensearch.common.xcontent.ToXContent.Params params)  
    org.opensearch.common.xcontent.XContentBuilder toXContent​(org.opensearch.common.xcontent.XContentBuilder builder, org.opensearch.common.xcontent.ToXContent.Params params)  

    Methods inherited from class java.lang.Object

    clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait

    Methods inherited from interface org.opensearch.common.io.stream.NamedWriteable

    getWriteableName

    Methods inherited from interface org.opensearch.common.xcontent.ToXContentFragment

    isFragment

    Methods inherited from interface org.opensearch.common.io.stream.Writeable

    writeTo
  • Constructor Details

  • Method Details

    • toXContent

      public org.opensearch.common.xcontent.XContentBuilder toXContent​(org.opensearch.common.xcontent.XContentBuilder builder, org.opensearch.common.xcontent.ToXContent.Params params) throws java.io.IOException
      Specified by:
      toXContent in interface org.opensearch.common.xcontent.ToXContent
      Throws:
      java.io.IOException
    • equals

      public final boolean equals​(java.lang.Object obj)
      Overrides:
      equals in class java.lang.Object
    • hashCode

      public final int hashCode()
      Overrides:
      hashCode in class java.lang.Object
    • doHashCode

      protected abstract int doHashCode()
    • fromXContent

      public static SmoothingModel fromXContent​(org.opensearch.common.xcontent.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 org.opensearch.common.xcontent.XContentBuilder innerToXContent​(org.opensearch.common.xcontent.XContentBuilder builder, org.opensearch.common.xcontent.ToXContent.Params params) throws java.io.IOException
      Throws:
      java.io.IOException