|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectde.hpi.fgis.voidgen.hadoop.closure.NodeXOrId
public class NodeXOrId
Provides a container that contains either a node of a graph or a cluster identifier.
Field Summary | |
---|---|
(package private) ClusterId |
id
The identifier. |
(package private) CloneableText |
node
The node. |
Constructor Summary | |
---|---|
NodeXOrId()
Default constructor. |
|
NodeXOrId(CloneableText node)
Constructor for creating a node object. |
|
NodeXOrId(ClusterId clusterId)
Constructor for creating an id object. |
Method Summary | |
---|---|
NodeXOrId |
clone()
|
int |
compareTo(NodeXOrId obj)
|
boolean |
equals(java.lang.Object o)
|
ClusterId |
getId()
Getter. |
CloneableText |
getNode()
Getter. |
int |
hashCode()
|
boolean |
isId()
|
boolean |
isNode()
|
void |
readFields(java.io.DataInput dataInput)
|
java.lang.String |
toString()
|
void |
write(java.io.DataOutput dataOutput)
|
Methods inherited from class java.lang.Object |
---|
finalize, getClass, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
ClusterId id
CloneableText node
Constructor Detail |
---|
public NodeXOrId()
public NodeXOrId(ClusterId clusterId)
clusterId
- Identifier of a cluster.public NodeXOrId(CloneableText node)
node
- The node.Method Detail |
---|
public NodeXOrId clone()
clone
in class java.lang.Object
public ClusterId getId()
public CloneableText getNode()
public boolean isId()
public boolean isNode()
public void readFields(java.io.DataInput dataInput) throws java.io.IOException
readFields
in interface org.apache.hadoop.io.Writable
java.io.IOException
public void write(java.io.DataOutput dataOutput) throws java.io.IOException
write
in interface org.apache.hadoop.io.Writable
java.io.IOException
public int compareTo(NodeXOrId obj)
compareTo
in interface java.lang.Comparable<NodeXOrId>
public boolean equals(java.lang.Object o)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
public java.lang.String toString()
toString
in class java.lang.Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |