public interface RiverMouth<RC extends RiverContext>
| Modifier and Type | Method and Description |
|---|---|
void |
afterFetch()
Executed after river source fetch
|
void |
beforeFetch()
Executed before river source fetch
|
void |
delete(IndexableObject object)
Delete operation.
|
void |
flush()
Flush data to the river mouth
|
String |
getId()
Get document identifier
|
String |
getIndex()
Get default index name of this river mouth
|
Metric |
getMetric()
Get the metrics of this river mouth
|
String |
getType()
Get default index type name of this river mouth
|
void |
index(IndexableObject object,
boolean create)
Index operation.
|
RiverMouth<RC> |
newInstance()
Create a new river mouth instance
|
void |
resume()
Resume river mouth after suspend.
|
RiverMouth |
setId(String id)
Set document identifier for next document to be indexed
|
RiverMouth |
setIndex(String index)
Set default index name for this river mouth
|
RiverMouth |
setIndexSettings(org.elasticsearch.common.settings.Settings indexSettings)
Set index settings
|
RiverMouth |
setIngestFactory(IngestFactory ingestFactory)
Set ingest factory
|
RiverMouth<RC> |
setRiverContext(RC context)
Set the river context
|
RiverMouth |
setType(String type)
Set default index type name for this river mouth
|
RiverMouth |
setTypeMapping(Map<String,String> typeMapping)
Set index type mappings
|
void |
shutdown()
Shutdown river mouth and release all resources, e.g.
|
String |
strategy()
The river strategy
|
void |
suspend()
Suspend river mouth.
|
RiverMouth<RC> newInstance()
RiverMouth<RC> setRiverContext(RC context)
context - the river contextRiverMouth setIngestFactory(IngestFactory ingestFactory)
ingestFactory - the ingest factoryRiverMouth setIndexSettings(org.elasticsearch.common.settings.Settings indexSettings)
indexSettings - the index settingsRiverMouth setTypeMapping(Map<String,String> typeMapping)
typeMapping - the index type mappingsvoid beforeFetch() throws Exception
Exceptionvoid afterFetch() throws Exception
ExceptionRiverMouth setIndex(String index)
index - the default index nameRiverMouth setType(String type)
type - the default index type name for this river mouthString getType()
RiverMouth setId(String id)
id - the idvoid index(IndexableObject object, boolean create) throws IOException
object - the indexable objectcreate - true if the document should be createdIOException - when indexing failsvoid delete(IndexableObject object) throws IOException
object - the structured objectIOException - when delete failsvoid flush() throws IOException
IOException - when flush failsvoid shutdown() throws IOException
IOExceptionvoid suspend() throws Exception
Exceptionelasticsearch-river-jdbc