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

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

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

See Also:
Serialized Form

Nested Class Summary
static class Operator._Fields
          The set of fields this struct contains, along with convenience methods for finding and manipulating them.
 
Field Summary
static Map<Operator._Fields,org.apache.thrift.meta_data.FieldMetaData> metaDataMap
           
 
Constructor Summary
Operator()
           
Operator(Operator other)
          Performs a deep copy on other.
Operator(String operatorId, OperatorType operatorType, Map<String,String> operatorAttributes, Map<String,Long> operatorCounters, boolean done, boolean started)
           
 
Method Summary
 void clear()
           
 int compareTo(Operator other)
           
 Operator deepCopy()
           
 boolean equals(Object that)
           
 boolean equals(Operator that)
           
 Operator._Fields fieldForId(int fieldId)
           
 Object getFieldValue(Operator._Fields field)
           
 Map<String,String> getOperatorAttributes()
           
 int getOperatorAttributesSize()
           
 Map<String,Long> getOperatorCounters()
           
 int getOperatorCountersSize()
           
 String getOperatorId()
           
 OperatorType getOperatorType()
           
 int hashCode()
           
 boolean isDone()
           
 boolean isSet(Operator._Fields field)
          Returns true if field corresponding to fieldID is set (has been asigned a value) and false otherwise
 boolean isSetDone()
          Returns true if field done is set (has been asigned a value) and false otherwise
 boolean isSetOperatorAttributes()
          Returns true if field operatorAttributes is set (has been asigned a value) and false otherwise
 boolean isSetOperatorCounters()
          Returns true if field operatorCounters is set (has been asigned a value) and false otherwise
 boolean isSetOperatorId()
          Returns true if field operatorId is set (has been asigned a value) and false otherwise
 boolean isSetOperatorType()
          Returns true if field operatorType is set (has been asigned a value) and false otherwise
 boolean isSetStarted()
          Returns true if field started is set (has been asigned a value) and false otherwise
 boolean isStarted()
           
 void putToOperatorAttributes(String key, String val)
           
 void putToOperatorCounters(String key, long val)
           
 void read(org.apache.thrift.protocol.TProtocol iprot)
           
 void setDone(boolean done)
           
 void setDoneIsSet(boolean value)
           
 void setFieldValue(Operator._Fields field, Object value)
           
 void setOperatorAttributes(Map<String,String> operatorAttributes)
           
 void setOperatorAttributesIsSet(boolean value)
           
 void setOperatorCounters(Map<String,Long> operatorCounters)
           
 void setOperatorCountersIsSet(boolean value)
           
 void setOperatorId(String operatorId)
           
 void setOperatorIdIsSet(boolean value)
           
 void setOperatorType(OperatorType operatorType)
           
 void setOperatorTypeIsSet(boolean value)
           
 void setStarted(boolean started)
           
 void setStartedIsSet(boolean value)
           
 String toString()
           
 void unsetDone()
           
 void unsetOperatorAttributes()
           
 void unsetOperatorCounters()
           
 void unsetOperatorId()
           
 void unsetOperatorType()
           
 void unsetStarted()
           
 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<Operator._Fields,org.apache.thrift.meta_data.FieldMetaData> metaDataMap
Constructor Detail

Operator

public Operator()

Operator

public Operator(String operatorId,
                OperatorType operatorType,
                Map<String,String> operatorAttributes,
                Map<String,Long> operatorCounters,
                boolean done,
                boolean started)

Operator

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

Method Detail

deepCopy

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

clear

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

getOperatorId

public String getOperatorId()

setOperatorId

public void setOperatorId(String operatorId)

unsetOperatorId

public void unsetOperatorId()

isSetOperatorId

public boolean isSetOperatorId()
Returns true if field operatorId is set (has been asigned a value) and false otherwise


setOperatorIdIsSet

public void setOperatorIdIsSet(boolean value)

getOperatorType

public OperatorType getOperatorType()
See Also:
OperatorType

setOperatorType

public void setOperatorType(OperatorType operatorType)
See Also:
OperatorType

unsetOperatorType

public void unsetOperatorType()

isSetOperatorType

public boolean isSetOperatorType()
Returns true if field operatorType is set (has been asigned a value) and false otherwise


setOperatorTypeIsSet

public void setOperatorTypeIsSet(boolean value)

getOperatorAttributesSize

public int getOperatorAttributesSize()

putToOperatorAttributes

public void putToOperatorAttributes(String key,
                                    String val)

getOperatorAttributes

public Map<String,String> getOperatorAttributes()

setOperatorAttributes

public void setOperatorAttributes(Map<String,String> operatorAttributes)

unsetOperatorAttributes

public void unsetOperatorAttributes()

isSetOperatorAttributes

public boolean isSetOperatorAttributes()
Returns true if field operatorAttributes is set (has been asigned a value) and false otherwise


setOperatorAttributesIsSet

public void setOperatorAttributesIsSet(boolean value)

getOperatorCountersSize

public int getOperatorCountersSize()

putToOperatorCounters

public void putToOperatorCounters(String key,
                                  long val)

getOperatorCounters

public Map<String,Long> getOperatorCounters()

setOperatorCounters

public void setOperatorCounters(Map<String,Long> operatorCounters)

unsetOperatorCounters

public void unsetOperatorCounters()

isSetOperatorCounters

public boolean isSetOperatorCounters()
Returns true if field operatorCounters is set (has been asigned a value) and false otherwise


setOperatorCountersIsSet

public void setOperatorCountersIsSet(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 asigned 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 asigned a value) and false otherwise


setStartedIsSet

public void setStartedIsSet(boolean value)

setFieldValue

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

getFieldValue

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

isSet

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

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

equals

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

equals

public boolean equals(Operator that)

hashCode

public int hashCode()
Overrides:
hashCode in class Object

compareTo

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

fieldForId

public Operator._Fields fieldForId(int fieldId)
Specified by:
fieldForId in interface org.apache.thrift.TBase<Operator,Operator._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<Operator,Operator._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<Operator,Operator._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 © 2011 The Apache Software Foundation