Examples of RestIndexManager


Examples of org.neo4j.rest.graphdb.index.RestIndexManager

    public void setResultConverter(ResultConverter resultConverter) {
       this.resultConverter = resultConverter;
    }

    private void removeFromIndexes(Node node) {
        final RestIndexManager indexManager = index();
        for (String indexName : indexManager.nodeIndexNames()) {
            indexManager.forNodes(indexName).remove(node);
        }
    }
View Full Code Here

Examples of org.neo4j.rest.graphdb.index.RestIndexManager

            indexManager.forNodes(indexName).remove(node);
        }
    }

    private void removeFromIndexes(Relationship relationship) {
        final RestIndexManager indexManager = index();
        for (String indexName : indexManager.relationshipIndexNames()) {
            indexManager.forRelationships(indexName).remove(relationship);
        }
    }
View Full Code Here

Examples of org.neo4j.rest.graphdb.index.RestIndexManager

    public void setResultConverter(ResultConverter resultConverter) {
       this.resultConverter = resultConverter;
    }

    private void removeFromIndexes(Node node) {
        final RestIndexManager indexManager = index();
        for (String indexName : indexManager.nodeIndexNames()) {
            indexManager.forNodes(indexName).remove(node);
        }
    }
View Full Code Here

Examples of org.neo4j.rest.graphdb.index.RestIndexManager

            indexManager.forNodes(indexName).remove(node);
        }
    }

    private void removeFromIndexes(Relationship relationship) {
        final RestIndexManager indexManager = index();
        for (String indexName : indexManager.relationshipIndexNames()) {
            indexManager.forRelationships(indexName).remove(relationship);
        }
    }
View Full Code Here

Examples of org.neo4j.rest.graphdb.index.RestIndexManager

    this.restAPI.getIndex("i do not exist");
  }
 
  @Test
  public void testIndexForNodes(){
    RestIndexManager index = (RestIndexManager) getRestGraphDb().index();
         Index<Node> testIndex = index.forNodes("indexName");
         assertTrue(index.existsForNodes("indexName"));
  }
View Full Code Here

Examples of org.neo4j.rest.graphdb.index.RestIndexManager

         assertTrue(index.existsForNodes("indexName"));
  }
 
  @Test
  public void testGetIndexForNodes(){
    RestIndexManager index = (RestIndexManager) getRestGraphDb().index();
      Index<Node> testIndex = index.forNodes("indexName");
      Assert.assertEquals(testIndex.getName(), this.restAPI.getIndex("indexName").getName());     
  }
View Full Code Here

Examples of org.neo4j.rest.graphdb.index.RestIndexManager

  }
 
  @Test
  public void testCreateRestAPIIndexForNodes(){   
    this.restAPI.createIndex(Node.class, "indexName", LuceneIndexImplementation.FULLTEXT_CONFIG);
    RestIndexManager index = (RestIndexManager) getRestGraphDb().index();
        assertTrue(index.existsForNodes("indexName"));
  }
View Full Code Here

Examples of org.neo4j.rest.graphdb.index.RestIndexManager

  }
 
  @Test
  public void testForDoubleCreatedIndexForNodesWithSameParamsWithoutFullText() {
    this.restAPI.createIndex(Node.class, "indexName", LuceneIndexImplementation.EXACT_CONFIG);   
    RestIndexManager index = (RestIndexManager) getRestGraphDb().index();
         Index<Node> testIndex = index.forNodes("indexName");      
  }
View Full Code Here

Examples of org.neo4j.rest.graphdb.index.RestIndexManager

  }
 
  @Test (expected = IllegalArgumentException.class)
  public void testForDoubleCreatedIndexForNodesWithEmptyParams() {
    this.restAPI.createIndex(Node.class, "indexName", LuceneIndexImplementation.FULLTEXT_CONFIG);
    RestIndexManager index = (RestIndexManager) getRestGraphDb().index();
         Index<Node> testIndex = index.forNodes("indexName", new HashMap<String, String>());      
  }
View Full Code Here

Examples of org.neo4j.rest.graphdb.index.RestIndexManager

         Index<Node> testIndex = index.forNodes("indexName", new HashMap<String, String>());      
  }
 
  @Test (expected = IllegalArgumentException.class)
  public void testForDoubleCreatedIndexForNodesWithEmptyParamsReversed() {
    RestIndexManager index = (RestIndexManager) getRestGraphDb().index();
         Index<Node> testIndex = index.forNodes("indexName", new HashMap<String, String>());  
    this.restAPI.createIndex(Node.class, "indexName", LuceneIndexImplementation.FULLTEXT_CONFIG);      
  }
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.