public final class MultiCandidateGeneratorWrapper extends CandidateGenerator
Constructor and Description |
---|
MultiCandidateGeneratorWrapper(int numCandidates,
CandidateGenerator... candidateGenerators) |
Modifier and Type | Method and Description |
---|---|
DirectCandidateGenerator.Candidate |
createCandidate(org.apache.lucene.util.BytesRef term,
long frequency,
double channelScore,
boolean userInput) |
DirectCandidateGenerator.CandidateSet |
drawCandidates(DirectCandidateGenerator.CandidateSet set) |
long |
frequency(org.apache.lucene.util.BytesRef term) |
boolean |
isKnownWord(org.apache.lucene.util.BytesRef term) |
createCandidate, createCandidate, drawCandidates
public MultiCandidateGeneratorWrapper(int numCandidates, CandidateGenerator... candidateGenerators)
public boolean isKnownWord(org.apache.lucene.util.BytesRef term) throws IOException
isKnownWord
in class CandidateGenerator
IOException
public long frequency(org.apache.lucene.util.BytesRef term) throws IOException
frequency
in class CandidateGenerator
IOException
public DirectCandidateGenerator.CandidateSet drawCandidates(DirectCandidateGenerator.CandidateSet set) throws IOException
drawCandidates
in class CandidateGenerator
IOException
public DirectCandidateGenerator.Candidate createCandidate(org.apache.lucene.util.BytesRef term, long frequency, double channelScore, boolean userInput) throws IOException
createCandidate
in class CandidateGenerator
IOException
Copyright © 2009–2016. All rights reserved.