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