Class DummyIndexWriter
java.lang.Object
org.apache.nutch.indexwriter.dummy.DummyIndexWriter
- All Implemented Interfaces:
Configurable,IndexWriter,Pluggable
DummyIndexWriter. This pluggable indexer writes <action>\t<url>\n lines to a
plain text file for debugging purposes. Possible actions are delete, update
and add.
-
Field Summary
Fields inherited from interface org.apache.nutch.indexer.IndexWriter
X_POINT_ID -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidclose()voidcommit()voiddescribe()ReturnsMapwith the specific parameters the IndexWriter instance can take.getConf()voidopen(Configuration conf, String name) voidopen(IndexWriterParams parameters) Initializes the internal variables from a given index writer configuration.voidsetConf(Configuration conf) voidupdate(NutchDocument doc) voidwrite(NutchDocument doc)
-
Constructor Details
-
DummyIndexWriter
public DummyIndexWriter()
-
-
Method Details
-
open
- Specified by:
openin interfaceIndexWriter- 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.- Specified by:
openin interfaceIndexWriter- Parameters:
parameters- Params from the index writer configuration.- Throws:
IOException- Some exception thrown by writer.
-
delete
- Specified by:
deletein interfaceIndexWriter- Throws:
IOException
-
update
- Specified by:
updatein interfaceIndexWriter- Throws:
IOException
-
write
- Specified by:
writein interfaceIndexWriter- Throws:
IOException
-
close
- Specified by:
closein interfaceIndexWriter- Throws:
IOException
-
commit
- Specified by:
commitin interfaceIndexWriter- Throws:
IOException
-
getConf
- Specified by:
getConfin interfaceConfigurable
-
setConf
- Specified by:
setConfin interfaceConfigurable
-
describe
ReturnsMapwith the specific parameters the IndexWriter instance can take.- Specified by:
describein interfaceIndexWriter- Returns:
- The values of each row. It must have the form <KEY,<DESCRIPTION,VALUE>>.
-