public class Graph extends java.lang.Object implements org.apache.thrift.TBase<Graph,Graph._Fields>, java.io.Serializable, java.lang.Cloneable
Modifier and Type | Class and Description |
---|---|
static class |
Graph._Fields
The set of fields this struct contains, along with convenience methods for finding and manipulating them.
|
Modifier and Type | Field and Description |
---|---|
static java.util.Map<Graph._Fields,org.apache.thrift.meta_data.FieldMetaData> |
metaDataMap |
Constructor and Description |
---|
Graph() |
Graph(Graph other)
Performs a deep copy on other.
|
Graph(NodeType nodeType,
java.util.List<java.lang.String> roots,
java.util.List<Adjacency> adjacencyList) |
Modifier and Type | Method and Description |
---|---|
void |
addToAdjacencyList(Adjacency elem) |
void |
addToRoots(java.lang.String elem) |
void |
clear() |
int |
compareTo(Graph other) |
Graph |
deepCopy() |
boolean |
equals(Graph that) |
boolean |
equals(java.lang.Object that) |
Graph._Fields |
fieldForId(int fieldId) |
java.util.List<Adjacency> |
getAdjacencyList() |
java.util.Iterator<Adjacency> |
getAdjacencyListIterator() |
int |
getAdjacencyListSize() |
java.lang.Object |
getFieldValue(Graph._Fields field) |
NodeType |
getNodeType() |
java.util.List<java.lang.String> |
getRoots() |
java.util.Iterator<java.lang.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(java.util.List<Adjacency> adjacencyList) |
void |
setAdjacencyListIsSet(boolean value) |
void |
setFieldValue(Graph._Fields field,
java.lang.Object value) |
void |
setNodeType(NodeType nodeType) |
void |
setNodeTypeIsSet(boolean value) |
void |
setRoots(java.util.List<java.lang.String> roots) |
void |
setRootsIsSet(boolean value) |
java.lang.String |
toString() |
void |
unsetAdjacencyList() |
void |
unsetNodeType() |
void |
unsetRoots() |
void |
validate() |
void |
write(org.apache.thrift.protocol.TProtocol oprot) |
public static final java.util.Map<Graph._Fields,org.apache.thrift.meta_data.FieldMetaData> metaDataMap
public Graph()
public Graph(NodeType nodeType, java.util.List<java.lang.String> roots, java.util.List<Adjacency> adjacencyList)
public Graph(Graph other)
public Graph deepCopy()
deepCopy
in interface org.apache.thrift.TBase<Graph,Graph._Fields>
public void clear()
clear
in interface org.apache.thrift.TBase<Graph,Graph._Fields>
public void unsetNodeType()
public boolean isSetNodeType()
public void setNodeTypeIsSet(boolean value)
public int getRootsSize()
public java.util.Iterator<java.lang.String> getRootsIterator()
public void addToRoots(java.lang.String elem)
public java.util.List<java.lang.String> getRoots()
public void setRoots(java.util.List<java.lang.String> roots)
public void unsetRoots()
public boolean isSetRoots()
public void setRootsIsSet(boolean value)
public int getAdjacencyListSize()
public java.util.Iterator<Adjacency> getAdjacencyListIterator()
public void addToAdjacencyList(Adjacency elem)
public java.util.List<Adjacency> getAdjacencyList()
public void setAdjacencyList(java.util.List<Adjacency> adjacencyList)
public void unsetAdjacencyList()
public boolean isSetAdjacencyList()
public void setAdjacencyListIsSet(boolean value)
public void setFieldValue(Graph._Fields field, java.lang.Object value)
setFieldValue
in interface org.apache.thrift.TBase<Graph,Graph._Fields>
public java.lang.Object getFieldValue(Graph._Fields field)
getFieldValue
in interface org.apache.thrift.TBase<Graph,Graph._Fields>
public boolean isSet(Graph._Fields field)
isSet
in interface org.apache.thrift.TBase<Graph,Graph._Fields>
public boolean equals(java.lang.Object that)
equals
in class java.lang.Object
public boolean equals(Graph that)
public int hashCode()
hashCode
in class java.lang.Object
public int compareTo(Graph other)
compareTo
in interface java.lang.Comparable<Graph>
public Graph._Fields fieldForId(int fieldId)
fieldForId
in interface org.apache.thrift.TBase<Graph,Graph._Fields>
public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException
read
in interface org.apache.thrift.TBase<Graph,Graph._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<Graph,Graph._Fields>
org.apache.thrift.TException
public java.lang.String toString()
toString
in class java.lang.Object
public void validate() throws org.apache.thrift.TException
org.apache.thrift.TException
Copyright © 2012 The Apache Software Foundation