public class IndexTask extends AbstractTask
Modifier and Type | Class and Description |
---|---|
static class |
IndexTask.IndexIngestionSpec |
static class |
IndexTask.IndexIOConfig |
static class |
IndexTask.IndexTuningConfig |
Constructor and Description |
---|
IndexTask(String id,
TaskResource taskResource,
IndexTask.IndexIngestionSpec ingestionSchema,
Map<String,Object> context,
com.fasterxml.jackson.databind.ObjectMapper smileMapper) |
Modifier and Type | Method and Description |
---|---|
IndexTask.IndexIngestionSpec |
getIngestionSchema() |
String |
getType()
Returns a descriptive label for this task type.
|
boolean |
isReady(TaskActionClient taskActionClient)
Execute preflight actions for a task.
|
TaskStatus |
run(TaskToolbox toolbox)
Execute a task.
|
canRestore, equals, getClasspathPrefix, getContext, getContextValue, getDataSource, getGroupId, getId, getNodeType, getQueryRunner, getTaskLocks, getTaskResource, hashCode, joinId, makeId, stopGracefully, success, toString
public IndexTask(String id, TaskResource taskResource, IndexTask.IndexIngestionSpec ingestionSchema, Map<String,Object> context, com.fasterxml.jackson.databind.ObjectMapper smileMapper)
public String getType()
Task
public boolean isReady(TaskActionClient taskActionClient) throws Exception
Task
taskActionClient
- action client for this task (not the full toolbox)Exception
- if the task should be considered a failurepublic IndexTask.IndexIngestionSpec getIngestionSchema()
public TaskStatus run(TaskToolbox toolbox) throws Exception
Task
toolbox
- Toolbox for this taskException
- if this task failedCopyright © 2011–2017. All rights reserved.