Package org.neo4j.collections.indexedrelationship

Examples of org.neo4j.collections.indexedrelationship.IndexedRelationship$DirectRelationship


    return (ComparablePropertyType<T>) getByName(getDb(), (String)getNode().getProperty(PROPERTY_TYPE));
  }
 
  @Override
  public SortableBinaryEdge<T> createEdge(Vertex startVertex, Vertex endVertex) {
        IndexedRelationship idxRel = new IndexedRelationship( startVertex.getNode(),
            DynamicRelationshipType.withName(this.getName()), Direction.OUTGOING );
        if ( !idxRel.exists() )
        {
            PropertySortedTree<T> propertySortedTree = new PropertySortedTree<T>( getDb().getGraphDatabaseService(),
                getPropertyType(), true, getName() );
            idxRel.create( propertySortedTree );
        }
    Relationship rel = idxRel.createRelationshipTo(endVertex.getNode());
    return new SortableBinaryEdgeImpl<T>(db, rel.getId(), idxRel);
  }
View Full Code Here

TOP

Related Classes of org.neo4j.collections.indexedrelationship.IndexedRelationship$DirectRelationship

Copyright © 2018 www.massapicom. 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.