public class IndexWriters
extends java.lang.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(java.lang.String key) |
java.lang.String |
describe()
Lists the active IndexWriters and their configuration.
|
static IndexWriters |
get(Configuration conf) |
void |
open(Configuration conf,
java.lang.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, java.lang.String name) throws java.io.IOException
conf
- Nutch configuration.name
- java.io.IOException
- Some exception thrown by some writer.public void write(NutchDocument doc) throws java.io.IOException
java.io.IOException
public void update(NutchDocument doc) throws java.io.IOException
java.io.IOException
public void delete(java.lang.String key) throws java.io.IOException
java.io.IOException
public void close() throws java.io.IOException
java.io.IOException
public void commit() throws java.io.IOException
java.io.IOException
public java.lang.String describe()
Copyright © 2018 The Apache Software Foundation