Class DefaultAllocator
- java.lang.Object
-
- org.apache.hugegraph.computer.core.allocator.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 voidfreeEdge(org.apache.hugegraph.computer.core.allocator.RecyclerReference<org.apache.hugegraph.computer.core.graph.edge.Edge> reference)voidfreeVertex(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()
-
-
-
Method Detail
-
newVertex
public org.apache.hugegraph.computer.core.allocator.RecyclerReference<org.apache.hugegraph.computer.core.graph.vertex.Vertex> newVertex()
- Specified by:
newVertexin interfaceorg.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:
freeVertexin interfaceorg.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:
newEdgein interfaceorg.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:
freeEdgein interfaceorg.apache.hugegraph.computer.core.allocator.Allocator
-
-