[TOC]
org.apache.nutch.indexer
Class IndexWriters
- java.lang.Object
- org.apache.nutch.indexer.IndexWriters
public class IndexWriters extends Object
Creates and caches IndexWriter implementing plugins.
Field Summary
Fields Modifier and Type Field and Description static org.slf4j.Logger LOG
Constructor Summary
Constructors Constructor and Description IndexWriters(org.apache.hadoop.conf.Configuration conf)
Method Summary
Methods Modifier and Type Method and Description void close() void commit() void delete(String key) String describe() void open(org.apache.hadoop.mapred.JobConf job,
String name) void update(NutchDocument doc) void write(NutchDocument doc)
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Field Detail
-
LOG
public static final org.slf4j.Logger LOG
Constructor Detail
-
IndexWriters
public IndexWriters(org.apache.hadoop.conf.Configuration conf)
Method Detail
-
open
public void open(org.apache.hadoop.mapred.JobConf job,
String name)
throws IOException
- Throws:
- <code>IOException</code>
-
write
public void write(NutchDocument doc) throws IOException
- Throws:
- <code>IOException</code>
-
update
public void update(NutchDocument doc) throws IOException
- Throws:
- <code>IOException</code>
-
delete
public void delete(String key) throws IOException
- Throws:
- <code>IOException</code>
-
close
public void close()
throws IOException
- Throws:
- <code>IOException</code>
-
commit
public void commit()
throws IOException
- Throws:
- <code>IOException</code>
-
describe
public String describe() throws IOException
- Throws:
- <code>IOException</code>
