Package org.apache.nutch.indexer
Interface IndexWriter
- 
- All Superinterfaces:
 Configurable,Pluggable
- All Known Implementing Classes:
 CloudSearchIndexWriter,CSVIndexWriter,DummyIndexWriter,ElasticIndexWriter,KafkaIndexWriter,OpenSearch1xIndexWriter,RabbitIndexWriter,SolrIndexWriter
public interface IndexWriter extends Pluggable, Configurable
 
- 
- 
Field Summary
Fields Modifier and Type Field Description static StringX_POINT_IDThe name of the extension point. 
- 
Method Summary
All Methods Instance Methods Abstract Methods Deprecated Methods Modifier and Type Method Description voidclose()voidcommit()voiddelete(String key)Map<String,Map.Entry<String,Object>>describe()ReturnsMapwith the specific parameters the IndexWriter instance can take.voidopen(Configuration conf, String name)Deprecated.useopen(IndexWriterParams)} instead.voidopen(IndexWriterParams parameters)Initializes the internal variables from a given index writer configuration.voidupdate(NutchDocument doc)voidwrite(NutchDocument doc)- 
Methods inherited from interface org.apache.hadoop.conf.Configurable
getConf, setConf 
 - 
 
 - 
 
- 
- 
Field Detail
- 
X_POINT_ID
static final String X_POINT_ID
The name of the extension point. 
 - 
 
- 
Method Detail
- 
open
@Deprecated void open(Configuration conf, String name) throws IOException
Deprecated.useopen(IndexWriterParams)} instead.- Parameters:
 conf- Nutch configurationname- target name of theIndexWriterto be opened- Throws:
 IOException- Some exception thrown by some writer.
 
- 
open
void open(IndexWriterParams parameters) throws IOException
Initializes the internal variables from a given index writer configuration.- Parameters:
 parameters- Params from the index writer configuration.- Throws:
 IOException- Some exception thrown by writer.
 
- 
write
void write(NutchDocument doc) throws IOException
- Throws:
 IOException
 
- 
delete
void delete(String key) throws IOException
- Throws:
 IOException
 
- 
update
void update(NutchDocument doc) throws IOException
- Throws:
 IOException
 
- 
commit
void commit() throws IOException- Throws:
 IOException
 
- 
close
void close() throws IOException- Throws:
 IOException
 
 - 
 
 -