org.apache.hadoop.hive.ql.plan.api
Class Task

java.lang.Object
  extended by org.apache.hadoop.hive.ql.plan.api.Task
All Implemented Interfaces:
Serializable, Cloneable, Comparable<Task>, org.apache.thrift.TBase<Task,Task._Fields>

public class Task
extends Object
implements org.apache.thrift.TBase<Task,Task._Fields>, Serializable, Cloneable

See Also:
Serialized Form

Nested Class Summary
static class Task._Fields
          The set of fields this struct contains, along with convenience methods for finding and manipulating them.
 
Field Summary
static Map<Task._Fields,org.apache.thrift.meta_data.FieldMetaData> metaDataMap
           
 
Constructor Summary
Task()
           
Task(String taskId, TaskType taskType, Map<String,String> taskAttributes, Map<String,Long> taskCounters, boolean done, boolean started)
           
Task(Task other)
          Performs a deep copy on other.
 
Method Summary
 void addToOperatorList(Operator elem)
           
 void clear()
           
 int compareTo(Task other)
           
 Task deepCopy()
           
 boolean equals(Object that)
           
 boolean equals(Task that)
           
 Task._Fields fieldForId(int fieldId)
           
 Object getFieldValue(Task._Fields field)
           
 Graph getOperatorGraph()
           
 List<Operator> getOperatorList()
           
 Iterator<Operator> getOperatorListIterator()
           
 int getOperatorListSize()
           
 Map<String,String> getTaskAttributes()
           
 int getTaskAttributesSize()
           
 Map<String,Long> getTaskCounters()
           
 int getTaskCountersSize()
           
 String getTaskId()
           
 TaskType getTaskType()
           
 int hashCode()
           
 boolean isDone()
           
 boolean isSet(Task._Fields field)
          Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise
 boolean isSetDone()
          Returns true if field done is set (has been assigned a value) and false otherwise
 boolean isSetOperatorGraph()
          Returns true if field operatorGraph is set (has been assigned a value) and false otherwise
 boolean isSetOperatorList()
          Returns true if field operatorList is set (has been assigned a value) and false otherwise
 boolean isSetStarted()
          Returns true if field started is set (has been assigned a value) and false otherwise
 boolean isSetTaskAttributes()
          Returns true if field taskAttributes is set (has been assigned a value) and false otherwise
 boolean isSetTaskCounters()
          Returns true if field taskCounters is set (has been assigned a value) and false otherwise
 boolean isSetTaskId()
          Returns true if field taskId is set (has been assigned a value) and false otherwise
 boolean isSetTaskType()
          Returns true if field taskType is set (has been assigned a value) and false otherwise
 boolean isStarted()
           
 void putToTaskAttributes(String key, String val)
           
 void putToTaskCounters(String key, long val)
           
 void read(org.apache.thrift.protocol.TProtocol iprot)
           
 void setDone(boolean done)
           
 void setDoneIsSet(boolean value)
           
 void setFieldValue(Task._Fields field, Object value)
           
 void setOperatorGraph(Graph operatorGraph)
           
 void setOperatorGraphIsSet(boolean value)
           
 void setOperatorList(List<Operator> operatorList)
           
 void setOperatorListIsSet(boolean value)
           
 void setStarted(boolean started)
           
 void setStartedIsSet(boolean value)
           
 void setTaskAttributes(Map<String,String> taskAttributes)
           
 void setTaskAttributesIsSet(boolean value)
           
 void setTaskCounters(Map<String,Long> taskCounters)
           
 void setTaskCountersIsSet(boolean value)
           
 void setTaskId(String taskId)
           
 void setTaskIdIsSet(boolean value)
           
 void setTaskType(TaskType taskType)
           
 void setTaskTypeIsSet(boolean value)
           
 String toString()
           
 void unsetDone()
           
 void unsetOperatorGraph()
           
 void unsetOperatorList()
           
 void unsetStarted()
           
 void unsetTaskAttributes()
           
 void unsetTaskCounters()
           
 void unsetTaskId()
           
 void unsetTaskType()
           
 void validate()
           
 void write(org.apache.thrift.protocol.TProtocol oprot)
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

metaDataMap

public static final Map<Task._Fields,org.apache.thrift.meta_data.FieldMetaData> metaDataMap
Constructor Detail

Task

public Task()

Task

public Task(String taskId,
            TaskType taskType,
            Map<String,String> taskAttributes,
            Map<String,Long> taskCounters,
            boolean done,
            boolean started)

Task

public Task(Task other)
Performs a deep copy on other.

Method Detail

deepCopy

public Task deepCopy()
Specified by:
deepCopy in interface org.apache.thrift.TBase<Task,Task._Fields>

clear

public void clear()
Specified by:
clear in interface org.apache.thrift.TBase<Task,Task._Fields>

getTaskId

public String getTaskId()

setTaskId

public void setTaskId(String taskId)

unsetTaskId

public void unsetTaskId()

