[TOC]

org.apache.nutch.indexer

Interface IndexWriter


public interface IndexWriter
extends Pluggable, org.apache.hadoop.conf.Configurable

Field Summary

Fields Modifier and Type Field and Description static String X_POINT_ID The name of the extension point.

Method Summary

Methods Modifier and Type Method and Description void close() void commit() void delete(String key) String describe() Returns a String describing the IndexWriter instance and the specific parameters it can take void open(org.apache.hadoop.mapred.JobConf job, String name) void update(NutchDocument doc) void write(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

void open(org.apache.hadoop.mapred.JobConf job,
        String name)
          throws IOException
  - Throws: 
  - <code>IOException</code>       
-  

write

void write(NutchDocument doc)
           throws IOException
  - Throws: 
  - <code>IOException</code>       
-  

delete

void delete(String key)
            throws IOException
  - Throws: 
  - <code>IOException</code>       
-  

update

void update(NutchDocument doc)
            throws IOException
  - Throws: 
  - <code>IOException</code>       
-  

commit

void commit()
            throws IOException
  - Throws: 
  - <code>IOException</code>       
-  

close

void close()
           throws IOException
  - Throws: 
  - <code>IOException</code>       
-  

describe

String describe()

Returns a String describing the IndexWriter instance and the specific parameters it can take

Copyright © 2014 The Apache Software Foundation