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, setConfstatic final String X_POINT_ID
@Deprecated void open(Configuration conf, String name) throws IOException
open(IndexWriterParams)} instead.IOExceptionvoid open(IndexWriterParams parameters) throws IOException
parameters - Params from the index writer configuration.IOException - Some exception thrown by writer.void write(NutchDocument doc) throws IOException
IOExceptionvoid delete(String key) throws IOException
IOExceptionvoid update(NutchDocument doc) throws IOException
IOExceptionvoid commit()
throws IOException
IOExceptionvoid close()
throws IOException
IOExceptionCopyright © 2021 The Apache Software Foundation