public interface IndexWriter extends Pluggable, Configurable
| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
X_POINT_ID
The name of the extension point.
|
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
void |
commit() |
void |
delete(java.lang.String key) |
java.util.Map<java.lang.String,java.util.Map.Entry<java.lang.String,java.lang.Object>> |
describe()
Returns
Map with the specific parameters the IndexWriter instance can take. |
void |
open(Configuration conf,
java.lang.String name)
Deprecated.
use
open(IndexWriterParams)} instead. |
void |
open(IndexWriterParams parameters)
Initializes the internal variables from a given index writer configuration.
|
void |
update(NutchDocument doc) |
void |
write(NutchDocument doc) |
getConf, setConf@Deprecated void open(Configuration conf, java.lang.String name) throws java.io.IOException
open(IndexWriterParams)} instead.java.io.IOExceptionvoid open(IndexWriterParams parameters) throws java.io.IOException
parameters - Params from the index writer configuration.java.io.IOException - Some exception thrown by writer.void write(NutchDocument doc) throws java.io.IOException
java.io.IOExceptionvoid delete(java.lang.String key)
throws java.io.IOException
java.io.IOExceptionvoid update(NutchDocument doc) throws java.io.IOException
java.io.IOExceptionvoid commit()
throws java.io.IOException
java.io.IOExceptionvoid close()
throws java.io.IOException
java.io.IOExceptionjava.util.Map<java.lang.String,java.util.Map.Entry<java.lang.String,java.lang.Object>> describe()
Map with the specific parameters the IndexWriter instance can take.Copyright © 2019 The Apache Software Foundation