public class ElasticIndexWriter extends Object implements IndexWriter
| Modifier and Type | Field and Description |
|---|---|
static org.slf4j.Logger |
LOG |
X_POINT_ID| Constructor and Description |
|---|
ElasticIndexWriter() |
| 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
|
Configuration |
getConf() |
static IOException |
makeIOException(ElasticsearchException e) |
void |
open(Configuration job) |
void |
setConf(Configuration conf) |
void |
update(NutchDocument doc) |
void |
write(NutchDocument doc) |
public void open(Configuration job) throws IOException
open in interface IndexWriterIOExceptionpublic void write(NutchDocument doc) throws IOException
write in interface IndexWriterIOExceptionpublic void delete(String key) throws IOException
delete in interface IndexWriterIOExceptionpublic static IOException makeIOException(ElasticsearchException e)
public void update(NutchDocument doc) throws IOException
update in interface IndexWriterIOExceptionpublic void commit()
throws IOException
commit in interface IndexWriterIOExceptionpublic void close()
throws IOException
close in interface IndexWriterIOExceptionpublic String describe()
IndexWriterdescribe in interface IndexWriterpublic void setConf(Configuration conf)
setConf in interface Configurablepublic Configuration getConf()
getConf in interface ConfigurableCopyright © 2015 The Apache Software Foundation