isSetTaskId

public boolean isSetTaskId()
Returns true if field taskId is set (has been assigned a value) and false otherwise


setTaskIdIsSet

public void setTaskIdIsSet(boolean value)

getTaskType

public TaskType getTaskType()
See Also:
TaskType

setTaskType

public void setTaskType(TaskType taskType)
See Also:
TaskType

unsetTaskType

public void unsetTaskType()

isSetTaskType

public boolean isSetTaskType()
Returns true if field taskType is set (has been assigned a value) and false otherwise


setTaskTypeIsSet

public void setTaskTypeIsSet(boolean value)

getTaskAttributesSize

public int getTaskAttributesSize()

putToTaskAttributes

public void putToTaskAttributes(String key,
                                String val)

getTaskAttributes

public Map<String,String> getTaskAttributes()

setTaskAttributes

public void setTaskAttributes(Map<String,String> taskAttributes)

unsetTaskAttributes

public void unsetTaskAttributes()

isSetTaskAttributes

public boolean isSetTaskAttributes()
Returns true if field taskAttributes is set (has been assigned a value) and false otherwise


setTaskAttributesIsSet

public void setTaskAttributesIsSet(boolean value)

getTaskCountersSize

public int getTaskCountersSize()

putToTaskCounters

public void putToTaskCounters(String key,
                              long val)

getTaskCounters

public Map<String,Long> getTaskCounters()

setTaskCounters

public void setTaskCounters(Map<String,Long> taskCounters)

unsetTaskCounters

public void unsetTaskCounters()

isSetTaskCounters

public boolean isSetTaskCounters()
Returns true if field taskCounters is set (has been assigned a value) and false otherwise


setTaskCountersIsSet

public void setTaskCountersIsSet(boolean value)

getOperatorGraph

public Graph getOperatorGraph()

setOperatorGraph

public void setOperatorGraph(Graph operatorGraph)

unsetOperatorGraph

public void unsetOperatorGraph()

isSetOperatorGraph

public boolean isSetOperatorGraph()
Returns true if field operatorGraph is set (has been assigned a value) and false otherwise


setOperatorGraphIsSet

public void setOperatorGraphIsSet(boolean value)

getOperatorListSize

public int getOperatorListSize()

getOperatorListIterator

public Iterator<Operator> getOperatorListIterator()

addToOperatorList

public void addToOperatorList(Operator elem)

getOperatorList

public List<Operator> getOperatorList()

setOperatorList

public void setOperatorList(List<Operator> operatorList)

unsetOperatorList

public void unsetOperatorList()

isSetOperatorList

public boolean isSetOperatorList()
Returns true if field operatorList is set (has been assigned a value) and false otherwise


setOperatorListIsSet

public void setOperatorListIsSet(boolean value)

isDone

public boolean isDone()

setDone

public void setDone(boolean done)

unsetDone

public void unsetDone()

isSetDone

public boolean isSetDone()
Returns true if field done is set (has been assigned a value) and false otherwise


setDoneIsSet

public void setDoneIsSet(boolean value)

isStarted

public boolean isStarted()

setStarted

public void setStarted(boolean started)

unsetStarted

public void unsetStarted()

isSetStarted

public boolean isSetStarted()
Returns true if field started is set (has been assigned a value) and false otherwise


setStartedIsSet

public void setStartedIsSet(boolean value)

setFieldValue

public void setFieldValue(Task._Fields field,
                          Object value)
Specified by:
setFieldValue in interface org.apache.thrift.TBase<Task,Task._Fields>

getFieldValue

public Object getFieldValue(Task._Fields field)
Specified by:
getFieldValue in interface org.apache.thrift.TBase<Task,Task._Fields>

isSet

public boolean isSet(Task._Fields field)
Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise

Specified by:
isSet in interface org.apache.thrift.TBase<Task,Task._Fields>

equals

public boolean equals(Object that)
Overrides:
equals in class Object

equals

public boolean equals(Task that)

hashCode

public int hashCode()
Overrides:
hashCode in class Object

compareTo

public int compareTo(Task other)
Specified by:
compareTo in interface Comparable<Task>

fieldForId

public Task._Fields fieldForId(int fieldId)
Specified by:
fieldForId in interface org.apache.thrift.TBase<Task,Task._Fields>

read

public void read(org.apache.thrift.protocol.TProtocol iprot)
          throws org.apache.thrift.TException
Specified by:
read in interface org.apache.thrift.TBase<Task,Task._Fields>
Throws:
org.apache.thrift.TException

write

public void write(org.apache.thrift.protocol.TProtocol oprot)
           throws org.apache.thrift.TException
Specified by:
write in interface org.apache.thrift.TBase<Task,Task._Fields>
Throws:
org.apache.thrift.TException

toString

public String toString()
Overrides:
toString in class Object

validate

public void validate()
              throws org.apache.thrift.TException
Throws:
org.apache.thrift.TException


Copyright © 2012 The Apache Software Foundation