Package it.unimi.dsi.fastutil.doubles

Examples of it.unimi.dsi.fastutil.doubles.Double2ObjectMap


    @Override
    public double[] getTimestamps(String key) {
        ColumnDraft col = getColumn(key);
        if (col != null) {
            Double2ObjectMap m = getDynamicAttributeValue(((ColumnDraftImpl) col).getIndex());
            if (m != null) {
                return m.keySet().toDoubleArray();
            }
        }
        return null;
    }
View Full Code Here


    @Override
    public Object getValue(String key, double timestamp) {
        ColumnDraft col = getColumn(key);
        if (col != null) {
            Double2ObjectMap m = getDynamicAttributeValue(((ColumnDraftImpl) col).getIndex());
            if (m != null) {
                return m.get(timestamp);
            }
        }
        return null;
    }
View Full Code Here

        if (index >= dynamicAttributes.length) {
            Double2ObjectMap[] newArray = new Double2ObjectMap[index + 1];
            System.arraycopy(dynamicAttributes, 0, newArray, 0, dynamicAttributes.length);
            dynamicAttributes = newArray;
        }
        Double2ObjectMap m = dynamicAttributes[index];
        if (m == null) {
            m = new Double2ObjectOpenHashMap();
            dynamicAttributes[index] = m;
        }
        m.put(timestamp, value);
    }
View Full Code Here

TOP

Related Classes of it.unimi.dsi.fastutil.doubles.Double2ObjectMap

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.