Package org.neo4j.batchimport.structs

Examples of org.neo4j.batchimport.structs.NodeStruct


        "neostore.propertystore.db.strings.mapped_memory","2G"
);
    }
        @Override
        public NodeStruct newInstance() {
            return new NodeStruct(propsPerNode);
        }
View Full Code Here


        RingBuffer<NodeStruct> ringBuffer = disruptor.start();
        long time = System.currentTimeMillis();
        for (long nodeId = 0; nodeId < nodesToCreate; nodeId++) {
            if (stop) break;
            long sequence = ringBuffer.next();
            NodeStruct nodeStruct = ringBuffer.get(sequence).init();

            nodeStructFactory.fillStruct(nodeId,nodeStruct);

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

            this.nodesToCreate = nodesToCreate;
        }

        @Override
        public NodeStruct newInstance() {
            return new NodeStruct(NODE_PROPERTY_COUNT);
        }
View Full Code Here

*/
public class DisruptorBatchInserterTest {

    @Test
    public void testSelfRelationship() throws Exception {
        final NodeStruct struct = new NodeStruct(0);
        struct.addRel(0, true, 0);
        new RelationshipIdHandler().onEvent(struct,0,false);
        //new RelationshipWriteHandler(new RelationshipRecordWriter(neoStore.getRelationshipStore())).onEvent(struct,0,false);
    }
View Full Code Here

    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

            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

Related Classes of org.neo4j.batchimport.structs.NodeStruct

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.