public class JsonTermIndexIO
extends java.lang.Object
Constructor and Description |
---|
JsonTermIndexIO() |
Modifier and Type | Method and Description |
---|---|
static TermIndex |
load(java.io.Reader reader,
JsonOptions options)
Loads the json-serialized term index into the param
TermIndex object. |
static void |
save(java.io.Writer writer,
TermIndex termIndex,
JsonOptions options) |
public static TermIndex load(java.io.Reader reader, JsonOptions options) throws com.fasterxml.jackson.core.JsonParseException, java.io.IOException
TermIndex
object.reader
- options
- The deserialization IOOptions
.com.fasterxml.jackson.core.JsonParseException
java.io.IOException
public static void save(java.io.Writer writer, TermIndex termIndex, JsonOptions options) throws java.io.IOException
java.io.IOException