Package net.openhft.jpsg

Examples of net.openhft.jpsg.PrimitiveType


        if (!parallelKV(cxt)) {
            g.lines(values + "[" + index + "] = " + value + ";");
        } else if (doubleSizedParallel(cxt)) {
            g.lines(table + "[" + index + " + 1] = " + value + ";");
        } else {
            PrimitiveType valueType = (PrimitiveType) cxt.mapValueOption();
            String entryTableUpper = TableType.INSTANCE.apply(valueType).upper;
            String base = entryTableUpper + "_BASE";
            String offset = base + " + " + valueType.upper + "_VALUE_OFFSET + " +
                    "(((long) (" + index + ")) << " + entryTableUpper + "_SCALE_SHIFT)";
            cxt.unsafePutValueBits(g, table, offset, value);
View Full Code Here


        if (!writeValue || !parallelKV(cxt) || doubleSizedParallel(cxt)) {
            writeKey(g, cxt, table, keys, index, key);
            if (writeValue)
                writeValue(g, cxt, table, values, index, value.get());
        } else {
            PrimitiveType keyType = (PrimitiveType) cxt.keyOption();
            key = "((" + tableEntryType(cxt) + ") " + key + ")";
            if (keyType != CHAR)
                key = "(" + key + " & " + keyType.upper + "_MASK)";
            String v = value.get();
            v = "((" + tableEntryType(cxt) + ") " + v + ")";
View Full Code Here

TOP

Related Classes of net.openhft.jpsg.PrimitiveType

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.