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

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

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

See Also:
Serialized Form

Nested Class Summary
static class Graph._Fields
          The set of fields this struct contains, along with convenience methods for finding and manipulating them.
 
Field Summary
static Map<Graph._Fields,org.apache.thrift.meta_data.FieldMetaData> metaDataMap
           
 
Constructor Summary
Graph()
           
Graph(Graph other)
          Performs a deep copy on other.
Graph(NodeType nodeType, List<String> roots, List<Adjacency> adjacencyList)
           
 
Method Summary
 void addToAdjacencyList(Adjacency elem)
           
 void addToRoots(String elem)
           
 void clear()
           
 int compareTo(Graph other)
           
 Graph deepCopy()
           
 boolean equals(Graph that)
           
 boolean equals(Object that)
           
 Graph._Fields fieldForId(int fieldId)
           
 List<Adjacency> getAdjacencyList()
           
 Iterator<Adjacency> getAdjacencyListIterator()
           
 int getAdjacencyListSize()
           
 Object getFieldValue(Graph._Fields field)
           
 NodeType getNodeType()
           
 List<String> getRoots()
           
 Iterator<String> getRootsIterator()
           
 int getRootsSize()
           
 int hashCode()
           
 boolean isSet(Graph._Fields field)
          Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise
 boolean isSetAdjacencyList()
          Returns true if field adjacencyList is set (has been assigned a value) and false otherwise
 boolean isSetNodeType()
          Returns true if field nodeType is set (has been assigned a value) and false otherwise
 boolean isSetRoots()
          Returns true if field roots is set (has been assigned a value) and false otherwise
 void read(org.apache.thrift.protocol.TProtocol iprot)
           
 void setAdjacencyList(List<Adjacency> adjacencyList)
           
 void setAdjacencyListIsSet(boolean value)
           
 void setFieldValue(Graph._Fields field, Object value)
           
 void setNodeType(NodeType nodeType)
           
 void setNodeTypeIsSet(boolean value)
           
 void setRoots(List<String> roots)
           
 void setRootsIsSet(boolean value)
           
 String toString()
           
 void unsetAdjacencyList()
           
 void unsetNodeType()
           
 void unsetRoots()
           
 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<Graph._Fields,org.apache.thrift.meta_data.FieldMetaData> metaDataMap
Constructor Detail

Graph

public Graph()

Graph

public Graph(NodeType nodeType,
             List<String> roots,
             List<Adjacency> adjacencyList)

Graph

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

Method Detail

deepCopy

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

clear

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

getNodeType

public NodeType getNodeType()
See Also:
NodeType

setNodeType

public void setNodeType(NodeType nodeType)
See Also:
NodeType

unsetNodeType

public void unsetNodeType()

isSetNodeType

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


setNodeTypeIsSet

public void setNodeTypeIsSet(boolean value)

getRootsSize

public int getRootsSize()

getRootsIterator

public Iterator<String> getRootsIterator()

addToRoots

public void addToRoots(String elem)

getRoots

public List<String> getRoots()

setRoots

public void setRoots(List<String> roots)

unsetRoots

public void unsetRoots()

isSetRoots

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


setRootsIsSet

public void setRootsIsSet(boolean value)

getAdjacencyListSize

public int getAdjacencyListSize()

getAdjacencyListIterator

public Iterator<Adjacency> getAdjacencyListIterator()

addToAdjacencyList

public void addToAdjacencyList(Adjacency elem)

getAdjacencyList

public List<Adjacency> getAdjacencyList()

setAdjacencyList

public void setAdjacencyList(List<Adjacency> adjacencyList)

unsetAdjacencyList

public void unsetAdjacencyList()

isSetAdjacencyList

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


setAdjacencyListIsSet

public void setAdjacencyListIsSet(boolean value)

setFieldValue

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

getFieldValue

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

isSet

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

equals

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

equals

public boolean equals(Graph that)

hashCode

public int hashCode()
Overrides:
hashCode in class Object

compareTo

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

fieldForId

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