Package org.apache.lucene.analysis.morph
Class ConnectionCostsWriter<T extends ConnectionCosts>
java.lang.Object
org.apache.lucene.analysis.morph.ConnectionCostsWriter<T>
Writes connection costs
-
Constructor Summary
ConstructorsConstructorDescriptionConnectionCostsWriter
(Class<T> implClazz, int forwardSize, int backwardSize) Constructor for building. -
Method Summary
-
Constructor Details
-
ConnectionCostsWriter
Constructor for building. TODO: remove write access
-
-
Method Details
-
add
public void add(int forwardId, int backwardId, int cost) -
write
public void write(Path baseDir, String connectionCostsCodecHeader, int dictCodecVersion) throws IOException - Throws:
IOException
-