[TOC]

org.apache.nutch.indexwriter.solr

Class SolrIndexWriter


public class SolrIndexWriter
extends Object
implements IndexWriter

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 SolrIndexWriter()

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() static IOException makeIOException(SolrServerException e) 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

-  

SolrIndexWriter

public SolrIndexWriter()

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>       
-  

makeIOException

public static IOException makeIOException(SolrServerException e)
-  

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>       

Copyright © 2014 The Apache Software Foundation