Interface Partitioner

  • All Known Implementing Classes:
    HashPartitioner

    public interface Partitioner
    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      void init​(org.apache.hugegraph.computer.core.config.Config config)
      Initialize the partitioner with config.
      int partitionId​(org.apache.hugegraph.computer.core.graph.id.Id vertexId)
      Get the partition id by specified vertex id.
      int workerId​(int partitionId)
      Get the worker id by specified partition id.
    • Method Detail

      • init

        void init​(org.apache.hugegraph.computer.core.config.Config config)
        Initialize the partitioner with config.
      • partitionId

        int partitionId​(org.apache.hugegraph.computer.core.graph.id.Id vertexId)
        Get the partition id by specified vertex id.
      • workerId

        int workerId​(int partitionId)
        Get the worker id by specified partition id.