Examples of dropKeyIndex()


Examples of com.tinkerpop.blueprints.KeyIndexableGraph.dropKeyIndex()

        for (Vertex vertexToRemove : verticesToRemove) {
            graph.removeVertex(vertexToRemove);
        }

        for (String key : graph.getIndexedKeys(Vertex.class)) {
            graph.dropKeyIndex(key, Vertex.class);
        }

        for (String key : graph.getIndexedKeys(Edge.class)) {
            graph.dropKeyIndex(key, Edge.class);
        }
View Full Code Here

Examples of com.tinkerpop.blueprints.KeyIndexableGraph.dropKeyIndex()

        for (String key : graph.getIndexedKeys(Vertex.class)) {
            graph.dropKeyIndex(key, Vertex.class);
        }

        for (String key : graph.getIndexedKeys(Edge.class)) {
            graph.dropKeyIndex(key, Edge.class);
        }

        for (Index idx : idxGraph.getIndices()) {
            idxGraph.dropIndex(idx.getIndexName());
        }
View Full Code Here

Examples of com.tinkerpop.blueprints.KeyIndexableGraph.dropKeyIndex()

    }

    public void testRemoveKeyIndexCannotAcceptNullArgumentForClass() {
        KeyIndexableGraph graph = (KeyIndexableGraph) graphTest.generateGraph();
        try {
            graph.dropKeyIndex("test", null);
        } catch (IllegalArgumentException iae) {
            return;
        } finally {
            graph.shutdown();
        }
View Full Code Here

Examples of com.tinkerpop.blueprints.KeyIndexableGraph.dropKeyIndex()

            assertTrue(false);
        } catch (UnsupportedOperationException e) {
            assertTrue(true);
        }
        try {
            graph.dropKeyIndex("blah", Vertex.class);
            assertTrue(false);
        } catch (UnsupportedOperationException e) {
            assertTrue(true);
        }
    }
View Full Code Here

Examples of com.tinkerpop.blueprints.KeyIndexableGraph.dropKeyIndex()

        final RexsterApplicationGraph rag = this.getRexsterApplicationGraph(graphName);
        final KeyIndexableGraph graph = this.getKeyIndexableGraph(graphName);
       
        try {
            graph.dropKeyIndex(keyName, keyClass);

            rag.tryCommit();

            this.resultObject.put(Tokens.QUERY_TIME, this.sh.stopWatch());
        } catch (JSONException ex) {
View Full Code Here

Examples of com.tinkerpop.blueprints.impls.orient.OrientBaseGraph.dropKeyIndex()

  @Override
  public <T extends Element> void dropKeyIndex(final String key, final Class<T> elementClass) {
    final OrientBaseGraph g = acquire();
    try {
      g.dropKeyIndex(key, elementClass);
    } finally {
      g.shutdown();
    }
  }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.