public class Stage extends Object implements org.apache.thrift.TBase<Stage,Stage._Fields>, Serializable, Cloneable
Modifier and Type | Class and Description |
---|---|
static class |
Stage._Fields
The set of fields this struct contains, along with convenience methods for finding and manipulating them.
|
Modifier and Type | Field and Description |
---|---|
static Map<Stage._Fields,org.apache.thrift.meta_data.FieldMetaData> |
metaDataMap |
Constructor and Description |
---|
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) |
Modifier and Type | Method and Description |
---|---|
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) |
public static final Map<Stage._Fields,org.apache.thrift.meta_data.FieldMetaData> metaDataMap
public Stage()
public Stage(String stageId, StageType stageType, Map<String,String> stageAttributes, Map<String,Long> stageCounters, List<Task> taskList, boolean done, boolean started)
public Stage(Stage other)
public Stage deepCopy()
deepCopy
in interface org.apache.thrift.TBase<Stage,Stage._Fields>
public void clear()
clear
in interface org.apache.thrift.TBase<Stage,Stage._Fields>
public String getStageId()
public void setStageId(String stageId)
public void unsetStageId()
public boolean isSetStageId()
public void setStageIdIsSet(boolean value)
public void unsetStageType()
public boolean isSetStageType()
public void setStageTypeIsSet(boolean value)
public int getStageAttributesSize()
public void unsetStageAttributes()
public boolean isSetStageAttributes()
public void setStageAttributesIsSet(boolean value)
public int getStageCountersSize()
public void putToStageCounters(String key, long val)
public void unsetStageCounters()
public boolean isSetStageCounters()
public void setStageCountersIsSet(boolean value)
public int getTaskListSize()
public void addToTaskList(Task elem)
public void unsetTaskList()
public boolean isSetTaskList()
public void setTaskListIsSet(boolean value)
public boolean isDone()
public void setDone(boolean done)
public void unsetDone()
public boolean isSetDone()
public void setDoneIsSet(boolean value)
public boolean isStarted()
public void setStarted(boolean started)
public void unsetStarted()
public boolean isSetStarted()
public void setStartedIsSet(boolean value)
public void setFieldValue(Stage._Fields field, Object value)
setFieldValue
in interface org.apache.thrift.TBase<Stage,Stage._Fields>
public Object getFieldValue(Stage._Fields field)
getFieldValue
in interface org.apache.thrift.TBase<Stage,Stage._Fields>
public boolean isSet(Stage._Fields field)
isSet
in interface org.apache.thrift.TBase<Stage,Stage._Fields>
public boolean equals(Stage that)
public int compareTo(Stage other)
compareTo
in interface Comparable<Stage>
public Stage._Fields fieldForId(int fieldId)
fieldForId
in interface org.apache.thrift.TBase<Stage,Stage._Fields>
public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException
read
in interface org.apache.thrift.TBase<Stage,Stage._Fields>
org.apache.thrift.TException
public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException
write
in interface org.apache.thrift.TBase<Stage,Stage._Fields>
org.apache.thrift.TException
public void validate() throws org.apache.thrift.TException
org.apache.thrift.TException
Copyright © 2017 The Apache Software Foundation. All rights reserved.