Package com.higherfrequencytrading.chronicle

Examples of com.higherfrequencytrading.chronicle.Excerpt.position()


        }
        excerpt.index(-1);
        int count = 0;
        while (excerpt.nextIndex()) {
            int length = (int) excerpt.readStopBit();
            String fix = ChronicleTools.asString(excerpt, excerpt.position(), length);
            assertTrue(fix.startsWith("8=FIX"));
            assertTrue(fix.endsWith(".")); // ^A is replaced with .
            assertEquals(8, fix.length() - fix.lastIndexOf(".10="));
            int pos = -1;
            while ((pos = fix.indexOf(".10=", pos + 1)) > 0)
View Full Code Here


        for (int i = -warmup; i < rows; i++) {
            if (i == 0)
                start = System.nanoTime();
            Excerpt record = pht.startRecord();
            record.writeInt(i);
            int pos = record.position();
            // field "c"
            record.append(i); // as text.
            record.write(xs, 0, pos + 120 - record.position());

            // field "pad"
View Full Code Here

            Excerpt record = pht.startRecord();
            record.writeInt(i);
            int pos = record.position();
            // field "c"
            record.append(i); // as text.
            record.write(xs, 0, pos + 120 - record.position());

            // field "pad"
            int pos2 = record.position();
            record.append(i); // as text.
            record.write(ys, 0, pos2 + 120 - record.position());
View Full Code Here

            // field "c"
            record.append(i); // as text.
            record.write(xs, 0, pos + 120 - record.position());

            // field "pad"
            int pos2 = record.position();
            record.append(i); // as text.
            record.write(ys, 0, pos2 + 120 - record.position());
            pht.endRecord(i);
        }
        long mid = System.nanoTime();
View Full Code Here

            record.write(xs, 0, pos + 120 - record.position());

            // field "pad"
            int pos2 = record.position();
            record.append(i); // as text.
            record.write(ys, 0, pos2 + 120 - record.position());
            pht.endRecord(i);
        }
        long mid = System.nanoTime();
/*
    def query_process(host, port, pipe_to_parent, requests_per, dbname, rows, check, id):
View Full Code Here

        for (int i = -warmup; i < rows; i++) {
            if (i == 0)
                start = System.nanoTime();
            record.startExcerpt(256);
            record.writeInt(i + warmup);
            int pos = record.position();
            // field "c"
            record.append(i + warmup); // as text.
            record.write(xs, 0, pos + 120 - record.position());

            // field "pad"
View Full Code Here

            record.startExcerpt(256);
            record.writeInt(i + warmup);
            int pos = record.position();
            // field "c"
            record.append(i + warmup); // as text.
            record.write(xs, 0, pos + 120 - record.position());

            // field "pad"
            int pos2 = record.position();
            record.append(i + warmup); // as text.
            record.write(ys, 0, pos2 + 120 - record.position());
View Full Code Here

            // field "c"
            record.append(i + warmup); // as text.
            record.write(xs, 0, pos + 120 - record.position());

            // field "pad"
            int pos2 = record.position();
            record.append(i + warmup); // as text.
            record.write(ys, 0, pos2 + 120 - record.position());
            record.finish();
        }
        long mid = System.nanoTime();
View Full Code Here

            record.write(xs, 0, pos + 120 - record.position());

            // field "pad"
            int pos2 = record.position();
            record.append(i + warmup); // as text.
            record.write(ys, 0, pos2 + 120 - record.position());
            record.finish();
        }
        long mid = System.nanoTime();
/*
    def query_process(host, port, pipe_to_parent, requests_per, dbname, rows, check, id):
View Full Code Here

                        /* busy wait */
                    } while (System.nanoTime() < next);
                    // when it should have been sent, not when it was.
                    excerpt.startExcerpt(128);
                    excerpt.writeLong(next);
                    excerpt.position(128);
                    excerpt.finish();
                }
                future.get();

            } catch (Throwable e) {
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.