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

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

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

See Also:
Serialized Form

Nested Class Summary
static class QueryPlan._Fields
          The set of fields this struct contains, along with convenience methods for finding and manipulating them.
 
Field Summary
static Map<QueryPlan._Fields,org.apache.thrift.meta_data.FieldMetaData> metaDataMap
           
 
Constructor Summary
QueryPlan()
           
QueryPlan(List<Query> queries, boolean done, boolean started)
           
QueryPlan(QueryPlan other)
          Performs a deep copy on other.
 
Method Summary
 void addToQueries(Query elem)
           
 void clear()
           
 int compareTo(QueryPlan other)
           
 QueryPlan deepCopy()
           
 boolean equals(Object that)
           
 boolean equals(QueryPlan that)
           
 QueryPlan._Fields fieldForId(int fieldId)
           
 Object getFieldValue(QueryPlan._Fields field)
           
 List<Query> getQueries()
           
 Iterator<Query> getQueriesIterator()
           
 int getQueriesSize()
           
 int hashCode()
           
 boolean isDone()
           
 boolean isSet(QueryPlan._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 isSetQueries()
          Returns true if field queries 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 isStarted()
           
 void read(org.apache.thrift.protocol.TProtocol iprot)
           
 void setDone(boolean done)
           
 void setDoneIsSet(boolean value)
           
 void setFieldValue(QueryPlan._Fields field, Object value)
           
 void setQueries(List<Query> queries)
           
 void setQueriesIsSet(boolean value)
           
 void setStarted(boolean started)
           
 void setStartedIsSet(boolean value)
           
 String toString()
           
 void unsetDone()
           
 void unsetQueries()
           
 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<QueryPlan._Fields,org.apache.thrift.meta_data.FieldMetaData> metaDataMap
Constructor Detail

QueryPlan

public QueryPlan()

QueryPlan

public QueryPlan(List<Query> queries,
                 boolean done,
                 boolean started)

QueryPlan

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

Method Detail

deepCopy

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

clear

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

getQueriesSize

public int getQueriesSize()

getQueriesIterator

public Iterator<Query> getQueriesIterator()

addToQueries

public void addToQueries(Query elem)

getQueries

public List<Query> getQueries()

setQueries

public void setQueries(List<Query> queries)

unsetQueries

public void unsetQueries()

isSetQueries

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


setQueriesIsSet

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

getFieldValue

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

isSet

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

equals

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

equals

public boolean equals(QueryPlan that)

hashCode

public int hashCode()
Overrides:
hashCode in class Object

compareTo

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

fieldForId

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