public class IndexTask extends AbstractFixedIntervalTask
Modifier and Type | Class and Description |
---|---|
static class |
IndexTask.IndexIngestionSpec |
static class |
IndexTask.IndexIOConfig |
static class |
IndexTask.IndexTuningConfig |
Constructor and Description |
---|
IndexTask(String id,
IndexTask.IndexIngestionSpec ingestionSpec,
IndexTask.IndexIngestionSpec schema,
String dataSource,
GranularitySpec granularitySpec,
AggregatorFactory[] aggregators,
QueryGranularity indexGranularity,
int targetPartitionSize,
io.druid.data.input.FirehoseFactory firehoseFactory,
int rowFlushBoundary,
com.fasterxml.jackson.databind.ObjectMapper jsonMapper) |
Modifier and Type | Method and Description |
---|---|
IndexTask.IndexIngestionSpec |
getIngestionSpec() |
String |
getType()
Returns a descriptive label for this task type.
|
TaskStatus |
run(TaskToolbox toolbox)
Execute a task.
|
getInterval, isReady
equals, getClasspathPrefix, getDataSource, getGroupId, getId, getNodeType, getQueryRunner, getTaskLocks, getTaskResource, hashCode, joinId, success, toString
public IndexTask(String id, IndexTask.IndexIngestionSpec ingestionSpec, IndexTask.IndexIngestionSpec schema, String dataSource, GranularitySpec granularitySpec, AggregatorFactory[] aggregators, QueryGranularity indexGranularity, int targetPartitionSize, io.druid.data.input.FirehoseFactory firehoseFactory, int rowFlushBoundary, com.fasterxml.jackson.databind.ObjectMapper jsonMapper)
public String getType()
Task
public IndexTask.IndexIngestionSpec getIngestionSpec()
public TaskStatus run(TaskToolbox toolbox) throws Exception
Task
toolbox
- Toolbox for this taskException
- if this task failedCopyright © 2015. All rights reserved.