Class BuiltinGraphFactory

  • All Implemented Interfaces:
    org.apache.hugegraph.computer.core.graph.GraphFactory

    public final class BuiltinGraphFactory
    extends java.lang.Object
    implements org.apache.hugegraph.computer.core.graph.GraphFactory
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      org.apache.hugegraph.computer.core.graph.edge.Edge createEdge()  
      org.apache.hugegraph.computer.core.graph.edge.Edge createEdge​(java.lang.String label, java.lang.String name, org.apache.hugegraph.computer.core.graph.id.Id targetId)  
      org.apache.hugegraph.computer.core.graph.edge.Edge createEdge​(java.lang.String label, org.apache.hugegraph.computer.core.graph.id.Id targetId)  
      org.apache.hugegraph.computer.core.graph.edge.Edge createEdge​(org.apache.hugegraph.computer.core.graph.id.Id targetId)  
      org.apache.hugegraph.computer.core.graph.edge.Edges createEdges()  
      org.apache.hugegraph.computer.core.graph.edge.Edges createEdges​(int capacity)  
      org.apache.hugegraph.computer.core.graph.id.Id createId()  
      org.apache.hugegraph.computer.core.graph.id.Id createId​(long id)  
      org.apache.hugegraph.computer.core.graph.id.Id createId​(java.lang.String id)  
      org.apache.hugegraph.computer.core.graph.id.Id createId​(java.util.UUID id)  
      <V> java.util.List<V> createList()  
      <V> java.util.List<V> createList​(int capacity)  
      <K,​V>
      java.util.Map<K,​V>
      createMap()  
      org.apache.hugegraph.computer.core.graph.properties.Properties createProperties()  
      <V> java.util.Set<V> createSet()  
      <V> java.util.Set<V> createSet​(int capacity)  
      org.apache.hugegraph.computer.core.graph.value.Value createValue​(byte code)  
      org.apache.hugegraph.computer.core.graph.value.Value createValue​(org.apache.hugegraph.computer.core.graph.value.ValueType type)
      Create property value by type.
      org.apache.hugegraph.computer.core.graph.vertex.Vertex createVertex()  
      <V extends org.apache.hugegraph.computer.core.graph.value.Value>
      org.apache.hugegraph.computer.core.graph.vertex.Vertex
      createVertex​(java.lang.String label, org.apache.hugegraph.computer.core.graph.id.Id id, V value)  
      <V extends org.apache.hugegraph.computer.core.graph.value.Value>
      org.apache.hugegraph.computer.core.graph.vertex.Vertex
      createVertex​(org.apache.hugegraph.computer.core.graph.id.Id id, V value)  
      • Methods inherited from class java.lang.Object

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

      • BuiltinGraphFactory

        public BuiltinGraphFactory()
    • Method Detail

      • createId

        public org.apache.hugegraph.computer.core.graph.id.Id createId()
        Specified by:
        createId in interface org.apache.hugegraph.computer.core.graph.GraphFactory
      • createId

        public org.apache.hugegraph.computer.core.graph.id.Id createId​(long id)
        Specified by:
        createId in interface org.apache.hugegraph.computer.core.graph.GraphFactory
      • createId

        public org.apache.hugegraph.computer.core.graph.id.Id createId​(java.lang.String id)
        Specified by:
        createId in interface org.apache.hugegraph.computer.core.graph.GraphFactory
      • createId

        public org.apache.hugegraph.computer.core.graph.id.Id createId​(java.util.UUID id)
        Specified by:
        createId in interface org.apache.hugegraph.computer.core.graph.GraphFactory
      • createVertex

        public org.apache.hugegraph.computer.core.graph.vertex.Vertex createVertex()
        Specified by:
        createVertex in interface org.apache.hugegraph.computer.core.graph.GraphFactory
      • createVertex

        public <V extends org.apache.hugegraph.computer.core.graph.value.Value> org.apache.hugegraph.computer.core.graph.vertex.Vertex createVertex​(org.apache.hugegraph.computer.core.graph.id.Id id,
                                                                                                                                                    V value)
        Specified by:
        createVertex in interface org.apache.hugegraph.computer.core.graph.GraphFactory
      • createVertex

        public <V extends org.apache.hugegraph.computer.core.graph.value.Value> org.apache.hugegraph.computer.core.graph.vertex.Vertex createVertex​(java.lang.String label,
                                                                                                                                                    org.apache.hugegraph.computer.core.graph.id.Id id,
                                                                                                                                                    V value)
        Specified by:
        createVertex in interface org.apache.hugegraph.computer.core.graph.GraphFactory
      • createEdges

        public org.apache.hugegraph.computer.core.graph.edge.Edges createEdges()
        Specified by:
        createEdges in interface org.apache.hugegraph.computer.core.graph.GraphFactory
      • createEdges

        public org.apache.hugegraph.computer.core.graph.edge.Edges createEdges​(int capacity)
        Specified by:
        createEdges in interface org.apache.hugegraph.computer.core.graph.GraphFactory
      • createEdge

        public org.apache.hugegraph.computer.core.graph.edge.Edge createEdge()
        Specified by:
        createEdge in interface org.apache.hugegraph.computer.core.graph.GraphFactory
      • createEdge

        public org.apache.hugegraph.computer.core.graph.edge.Edge createEdge​(org.apache.hugegraph.computer.core.graph.id.Id targetId)
        Specified by:
        createEdge in interface org.apache.hugegraph.computer.core.graph.GraphFactory
      • createEdge

        public org.apache.hugegraph.computer.core.graph.edge.Edge createEdge​(java.lang.String label,
                                                                             org.apache.hugegraph.computer.core.graph.id.Id targetId)
        Specified by:
        createEdge in interface org.apache.hugegraph.computer.core.graph.GraphFactory
      • createEdge

        public org.apache.hugegraph.computer.core.graph.edge.Edge createEdge​(java.lang.String label,
                                                                             java.lang.String name,
                                                                             org.apache.hugegraph.computer.core.graph.id.Id targetId)
        Specified by:
        createEdge in interface org.apache.hugegraph.computer.core.graph.GraphFactory
      • createList

        public <V> java.util.List<V> createList()
        Specified by:
        createList in interface org.apache.hugegraph.computer.core.graph.GraphFactory
      • createList

        public <V> java.util.List<V> createList​(int capacity)
        Specified by:
        createList in interface org.apache.hugegraph.computer.core.graph.GraphFactory
      • createSet

        public <V> java.util.Set<V> createSet()
        Specified by:
        createSet in interface org.apache.hugegraph.computer.core.graph.GraphFactory
      • createSet

        public <V> java.util.Set<V> createSet​(int capacity)
        Specified by:
        createSet in interface org.apache.hugegraph.computer.core.graph.GraphFactory
      • createMap

        public <K,​V> java.util.Map<K,​V> createMap()
        Specified by:
        createMap in interface org.apache.hugegraph.computer.core.graph.GraphFactory
      • createProperties

        public org.apache.hugegraph.computer.core.graph.properties.Properties createProperties()
        Specified by:
        createProperties in interface org.apache.hugegraph.computer.core.graph.GraphFactory
      • createValue

        public org.apache.hugegraph.computer.core.graph.value.Value createValue​(byte code)
        Specified by:
        createValue in interface org.apache.hugegraph.computer.core.graph.GraphFactory
      • createValue

        public org.apache.hugegraph.computer.core.graph.value.Value createValue​(org.apache.hugegraph.computer.core.graph.value.ValueType type)
        Create property value by type.
        Specified by:
        createValue in interface org.apache.hugegraph.computer.core.graph.GraphFactory