Package org.apache.nutch.indexer
Class IndexWriters
java.lang.Object
org.apache.nutch.indexer.IndexWriters
Creates and caches
IndexWriter implementing plugins.-
Nested Class Summary
Nested Classes -
Method Summary
Modifier and TypeMethodDescriptionvoidclose()voidcommit()voiddescribe()Lists the active IndexWriters and their configuration.static IndexWritersget(Configuration conf) voidopen(Configuration conf, String name) Initializes the internal variables of index writers.voidupdate(NutchDocument doc) voidwrite(NutchDocument doc)
-
Method Details
-
get
-
open
Initializes the internal variables of index writers.- Parameters:
conf- Nutch configurationname- target name of theIndexWriterto be opened- Throws:
IOException- Some exception thrown by some writer.
-
write
- Throws:
IOException
-
update
- Throws:
IOException
-
delete
- Throws:
IOException
-
close
- Throws:
IOException
-
commit
- Throws:
IOException
-
describe
Lists the active IndexWriters and their configuration.- Returns:
- The full description.
-