Class 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
      void add​(PartitionStat stat)  
      boolean equals​(java.lang.Object obj)  
      PartitionStat get​(int index)  
      int hashCode()  
      java.util.Iterator<PartitionStat> iterator()  
      void read​(org.apache.hugegraph.computer.core.io.RandomAccessInput in)  
      int size()  
      java.lang.String toString()  
      int workerId()  
      void write​(org.apache.hugegraph.computer.core.io.RandomAccessOutput out)  
      • Methods inherited from class java.lang.Object

        clone, finalize, getClass, notify, notifyAll, wait, wait, wait
      • Methods inherited from interface java.lang.Iterable

        forEach, spliterator
    • Constructor Detail

      • WorkerStat

        public WorkerStat()
      • WorkerStat

        public WorkerStat​(int workerId)
    • Method Detail

      • workerId

        public int workerId()
      • size

        public int size()
      • read

        public void read​(org.apache.hugegraph.computer.core.io.RandomAccessInput in)
                  throws java.io.IOException
        Specified by:
        read in interface org.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:
        write in interface org.apache.hugegraph.computer.core.io.Writable
        Throws:
        java.io.IOException
      • iterator

        public java.util.Iterator<PartitionStat> iterator()
        Specified by:
        iterator in interface java.lang.Iterable<PartitionStat>
      • equals

        public boolean equals​(java.lang.Object obj)
        Overrides:
        equals in class java.lang.Object
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class java.lang.Object
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object