Package com.higherfrequencytrading.chronicle.datamodel

Examples of com.higherfrequencytrading.chronicle.datamodel.DataStore


    public static void main(String[] args) throws IOException {
        String basePath = TMP + "/DataStorePerfTest";
        ChronicleTools.deleteOnExit(basePath);
        IndexedChronicle chronicle = new IndexedChronicle(basePath);
        chronicle.useUnsafe(true);
        DataStore dataStore = new DataStore(chronicle, ModelMode.MASTER);
        MapWrapper<String, byte[]> map = new MapWrapper<String, byte[]>(dataStore, "map",
                String.class, byte[].class, new LinkedHashMap<String, byte[]>(), 160);
        dataStore.add("map", map);
        dataStore.start();

        // generate keys and values
        int keyCount = 100000;
        String[] keys = new String[keyCount];
        byte[][] bytes = new byte[keyCount][];
View Full Code Here

TOP

Related Classes of com.higherfrequencytrading.chronicle.datamodel.DataStore

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.