Package org.neo4j.collections.timeline

Examples of org.neo4j.collections.timeline.Timeline


        Map<String, String> config = new HashMap<String, String>(TimelineNodeIndex.CONFIG);
        final Node startNode = ReferenceNodes.getReferenceNode(db);
        config.put(TimelineNodeIndex.START_NODE_ID, String.valueOf(startNode.getId()));
        IndexManager indexMan = db.index();
        Index<Node> index = indexMan.forNodes("timeline1", config);
        final Timeline timeline = ((TimelineNodeIndex) index).getTimeline();
        assertEquals(startNode, timeline.getUnderlyingNode());
        assertNotNull(index);

    }
View Full Code Here


            Map<String, String> config )
    {
        this.indexName = indexName;
//        Transaction tx = db.beginTx();
        Node underlyingNode = getOrCreateStartNode(db, config);
        timeline = new Timeline( indexName, underlyingNode, false, db );
//        tx.success();
//        tx.finish();
    }
View Full Code Here

TOP

Related Classes of org.neo4j.collections.timeline.Timeline

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.