public class KafkaIndexWriter extends java.lang.Object implements IndexWriter
| Modifier and Type | Field and Description |
|---|---|
static org.slf4j.Logger |
LOG |
X_POINT_ID| Constructor and Description |
|---|
KafkaIndexWriter() |
| Modifier and Type | Method and Description |
|---|---|
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() |
void |
open(Configuration job,
java.lang.String name) |
void |
open(IndexWriterParams params)
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 job, java.lang.String name) throws java.io.IOException
open in interface IndexWriterjava.io.IOExceptionpublic void open(IndexWriterParams params) throws java.io.IOException
IndexWriteropen in interface IndexWriterparams - Params from the index writer configuration.java.io.IOException - Some exception thrown by writer.public void write(NutchDocument doc) throws java.io.IOException
write in interface IndexWriterjava.io.IOExceptionpublic void delete(java.lang.String key)
throws java.io.IOException
delete in interface IndexWriterjava.io.IOExceptionpublic void update(NutchDocument doc) throws java.io.IOException
update in interface IndexWriterjava.io.IOExceptionpublic void commit()
throws java.io.IOException
commit in interface IndexWriterjava.io.IOExceptionpublic void close()
throws java.io.IOException
close in interface IndexWriterjava.io.IOExceptionpublic java.util.Map<java.lang.String,java.util.Map.Entry<java.lang.String,java.lang.Object>> describe()
IndexWriterMap with the specific parameters the IndexWriter instance can take.describe in interface IndexWriterpublic void setConf(Configuration conf)
setConf in interface Configurablepublic Configuration getConf()
getConf in interface ConfigurableCopyright © 2019 The Apache Software Foundation