Class CandidateGenerator

    • Constructor Detail

      • CandidateGenerator

        public CandidateGenerator()
    • Method Detail

      • isKnownWord

        public abstract boolean isKnownWord​(org.apache.lucene.util.BytesRef term)
                                     throws java.io.IOException
        Throws:
        java.io.IOException
      • frequency

        public abstract long frequency​(org.apache.lucene.util.BytesRef term)
                                throws java.io.IOException
        Throws:
        java.io.IOException
      • createCandidate

        public DirectCandidateGenerator.Candidate createCandidate​(org.apache.lucene.util.BytesRef term,
                                                                  boolean userInput)
                                                           throws java.io.IOException
        Throws:
        java.io.IOException
      • createCandidate

        public DirectCandidateGenerator.Candidate createCandidate​(org.apache.lucene.util.BytesRef term,
                                                                  long frequency,
                                                                  double channelScore)
                                                           throws java.io.IOException
        Throws:
        java.io.IOException
      • createCandidate

        public abstract DirectCandidateGenerator.Candidate createCandidate​(org.apache.lucene.util.BytesRef term,
                                                                           long frequency,
                                                                           double channelScore,
                                                                           boolean userInput)
                                                                    throws java.io.IOException
        Throws:
        java.io.IOException