Class StringDistanceFunction


  • public class StringDistanceFunction
    extends org.apache.lucene.queries.function.ValueSource
    • Field Summary

      Fields 
      Modifier and Type Field Description
      protected org.apache.lucene.search.spell.StringDistance dist  
      protected org.apache.lucene.queries.function.ValueSource str1  
      protected org.apache.lucene.queries.function.ValueSource str2  
    • Constructor Summary

      Constructors 
      Constructor Description
      StringDistanceFunction​(org.apache.lucene.queries.function.ValueSource str1, org.apache.lucene.queries.function.ValueSource str2, org.apache.lucene.search.spell.StringDistance measure)  
    • Field Detail

      • str1

        protected org.apache.lucene.queries.function.ValueSource str1
      • str2

        protected org.apache.lucene.queries.function.ValueSource str2
      • dist

        protected org.apache.lucene.search.spell.StringDistance dist
    • Constructor Detail

      • StringDistanceFunction

        public StringDistanceFunction​(org.apache.lucene.queries.function.ValueSource str1,
                                      org.apache.lucene.queries.function.ValueSource str2,
                                      org.apache.lucene.search.spell.StringDistance measure)
    • Method Detail

      • getValues

        public org.apache.lucene.queries.function.FunctionValues getValues​(Map context,
                                                                           org.apache.lucene.index.LeafReaderContext readerContext)
                                                                    throws IOException
        Specified by:
        getValues in class org.apache.lucene.queries.function.ValueSource
        Throws:
        IOException
      • description

        public String description()
        Specified by:
        description in class org.apache.lucene.queries.function.ValueSource
      • equals

        public boolean equals​(Object o)
        Specified by:
        equals in class org.apache.lucene.queries.function.ValueSource
      • hashCode

        public int hashCode()
        Specified by:
        hashCode in class org.apache.lucene.queries.function.ValueSource