Class WorkerStat
- java.lang.Object
-
- org.apache.hugegraph.computer.core.worker.WorkerStat
-
- All Implemented Interfaces:
java.lang.Iterable<PartitionStat>,org.apache.hugegraph.computer.core.io.Readable,org.apache.hugegraph.computer.core.io.Writable
public class WorkerStat extends java.lang.Object implements org.apache.hugegraph.computer.core.io.Readable, org.apache.hugegraph.computer.core.io.Writable, java.lang.Iterable<PartitionStat>
-
-
Constructor Summary
Constructors Constructor Description WorkerStat()WorkerStat(int workerId)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidadd(PartitionStat stat)booleanequals(java.lang.Object obj)PartitionStatget(int index)inthashCode()java.util.Iterator<PartitionStat>iterator()voidread(org.apache.hugegraph.computer.core.io.RandomAccessInput in)intsize()java.lang.StringtoString()intworkerId()voidwrite(org.apache.hugegraph.computer.core.io.RandomAccessOutput out)
-
-
-
Method Detail
-
workerId
public int workerId()
-
add
public void add(PartitionStat stat)
-
get
public PartitionStat get(int index)
-
size
public int size()
-
read
public void read(org.apache.hugegraph.computer.core.io.RandomAccessInput in) throws java.io.IOException- Specified by:
readin interfaceorg.apache.hugegraph.computer.core.io.Readable- Throws:
java.io.IOException
-
write
public void write(org.apache.hugegraph.computer.core.io.RandomAccessOutput out) throws java.io.IOException- Specified by:
writein interfaceorg.apache.hugegraph.computer.core.io.Writable- Throws:
java.io.IOException
-
iterator
public java.util.Iterator<PartitionStat> iterator()
- Specified by:
iteratorin interfacejava.lang.Iterable<PartitionStat>
-
equals
public boolean equals(java.lang.Object obj)
- Overrides:
equalsin classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCodein classjava.lang.Object
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
-