public interface IndexWriter extends Pluggable, Configurable
Modifier and Type | Field and Description |
---|---|
static String |
X_POINT_ID
The name of the extension point.
|
Modifier and Type | Method and Description |
---|---|
void |
close() |
void |
commit() |
void |
delete(String key) |
Map<String,Map.Entry<String,Object>> |
describe()
Returns
Map with the specific parameters the IndexWriter instance can take. |
void |
open(Configuration conf,
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
static final String X_POINT_ID
@Deprecated void open(Configuration conf, String name) throws IOException
open(IndexWriterParams)
} instead.IOException
void open(IndexWriterParams parameters) throws IOException
parameters
- Params from the index writer configuration.IOException
- Some exception thrown by writer.void write(NutchDocument doc) throws IOException
IOException
void delete(String key) throws IOException
IOException
void update(NutchDocument doc) throws IOException
IOException
void commit() throws IOException
IOException
void close() throws IOException
IOException
Copyright © 2021 The Apache Software Foundation