Class DefaultAllocator

  • All Implemented Interfaces:
    org.apache.hugegraph.computer.core.allocator.Allocator

    public final class DefaultAllocator
    extends java.lang.Object
    implements org.apache.hugegraph.computer.core.allocator.Allocator
    • Constructor Summary

      Constructors 
      Constructor Description
      DefaultAllocator​(org.apache.hugegraph.computer.core.config.Config config, org.apache.hugegraph.computer.core.graph.GraphFactory factory)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void freeEdge​(org.apache.hugegraph.computer.core.allocator.RecyclerReference<org.apache.hugegraph.computer.core.graph.edge.Edge> reference)  
      void freeVertex​(org.apache.hugegraph.computer.core.allocator.RecyclerReference<org.apache.hugegraph.computer.core.graph.vertex.Vertex> reference)  
      org.apache.hugegraph.computer.core.allocator.RecyclerReference<org.apache.hugegraph.computer.core.graph.edge.Edge> newEdge()  
      org.apache.hugegraph.computer.core.allocator.RecyclerReference<org.apache.hugegraph.computer.core.graph.vertex.Vertex> newVertex()  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • DefaultAllocator

        public DefaultAllocator​(org.apache.hugegraph.computer.core.config.Config config,
                                org.apache.hugegraph.computer.core.graph.GraphFactory factory)
    • Method Detail

      • newVertex

        public org.apache.hugegraph.computer.core.allocator.RecyclerReference<org.apache.hugegraph.computer.core.graph.vertex.Vertex> newVertex()
        Specified by:
        newVertex in interface org.apache.hugegraph.computer.core.allocator.Allocator
      • freeVertex

        public void freeVertex​(org.apache.hugegraph.computer.core.allocator.RecyclerReference<org.apache.hugegraph.computer.core.graph.vertex.Vertex> reference)
        Specified by:
        freeVertex in interface org.apache.hugegraph.computer.core.allocator.Allocator
      • newEdge

        public org.apache.hugegraph.computer.core.allocator.RecyclerReference<org.apache.hugegraph.computer.core.graph.edge.Edge> newEdge()
        Specified by:
        newEdge in interface org.apache.hugegraph.computer.core.allocator.Allocator
      • freeEdge

        public void freeEdge​(org.apache.hugegraph.computer.core.allocator.RecyclerReference<org.apache.hugegraph.computer.core.graph.edge.Edge> reference)
        Specified by:
        freeEdge in interface org.apache.hugegraph.computer.core.allocator.Allocator