public static class XAnalyzingSuggester.XBuilder extends Object
| コンストラクタと説明 |
|---|
XBuilder(int maxSurfaceFormsPerAnalyzedForm,
boolean hasPayloads,
int payloadSep) |
| 修飾子とタイプ | メソッドと説明 |
|---|---|
void |
addSurface(org.apache.lucene.util.BytesRef surface,
org.apache.lucene.util.BytesRef payload,
long cost) |
org.apache.lucene.util.fst.FST<org.apache.lucene.util.fst.PairOutputs.Pair<Long,org.apache.lucene.util.BytesRef>> |
build() |
void |
finishTerm(long defaultWeight) |
boolean |
hasPayloads() |
int |
maxSurfaceFormsPerAnalyzedForm() |
void |
startTerm(org.apache.lucene.util.BytesRef analyzed) |
public XBuilder(int maxSurfaceFormsPerAnalyzedForm,
boolean hasPayloads,
int payloadSep)
public void startTerm(org.apache.lucene.util.BytesRef analyzed)
public void addSurface(org.apache.lucene.util.BytesRef surface,
org.apache.lucene.util.BytesRef payload,
long cost)
throws IOException
IOExceptionpublic void finishTerm(long defaultWeight)
throws IOException
IOExceptionpublic org.apache.lucene.util.fst.FST<org.apache.lucene.util.fst.PairOutputs.Pair<Long,org.apache.lucene.util.BytesRef>> build() throws IOException
IOExceptionpublic boolean hasPayloads()
public int maxSurfaceFormsPerAnalyzedForm()
Copyright © 2009–2016. All rights reserved.