Package org.apache.nutch.indexer
Interface IndexWriter
- All Superinterfaces:
Configurable,Pluggable
- All Known Implementing Classes:
CloudSearchIndexWriter,CSVIndexWriter,DummyIndexWriter,ElasticIndexWriter,KafkaIndexWriter,OpenSearch1xIndexWriter,RabbitIndexWriter,SolrIndexWriter
-
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionvoidclose()voidcommit()voiddescribe()ReturnsMapwith the specific parameters the IndexWriter instance can take.voidopen(Configuration conf, String name) Deprecated.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 Details
-
X_POINT_ID
The name of the extension point.
-
-
Method Details
-
open
Deprecated.useopen(IndexWriterParams)} instead.- Parameters:
conf- Nutch configurationname- target name of theIndexWriterto be opened- Throws:
IOException- Some exception thrown by some writer.
-
open
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
- Throws:
IOException
-
delete
- Throws:
IOException
-
update
- Throws:
IOException
-
commit
- Throws:
IOException
-
close
- Throws:
IOException
-
describe
ReturnsMapwith the specific parameters the IndexWriter instance can take.- Returns:
- The values of each row. It must have the form <KEY,<DESCRIPTION,VALUE>>.
-
open(IndexWriterParams)} instead.