[TOC]

  • Prev Class
  • Next Class

org.apache.nutch.indexwriter.dummy

Class DummyIndexWriter


public class DummyIndexWriter
extends Object
implements IndexWriter

DummyIndexWriter. This pluggable indexer writes \t\n lines to a plain text file for debugging purposes. Possible actions are delete, update and add.

Field Summary

Fields Modifier and Type Field and Description static org.slf4j.Logger LOG

-    

Fields inherited from interface org.apache.nutch.indexer.IndexWriter

X_POINT_ID

Constructor Summary

Constructors Constructor and Description DummyIndexWriter()

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 org.apache.hadoop.conf.Configuration getConf() void open(org.apache.hadoop.mapred.JobConf job, String name) void setConf(org.apache.hadoop.conf.Configuration conf) void update(NutchDocument doc) void write(NutchDocument doc)

-    

Methods inherited from class java.lang.Object

clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

Field Detail

-  

LOG

public static final org.slf4j.Logger LOG

Constructor Detail

-  

DummyIndexWriter

public DummyIndexWriter()

Method Detail

-  

open

public void open(org.apache.hadoop.mapred.JobConf job,
        String name)
          throws IOException
  - Specified by: 
  - <code>open</code> in interface <code>IndexWriter</code> 
  - Throws: 
  - <code>IOException</code>       
-  

delete

public void delete(String key)
            throws IOException
  - Specified by: 
  - <code>delete</code> in interface <code>IndexWriter</code> 
  - Throws: 
  - <code>IOException</code>       
-  

update

public void update(NutchDocument doc)
            throws IOException
  - Specified by: 
  - <code>update</code> in interface <code>IndexWriter</code> 
  - Throws: 
  - <code>IOException</code>       
-  

write

public void write(NutchDocument doc)
           throws IOException
  - Specified by: 
  - <code>write</code> in interface <code>IndexWriter</code> 
  - Throws: 
  - <code>IOException</code>       
-  

close

public void close()
           throws IOException
  - Specified by: 
  - <code>close</code> in interface <code>IndexWriter</code> 
  - Throws: 
  - <code>IOException</code>       
-  

commit

public void commit()
            throws IOException
  - Specified by: 
  - <code>commit</code> in interface <code>IndexWriter</code> 
  - Throws: 
  - <code>IOException</code>       
-  

getConf

public org.apache.hadoop.conf.Configuration getConf()
  - Specified by: 
  - <code>getConf</code> in interface <code>org.apache.hadoop.conf.Configurable</code>        
-  

setConf

public void setConf(org.apache.hadoop.conf.Configuration conf)
  - Specified by: 
  - <code>setConf</code> in interface <code>org.apache.hadoop.conf.Configurable</code>        
-  

describe

public String describe()

Description copied from interface: IndexWriter

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

  - Specified by: 
  - <code>describe</code> in interface <code>IndexWriter</code>       

  • Prev Class
  • Next Class

Copyright © 2014 The Apache Software Foundation