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
IOException
public void update(NutchDocument doc) throws IOException
IOException
public void delete(String key) throws IOException
IOException
public void close() throws IOException
IOException
public void commit() throws IOException
IOException
public String describe()
Copyright © 2021 The Apache Software Foundation