Examples of RestIndexManager


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

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

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

    }

    @Override
    @SuppressWarnings("unchecked")
    public <T extends PropertyContainer> RestIndex<T> getIndex(String indexName) {
        final RestIndexManager index = this.index();
        if (index.existsForNodes(indexName)) return (RestIndex<T>) index.forNodes(indexName);
        if (index.existsForRelationships(indexName)) return (RestIndex<T>) index.forRelationships(indexName);
        throw new IllegalArgumentException("Index " + indexName + " does not yet exist");
    }
View Full Code Here

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

    private final RestCypherTransactionManager txManager = new RestCypherTransactionManager(this);

    protected RestAPICypherImpl(RestAPI restAPI) {
        this.restAPI = restAPI;
        restIndexOld = new RestIndexManager(restAPI);
    }
View Full Code Here

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

    }

    @Override
    @SuppressWarnings("unchecked")
    public <T extends PropertyContainer> RestIndex<T> getIndex(String indexName) {
        final RestIndexManager index = this.index();
        if (index.existsForNodes(indexName)) return (RestIndex<T>) index.forNodes(indexName);
        if (index.existsForRelationships(indexName)) return (RestIndex<T>) index.forRelationships(indexName);
        throw new IllegalArgumentException("Index " + indexName + " does not yet exist");
    }
View Full Code Here

Examples of org.springframework.data.neo4j.rest.index.RestIndexManager

        return RestRelationship.create((RestNode)startNode,(RestNode)endNode,type,props);
    }

    @Override
    public <T extends PropertyContainer> Index<T> getIndex(String indexName) {
        final RestIndexManager index = index();
        if (index.existsForNodes(indexName)) return (Index<T>) index.forNodes(indexName);
        if (index.existsForRelationships(indexName)) return (Index<T>) index.forRelationships(indexName);
        throw new IllegalArgumentException("Index "+indexName+" does not yet exist");
    }
View Full Code Here

Examples of org.springframework.data.neo4j.rest.index.RestIndexManager

        this.conversionService = conversionService;
    }

    public RestIndexManager index() {
        return new RestIndexManager( restRequest, this );
    }
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.