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

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

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

See Also:
Serialized Form

Nested Class Summary
static class Stage._Fields
          The set of fields this struct contains, along with convenience methods for finding and manipulating them.
 
Field Summary
static Map<Stage._Fields,org.apache.thrift.meta_data.FieldMetaData> metaDataMap
           
 
Constructor Summary
Stage()
           
Stage(Stage other)
          Performs a deep copy on other.
Stage(String stageId, StageType stageType, Map<String,String> stageAttributes, Map<String,Long> stageCounters, List<Task> taskList, boolean done, boolean started)
           
 
Method Summary
 void addToTaskList(Task elem)
           
 void clear()
           
 int compareTo(Stage other)
           
 Stage deepCopy()
           
 boolean equals(Object that)
           
 boolean equals(Stage that)
           
 Stage._Fields fieldForId(int fieldId)
           
 Object getFieldValue(Stage._Fields field)
           
 Map<String,String> getStageAttributes()
           
 int getStageAttributesSize()
           
 Map<String,Long> getStageCounters()
           
 int getStageCountersSize()
           
 String getStageId()
           
 StageType getStageType()
           
 List<Task> getTaskList()
           
 Iterator<Task> getTaskListIterator()
           
 int getTaskListSize()
           
 int hashCode()
           
 boolean isDone()
           
 boolean isSet(Stage._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 isSetStageAttributes()
          Returns true if field stageAttributes is set (has been assigned a value) and false otherwise
 boolean isSetStageCounters()
          Returns true if field stageCounters is set (has been assigned a value) and false otherwise
 boolean isSetStageId()
          Returns true if field stageId is set (has been assigned a value) and false otherwise
 boolean isSetStageType()
          Returns true if field stageType 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 isSetTaskList()
          Returns true if field taskList is set (has been assigned a value) and false otherwise
 boolean isStarted()
           
 void putToStageAttributes(String key, String val)
           
 void putToStageCounters(String key, long val)
           
 void read(org.apache.thrift.protocol.TProtocol iprot)
           
 void setDone(boolean done)
           
 void setDoneIsSet(boolean value)
           
 void setFieldValue(Stage._Fields field, Object value)
           
 void setStageAttributes(Map<String,String> stageAttributes)
           
 void setStageAttributesIsSet(boolean value)
           
 void setStageCounters(Map<String,Long> stageCounters)
           
 void setStageCountersIsSet(boolean value)
           
 void setStageId(String stageId)
           
 void setStageIdIsSet(boolean value)
           
 void setStageType(StageType stageType)
           
 void setStageTypeIsSet(boolean value)
           
 void setStarted(boolean started)
           
 void setStartedIsSet(boolean value)
           
 void setTaskList(List<Task> taskList)
           
 void setTaskListIsSet(boolean value)
           
 String toString()
           
 void unsetDone()
           
 void unsetStageAttributes()
           
 void unsetStageCounters()
           
 void unsetStageId()
           
 void unsetStageType()
           
 void unsetStarted()
           
 void unsetTaskList()
           
 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<Stage._Fields,org.apache.thrift.meta_data.FieldMetaData> metaDataMap
Constructor Detail

Stage

public Stage()

Stage

public Stage(String stageId,
             StageType stageType,
             Map<String,String> stageAttributes,
             Map<String,Long> stageCounters,
             List<Task> taskList,
             boolean done,
             boolean started)

Stage

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

Method Detail

deepCopy

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

clear

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

getStageId

public String getStageId()

setStageId

public void setStageId(String stageId)

unsetStageId

public void unsetStageId()

isSetStageId

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


setStageIdIsSet

public void setStageIdIsSet(boolean value)

getStageType

public StageType getStageType()
See Also:
StageType

setStageType

public void setStageType(StageType stageType)
See Also:
StageType

unsetStageType

public void unsetStageType()

isSetStageType

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


setStageTypeIsSet

public void setStageTypeIsSet(boolean value)

getStageAttributesSize

public int getStageAttributesSize()

putToStageAttributes

public void putToStageAttributes(String key,
                                 String val)

getStageAttributes

public Map<String,String> getStageAttributes()

setStageAttributes

public void setStageAttributes(Map<String,String> stageAttributes)

unsetStageAttributes

public void unsetStageAttributes()

isSetStageAttributes

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


setStageAttributesIsSet

public void setStageAttributesIsSet(boolean value)

getStageCountersSize

public int getStageCountersSize()

putToStageCounters

public void putToStageCounters(String key,
                               long val)

getStageCounters

public Map<String,Long> getStageCounters()

setStageCounters

public void setStageCounters(Map<String,Long> stageCounters)

unsetStageCounters

public void unsetStageCounters()

isSetStageCounters

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


setStageCountersIsSet

public void setStageCountersIsSet(boolean value)

getTaskListSize

public int getTaskListSize()

getTaskListIterator

public Iterator<Task> getTaskListIterator()

addToTaskList

public void addToTaskList(Task elem)

getTaskList

public List<Task> getTaskList()

setTaskList

public void setTaskList(List<Task> taskList)

unsetTaskList

public void unsetTaskList()

isSetTaskList

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


setTaskListIsSet

public void setTaskListIsSet(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(Stage._Fields field,
                          Object value)
Specified by:
setFieldValue in interface org.apache.thrift.TBase<Stage,Stage._Fields>

getFieldValue

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

isSet

public boolean isSet(Stage._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<Stage,Stage._Fields>

equals

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

equals

public boolean equals(Stage that)

hashCode

public int hashCode()
Overrides:
hashCode in class Object

compareTo

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

fieldForId

public Stage._Fields fieldForId(int fieldId)
Specified by:
fieldForId in interface org.apache.thrift.TBase<Stage,Stage._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<Stage,Stage._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<Stage,Stage._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