public abstract class MergeTaskBase extends AbstractFixedIntervalTask
Modifier | Constructor and Description |
---|---|
protected |
MergeTaskBase(String id,
String dataSource,
List<io.druid.timeline.DataSegment> segments) |
Modifier and Type | Method and Description |
---|---|
List<io.druid.timeline.DataSegment> |
getSegments() |
boolean |
isReady(TaskActionClient taskActionClient)
Checks pre-existing segments in "context" to confirm that this merge query is valid.
|
protected abstract File |
merge(Map<io.druid.timeline.DataSegment,File> segments,
File outDir) |
TaskStatus |
run(TaskToolbox toolbox)
Execute a task.
|
String |
toString() |
getInterval
equals, getClasspathPrefix, getDataSource, getGroupId, getId, getNodeType, getQueryRunner, getTaskLocks, getTaskResource, hashCode, joinId, makeId, success
public TaskStatus run(TaskToolbox toolbox) throws Exception
Task
toolbox
- Toolbox for this taskException
- if this task failedpublic boolean isReady(TaskActionClient taskActionClient) throws Exception
isReady
in interface Task
isReady
in class AbstractFixedIntervalTask
taskActionClient
- action client for this task (not the full toolbox)Exception
- if the task should be considered a failureprotected abstract File merge(Map<io.druid.timeline.DataSegment,File> segments, File outDir) throws Exception
Exception
public List<io.druid.timeline.DataSegment> getSegments()
public String toString()
toString
in class AbstractTask
Copyright © 2011–2015. All rights reserved.