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.lang.String |
describe()
Returns a String describing the IndexWriter instance and the specific parameters it can take.
|
void |
open(Configuration conf,
java.lang.String name)
Deprecated.
|
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
java.io.IOException
void 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.IOException
void delete(java.lang.String key) throws java.io.IOException
java.io.IOException
void update(NutchDocument doc) throws java.io.IOException
java.io.IOException
void commit() throws java.io.IOException
java.io.IOException
void close() throws java.io.IOException
java.io.IOException
java.lang.String describe()
Copyright © 2018 The Apache Software Foundation