Class MultiCandidateGeneratorWrapper
- java.lang.Object
-
- org.elasticsearch.search.suggest.phrase.CandidateGenerator
-
- org.elasticsearch.search.suggest.phrase.MultiCandidateGeneratorWrapper
-
public final class MultiCandidateGeneratorWrapper extends CandidateGenerator
-
-
Constructor Summary
Constructors Constructor Description MultiCandidateGeneratorWrapper(int numCandidates, CandidateGenerator... candidateGenerators)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description DirectCandidateGenerator.CandidatecreateCandidate(BytesRef term, TermStats termStats, double channelScore, boolean userInput)DirectCandidateGenerator.CandidateSetdrawCandidates(DirectCandidateGenerator.CandidateSet set)booleanisKnownWord(BytesRef term)TermStatstermStats(BytesRef term)-
Methods inherited from class org.elasticsearch.search.suggest.phrase.CandidateGenerator
createCandidate, createCandidate, drawCandidates
-
-
-
-
Constructor Detail
-
MultiCandidateGeneratorWrapper
public MultiCandidateGeneratorWrapper(int numCandidates, CandidateGenerator... candidateGenerators)
-
-
Method Detail
-
isKnownWord
public boolean isKnownWord(BytesRef term) throws IOException
- Specified by:
isKnownWordin classCandidateGenerator- Throws:
IOException
-
termStats
public TermStats termStats(BytesRef term) throws IOException
- Specified by:
termStatsin classCandidateGenerator- Throws:
IOException
-
drawCandidates
public DirectCandidateGenerator.CandidateSet drawCandidates(DirectCandidateGenerator.CandidateSet set) throws IOException
- Specified by:
drawCandidatesin classCandidateGenerator- Throws:
IOException
-
createCandidate
public DirectCandidateGenerator.Candidate createCandidate(BytesRef term, TermStats termStats, double channelScore, boolean userInput) throws IOException
- Specified by:
createCandidatein classCandidateGenerator- Throws:
IOException
-
-