Examples of OffHeapLongArray


Examples of com.alexkasko.unsafe.offheaplong.OffHeapLongArray

        if(null == comparator) throw new IllegalArgumentException("Provided comparator is null");
        if (fromIndex < 0 || fromIndex > toIndex || toIndex > a.size()) {
            throw new IllegalArgumentException("Illegal input, collection size: [" + a.size() + "], " +
                    "fromIndex: [" + fromIndex + "], toIndex: [" + toIndex + "]");
        }
        OffHeapLongArray indices = new OffHeapLongArray(toIndex - fromIndex);
        for (long i = fromIndex; i < toIndex; i++) {
            indices.set(i, i);
        }
        OffHeapLongComparator indexComp = new OffHeapReferenceComparator(a, comparator);
        OffHeapLongSorter.sort(indices, indexComp);
        return new ReferenceIterable(a, indices);
    }
View Full Code Here

Examples of com.alexkasko.unsafe.offheaplong.OffHeapLongArray

        if(null == comparator) throw new IllegalArgumentException("Provided comparator is null");
        if (fromIndex < 0 || fromIndex > toIndex || toIndex > a.size()) {
            throw new IllegalArgumentException("Illegal input, collection size: [" + a.size() + "], " +
                    "fromIndex: [" + fromIndex + "], toIndex: [" + toIndex + "]");
        }
        OffHeapLongArray indices = new OffHeapLongArray(toIndex - fromIndex);
        for (long i = fromIndex; i < toIndex; i++) {
            indices.set(i, i);
        }
        OffHeapLongComparator indexComp = new OffHeapReferenceComparator(a, comparator);
        OffHeapLongSorter.sort(indices, indexComp);
        return new ReferenceIterable(a, indices);
    }
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.