- Prev Class
 - Next Class
 
org.apache.nutch.indexwriter.elastic
Class ElasticIndexWriter
- java.lang.Object
 - org.apache.nutch.indexwriter.elastic.ElasticIndexWriter
 
- All Implemented Interfaces:
 - org.apache.hadoop.conf.Configurable, IndexWriter, Pluggable
 
public class ElasticIndexWriter 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   ElasticIndexWriter()   
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(ElasticsearchException 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 org.slf4j.Logger LOG
Constructor Detail
-  
ElasticIndexWriter
public ElasticIndexWriter()
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>       
-  
write
public void write(NutchDocument doc) throws IOException
  - Specified by: 
  - <code>write</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>       
-  
makeIOException
public static IOException makeIOException(ElasticsearchException e)
-  
update
public void update(NutchDocument doc) throws IOException
  - Specified by: 
  - <code>update</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>       
-  
close
public void close()
           throws IOException
  - Specified by: 
  - <code>close</code> in interface <code>IndexWriter</code> 
  - Throws: 
  - <code>IOException</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>        
-  
setConf
public void setConf(org.apache.hadoop.conf.Configuration conf)
  - Specified by: 
  - <code>setConf</code> in interface <code>org.apache.hadoop.conf.Configurable</code>        
-  
getConf
public org.apache.hadoop.conf.Configuration getConf()
  - Specified by: 
  - <code>getConf</code> in interface <code>org.apache.hadoop.conf.Configurable</code>       
   
- Prev Class
 - Next Class
 
