Package io.hgraphdb

Class HBaseGraph

  • All Implemented Interfaces:
    AutoCloseable, org.apache.tinkerpop.gremlin.structure.Graph, org.apache.tinkerpop.gremlin.structure.util.Host

    public class HBaseGraph
    extends Object
    implements org.apache.tinkerpop.gremlin.structure.Graph
    • Constructor Detail

      • HBaseGraph

        public HBaseGraph​(org.apache.commons.configuration2.Configuration cfg)
      • HBaseGraph

        public HBaseGraph​(String graphNamespace,
                          String zkHosts)
      • HBaseGraph

        public HBaseGraph​(String graphNamespace,
                          String zkHosts,
                          String znodeParent)
      • HBaseGraph

        public HBaseGraph​(HBaseGraphConfiguration config,
                          org.apache.hadoop.hbase.client.Connection connection)
    • Method Detail

      • getEdgeModel

        public EdgeModel getEdgeModel()
      • isLazyLoading

        public boolean isLazyLoading()
      • getLoadingBatchSize

        public int getLoadingBatchSize()
      • addVertex

        public org.apache.tinkerpop.gremlin.structure.Vertex addVertex​(Object... keyValues)
        Specified by:
        addVertex in interface org.apache.tinkerpop.gremlin.structure.Graph
      • vertices

        public Iterator<org.apache.tinkerpop.gremlin.structure.Vertex> vertices​(Object... vertexIds)
        Specified by:
        vertices in interface org.apache.tinkerpop.gremlin.structure.Graph
      • vertex

        public org.apache.tinkerpop.gremlin.structure.Vertex vertex​(Object id)
      • findOrCreateVertex

        public org.apache.tinkerpop.gremlin.structure.Vertex findOrCreateVertex​(Object id)
      • findVertex

        protected org.apache.tinkerpop.gremlin.structure.Vertex findVertex​(Object id,
                                                                           boolean createIfNotFound)
      • removeVertex

        public void removeVertex​(org.apache.tinkerpop.gremlin.structure.Vertex vertex)
      • allVertices

        public Iterator<org.apache.tinkerpop.gremlin.structure.Vertex> allVertices()
      • allVertices

        public Iterator<org.apache.tinkerpop.gremlin.structure.Vertex> allVertices​(Object fromId,
                                                                                   int limit)
      • verticesByLabel

        public Iterator<org.apache.tinkerpop.gremlin.structure.Vertex> verticesByLabel​(String label)
      • verticesByLabel

        public Iterator<org.apache.tinkerpop.gremlin.structure.Vertex> verticesByLabel​(String label,
                                                                                       String key,
                                                                                       Object value)
      • verticesInRange

        public Iterator<org.apache.tinkerpop.gremlin.structure.Vertex> verticesInRange​(String label,
                                                                                       String key,
                                                                                       Object inclusiveFromValue,
                                                                                       Object exclusiveToValue)
      • verticesWithLimit

        public Iterator<org.apache.tinkerpop.gremlin.structure.Vertex> verticesWithLimit​(String label,
                                                                                         String key,
                                                                                         Object fromValue,
                                                                                         int limit)
      • verticesWithLimit

        public Iterator<org.apache.tinkerpop.gremlin.structure.Vertex> verticesWithLimit​(String label,
                                                                                         String key,
                                                                                         Object fromValue,
                                                                                         int limit,
                                                                                         boolean reversed)
      • addEdge

        public org.apache.tinkerpop.gremlin.structure.Edge addEdge​(org.apache.tinkerpop.gremlin.structure.Vertex outVertex,
                                                                   org.apache.tinkerpop.gremlin.structure.Vertex inVertex,
                                                                   String label,
                                                                   Object... keyValues)
      • edges

        public Iterator<org.apache.tinkerpop.gremlin.structure.Edge> edges​(Object... edgeIds)
        Specified by:
        edges in interface org.apache.tinkerpop.gremlin.structure.Graph
      • edge

        public org.apache.tinkerpop.gremlin.structure.Edge edge​(Object id)
      • findOrCreateEdge

        public org.apache.tinkerpop.gremlin.structure.Edge findOrCreateEdge​(Object id)
      • findEdge

        protected org.apache.tinkerpop.gremlin.structure.Edge findEdge​(Object id,
                                                                       boolean createIfNotFound)
      • removeEdge

        public void removeEdge​(org.apache.tinkerpop.gremlin.structure.Edge edge)
      • allEdges

        public Iterator<org.apache.tinkerpop.gremlin.structure.Edge> allEdges()
      • allEdges

        public Iterator<org.apache.tinkerpop.gremlin.structure.Edge> allEdges​(Object fromId,
                                                                              int limit)
      • compute

        public <C extends org.apache.tinkerpop.gremlin.process.computer.GraphComputer> C compute​(Class<C> graphComputerClass)
        Specified by:
        compute in interface org.apache.tinkerpop.gremlin.structure.Graph
      • compute

        public org.apache.tinkerpop.gremlin.process.computer.GraphComputer compute()
        Specified by:
        compute in interface org.apache.tinkerpop.gremlin.structure.Graph
      • tx

        public org.apache.tinkerpop.gremlin.structure.Transaction tx()
        Specified by:
        tx in interface org.apache.tinkerpop.gremlin.structure.Graph
      • variables

        public org.apache.tinkerpop.gremlin.structure.Graph.Variables variables()
        Specified by:
        variables in interface org.apache.tinkerpop.gremlin.structure.Graph
      • configuration

        public HBaseGraphConfiguration configuration()
        Specified by:
        configuration in interface org.apache.tinkerpop.gremlin.structure.Graph
      • connection

        public org.apache.hadoop.hbase.client.Connection connection()
      • features

        public org.apache.tinkerpop.gremlin.structure.Graph.Features features()
        Specified by:
        features in interface org.apache.tinkerpop.gremlin.structure.Graph
      • refreshSchema

        protected void refreshSchema()
      • createIndex

        public void createIndex​(ElementType type,
                                String label,
                                String propertyKey,
                                boolean isUnique)
      • createIndex

        public void createIndex​(ElementType type,
                                String label,
                                String propertyKey,
                                boolean isUnique,
                                boolean populate,
                                boolean async)
      • connectLabels

        public void connectLabels​(String outVertexLabel,
                                  String edgeLabel,
                                  String inVertexLabel)
      • validateEdge

        public void validateEdge​(String label,
                                 Object id,
                                 Map<String,​Object> properties,
                                 org.apache.tinkerpop.gremlin.structure.Vertex inVertex,
                                 org.apache.tinkerpop.gremlin.structure.Vertex outVertex)
      • close

        public void close()
        Specified by:
        close in interface AutoCloseable
        Specified by:
        close in interface org.apache.tinkerpop.gremlin.structure.Graph
      • close

        protected void close​(boolean clear)
      • drop

        public void drop()
      • dump

        public void dump()