Class ConnectionCosts
java.lang.Object
org.apache.lucene.analysis.ko.dict.ConnectionCosts
n-gram connection cost data
-
Nested Class Summary
Nested Classes -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final ByteBufferstatic final Stringprivate final intstatic final Stringstatic final int -
Constructor Summary
ConstructorsModifierConstructorDescriptionprivateConnectionCosts(BinaryDictionary.ResourceScheme scheme, String resourcePath) -
Method Summary
-
Field Details
-
FILENAME_SUFFIX
- See Also:
-
HEADER
- See Also:
-
VERSION
public static final int VERSION- See Also:
-
buffer
-
forwardSize
private final int forwardSize
-
-
Constructor Details
-
ConnectionCosts
public ConnectionCosts(BinaryDictionary.ResourceScheme scheme, String resourcePath) throws IOException - Parameters:
scheme- - scheme for loading resources (FILE or CLASSPATH).resourcePath- - where to load resources from, without the ".dat" suffix- Throws:
IOException
-
ConnectionCosts
- Throws:
IOException
-
-
Method Details
-
get
public int get(int forwardId, int backwardId) -
getInstance
-