public class ElasticIndexWriter extends java.lang.Object implements IndexWriter
X_POINT_ID
Constructor and Description |
---|
ElasticIndexWriter() |
Modifier and Type | Method and Description |
---|---|
protected BulkProcessor.Listener |
bulkProcessorListener()
Generates a default BulkProcessor.Listener
|
void |
close() |
void |
commit() |
void |
delete(java.lang.String key) |
java.util.Map<java.lang.String,java.util.Map.Entry<java.lang.String,java.lang.Object>> |
describe()
Returns
Map with the specific parameters the IndexWriter instance can take. |
Configuration |
getConf() |
protected Client |
makeClient(IndexWriterParams parameters)
Generates a TransportClient or NodeClient
|
void |
open(Configuration conf,
java.lang.String name) |
void |
open(IndexWriterParams parameters)
Initializes the internal variables from a given index writer configuration.
|
void |
setConf(Configuration conf) |
void |
update(NutchDocument doc) |
void |
write(NutchDocument doc) |
public void open(Configuration conf, java.lang.String name) throws java.io.IOException
open
in interface IndexWriter
java.io.IOException
public void open(IndexWriterParams parameters) throws java.io.IOException
open
in interface IndexWriter
parameters
- Params from the index writer configuration.java.io.IOException
- Some exception thrown by writer.protected Client makeClient(IndexWriterParams parameters) throws java.io.IOException
java.io.IOException
protected BulkProcessor.Listener bulkProcessorListener()
public void write(NutchDocument doc) throws java.io.IOException
write
in interface IndexWriter
java.io.IOException
public void delete(java.lang.String key) throws java.io.IOException
delete
in interface IndexWriter
java.io.IOException
public void update(NutchDocument doc) throws java.io.IOException
update
in interface IndexWriter
java.io.IOException
public void commit() throws java.io.IOException
commit
in interface IndexWriter
java.io.IOException
public void close() throws java.io.IOException
close
in interface IndexWriter
java.io.IOException
public java.util.Map<java.lang.String,java.util.Map.Entry<java.lang.String,java.lang.Object>> describe()
Map
with the specific parameters the IndexWriter instance can take.describe
in interface IndexWriter
public void setConf(Configuration conf)
setConf
in interface Configurable
public Configuration getConf()
getConf
in interface Configurable
Copyright © 2019 The Apache Software Foundation