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) |
| Modifier and Type | Method and Description |
|---|---|
IndexTask.IndexIngestionSpec |
getIngestionSchema() |
int |
getPriority()
Returns task priority.
|
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, getDataSource, getGroupId, getId, getNodeType, getQueryRunner, getTaskResource, hashCode, stopGracefully, success, toStringclone, finalize, getClass, notify, notifyAll, wait, wait, waitgetContextValue, getContextValuepublic IndexTask(String id, TaskResource taskResource, IndexTask.IndexIngestionSpec ingestionSchema, Map<String,Object> context)
public int getPriority()
Taskfor default task prioritiespublic String getType()
Taskpublic boolean isReady(TaskActionClient taskActionClient) throws Exception
TasktaskActionClient - 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
Tasktoolbox - Toolbox for this taskException - if this task failedCopyright © 2011–2018. All rights reserved.