Package org.fusesource.hawtdb.internal.util.Ranges

Examples of org.fusesource.hawtdb.internal.util.Ranges.Range


    /**
     * @see Allocator#alloc(int)
     */
    synchronized public int alloc(int size) throws OutOfSpaceException {
        for (Iterator<Range> i = freeRanges.iterator(); i.hasNext();) {
            Range r = (Range) i.next();
            if( r.size() >= size ) {
                int rc = r.start;
                 op_trace("ALLOC", rc, size);
                freeRanges.remove(rc, size);
                return rc;
            }
View Full Code Here

TOP

Related Classes of org.fusesource.hawtdb.internal.util.Ranges.Range

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.