Examples of NodeStruct


Examples of org.neo4j.batchimport.structs.NodeStruct

    void run() {
        RingBuffer<NodeStruct> ringBuffer = incomingEventDisruptor.start();
        long time = System.currentTimeMillis();
        for (long nodeId = 0; nodeId < nodesToCreate; nodeId++) {
            long sequence = ringBuffer.next();
            NodeStruct nodeStruct = ringBuffer.get(sequence).init();

            nodeStructFactory.fillStruct(nodeId,nodeStruct);

            if (nodeId % (nodesToCreate / 100) == 0) {
                log.info(nodeId + " " + (System.currentTimeMillis()-time)+" ms.");
View Full Code Here

Examples of org.neo4j.batchimport.structs.NodeStruct

            for (int i = 0; i < MAX_RELS_PER_NODE; i++) TestNodeStructFactory.REL_OFFSETS[i] = 1 << 2 * i;
        }

        @Override
        public NodeStruct newInstance() {
            return new NodeStruct(NODE_PROPERTY_COUNT);
        }
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.