public class Graph extends Object implements org.apache.thrift.TBase<Graph,Graph._Fields>, Serializable, 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 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,
List<String> roots,
List<Adjacency> adjacencyList) |
| Modifier and Type | Method and Description |
|---|---|
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) |
public static final Map<Graph._Fields,org.apache.thrift.meta_data.FieldMetaData> metaDataMap
public Graph()
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 void addToRoots(String elem)
public void unsetRoots()
public boolean isSetRoots()
public void setRootsIsSet(boolean value)
public int getAdjacencyListSize()
public void addToAdjacencyList(Adjacency elem)
public void unsetAdjacencyList()
public boolean isSetAdjacencyList()
public void setAdjacencyListIsSet(boolean value)
public void setFieldValue(Graph._Fields field, Object value)
setFieldValue in interface org.apache.thrift.TBase<Graph,Graph._Fields>public 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(Graph that)
public int compareTo(Graph other)
compareTo in interface 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.TExceptionpublic 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.TExceptionpublic void validate()
throws org.apache.thrift.TException
org.apache.thrift.TExceptionCopyright © 2017 The Apache Software Foundation. All rights reserved.