public class IndexWriters extends Object
IndexWriter implementing plugins.| Modifier and Type | Class and Description |
|---|---|
class |
IndexWriters.IndexWriterWrapper |
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
void |
commit() |
void |
delete(String key) |
String |
describe()
Lists the active IndexWriters and their configuration.
|
static IndexWriters |
get(Configuration conf) |
void |
open(Configuration conf,
String name)
Initializes the internal variables of index writers.
|
void |
update(NutchDocument doc) |
void |
write(NutchDocument doc) |
public static IndexWriters get(Configuration conf)
public void open(Configuration conf, String name) throws IOException
conf - Nutch configuration.name - IOException - Some exception thrown by some writer.public void write(NutchDocument doc) throws IOException
IOExceptionpublic void update(NutchDocument doc) throws IOException
IOExceptionpublic void delete(String key) throws IOException
IOExceptionpublic void close()
throws IOException
IOExceptionpublic void commit()
throws IOException
IOExceptionpublic String describe()
Copyright © 2021 The Apache Software Foundation