Modifier and Type | Method and Description |
---|---|
RiverContext |
RiverPipeline.getRiverContext() |
Modifier and Type | Method and Description |
---|---|
RiverContext |
ContextPipelineElement.get() |
Modifier and Type | Method and Description |
---|---|
ContextPipelineElement |
ContextPipelineElement.set(RiverContext context) |
Modifier and Type | Interface and Description |
---|---|
interface |
RiverFlow<RC extends RiverContext>
A RiverFlow is the controlling component for creatin RiverContexts
which can be processed independently from each other.
|
interface |
RiverMouth<RC extends RiverContext>
The river mouth is the abstraction of the destination where all the data
is flowing from the river source.
|
interface |
RiverSource<RC extends RiverContext>
The river source models the data producing side
|
Modifier and Type | Method and Description |
---|---|
RiverContext |
RiverContext.release()
Release all resources
|
RiverContext |
RiverContext.setAutoCommit(boolean autocommit)
Set auto commit
|
RiverContext |
RiverContext.setColumnNameMap(Map<String,Object> columnNameMap)
Set column name map.
|
RiverContext |
RiverContext.setConnectionProperties(Map<String,Object> connectionProperties)
Optional JDBC connection properties
|
RiverContext |
RiverContext.setDefinition(Map<String,Object> definition)
Set river instance definition
|
RiverContext |
RiverContext.setFetchSize(int fetchSize)
Set fetch size
|
RiverContext |
RiverContext.setMaxRetryWait(org.elasticsearch.common.unit.TimeValue maxretrywait)
Set maximum count of retries
|
RiverContext |
RiverContext.setMaxRows(int maxRows)
Set max rows
|
RiverContext |
RiverContext.setMetric(org.elasticsearch.common.metrics.MeterMetric metric)
Set metric
|
RiverContext |
RiverContext.setQueryTimeout(int queryTimeout)
Set result set query timeout
|
RiverContext |
RiverContext.setResultSetConcurrency(String resultSetConcurrency)
Set result set concurrency
|
RiverContext |
RiverContext.setResultSetType(String resultSetType)
Set result set type
|
RiverContext |
RiverContext.setRetries(int retries)
Set retries
|
RiverContext |
RiverContext.setRiverMouth(RiverMouth riverMouth)
Set river mouth
|
RiverContext |
RiverContext.setRiverSource(RiverSource riverSource)
Set river source
|
RiverContext |
RiverContext.setRiverState(RiverState riverState)
Set river state
|
RiverContext |
RiverContext.setRounding(String rounding)
Set rounding of big decimal values.
|
RiverContext |
RiverContext.setScale(int scale)
Set scale of big decimal values.
|
RiverContext |
RiverContext.setStatements(List<SQLCommand> sql)
Set the list of SQL statements
|
RiverContext |
RiverContext.shouldIgnoreNull(boolean shouldIgnoreNull)
Should null values in columns be ignored for indexing
|
RiverContext |
RiverContext.shouldPrepareDatabaseMetadata(boolean shouldPrepareDatabaseMetadata)
Should database metadata be used in parameter variables
|
RiverContext |
RiverContext.shouldPrepareResultSetMetadata(boolean shouldPrepareResultSetMetadata)
Should result set metadata be used in parameter variables
|
RiverContext |
RiverContext.shouldTreatBinaryAsString(boolean shouldTreatBinaryAsString)
Should binary types (byte arrays) be treated as JSON strings
|
Modifier and Type | Method and Description |
---|---|
Queue<RiverContext> |
RiverFlow.getQueue()
Get queue for RiverContext processing
|
Modifier and Type | Method and Description |
---|---|
void |
RiverFlow.logMetrics(RiverContext riverContext,
String cause)
Log metrics
|
Modifier and Type | Method and Description |
---|---|
RiverFlow |
RiverFlow.setQueue(Queue<RiverContext> queue)
Set queue for processing RiverContext requests
|
Modifier and Type | Class and Description |
---|---|
class |
ColumnRiverContext |
Modifier and Type | Method and Description |
---|---|
protected void |
ColumnRiverFlow.fetch(RiverContext riverContext) |
Modifier and Type | Class and Description |
---|---|
class |
SimpleRiverFlow<RC extends RiverContext>
Simple river flow implementation
|
Modifier and Type | Class and Description |
---|---|
class |
SimpleRiverContext
The river context consists of the parameters that span source and mouth settings.
|
Modifier and Type | Method and Description |
---|---|
RiverContext |
SimpleRiverContext.setMetric(org.elasticsearch.common.metrics.MeterMetric metric) |
Modifier and Type | Method and Description |
---|---|
Queue<RiverContext> |
SimpleRiverFlow.getQueue() |
Modifier and Type | Method and Description |
---|---|
protected void |
SimpleRiverFlow.afterFetch(RiverContext riverContext)
After the river task has completed a single run, this method is called.
|
protected void |
SimpleRiverFlow.fetch(RiverContext riverContext)
After river context and state setup, when data should be fetched from river source, this method is called.
|
void |
SimpleRiverFlow.logMetrics(RiverContext riverContext,
String cause) |
Modifier and Type | Method and Description |
---|---|
RiverFlow |
SimpleRiverFlow.setQueue(Queue<RiverContext> queue) |
elasticsearch-river-jdbc