public class ConvertSegmentTask extends AbstractFixedIntervalTask
| Modifier and Type | Class and Description |
|---|---|
static class |
ConvertSegmentTask.SubTask |
| Modifier and Type | Method and Description |
|---|---|
static ConvertSegmentTask |
create(io.druid.timeline.DataSegment segment,
IndexSpec indexSpec,
boolean force)
Create a task to update the segment specified to the most recent binary version with the specified indexSpec
|
static ConvertSegmentTask |
create(String dataSource,
org.joda.time.Interval interval,
IndexSpec indexSpec,
boolean force)
Create a segment converter task to convert a segment to the most recent version including the specified indexSpec
|
boolean |
equals(Object o) |
IndexSpec |
getIndexSpec() |
io.druid.timeline.DataSegment |
getSegment() |
String |
getType()
Returns a descriptive label for this task type.
|
boolean |
isForce() |
TaskStatus |
run(TaskToolbox toolbox)
Execute a task.
|
getInterval, isReadygetClasspathPrefix, getDataSource, getGroupId, getId, getNodeType, getQueryRunner, getTaskLocks, getTaskResource, hashCode, joinId, success, toStringpublic static ConvertSegmentTask create(String dataSource, org.joda.time.Interval interval, IndexSpec indexSpec, boolean force)
dataSource - The datasource to which this update should be appliedinterval - The interval in the datasource which to apply the update toindexSpec - The IndexSpec to use in the updated segmentsforce - Force an update, even if the task thinks it doesn't need to update.public static ConvertSegmentTask create(io.druid.timeline.DataSegment segment, IndexSpec indexSpec, boolean force)
segment - The segment to which this update should be appliedindexSpec - The IndexSpec to use in the updated segmentsforce - Force an update, even if the task thinks it doesn't need to update.public boolean isForce()
public IndexSpec getIndexSpec()
public String getType()
Taskpublic io.druid.timeline.DataSegment getSegment()
public TaskStatus run(TaskToolbox toolbox) throws Exception
Tasktoolbox - Toolbox for this taskException - if this task failedpublic boolean equals(Object o)
equals in class AbstractTaskCopyright © 2011–2015. All rights reserved.