Package xbird.util.nio

Examples of xbird.util.nio.MemoryMappedFile


                    + docName));
        }
        this._nativeByteOrder = nativeByteOrder;
        final File segFile = new File(coll.getDirectory(), docName + DTM_SEGMENT_FILE_SUFFIX);
        try {
            this._mmfile = new MemoryMappedFile(segFile, PAGE_SHIFT, readOnly, nativeByteOrder);
        } catch (FileNotFoundException e) {
            throw new IllegalStateException("file not found: " + segFile.getAbsolutePath(), e);
        }
        this._pool = readOnly ? new ConcurrentLongCache<int[]>(CACHED_PAGES) : null;
    }
View Full Code Here


                    + docName));
        }
        this._nativeByteOrder = nativeByteOrder;
        final File segFile = new File(coll.getDirectory(), docName + DTM_SEGMENT_FILE_SUFFIX);
        try {
            this._mmfile = new MemoryMappedFile(segFile, PAGE_SHIFT, readOnly, nativeByteOrder);
        } catch (FileNotFoundException e) {
            throw new IllegalStateException("file not found: " + segFile.getAbsolutePath(), e);
        }
        this._pool = readOnly ? new ConcurrentLongCache<int[]>(CACHED_PAGES) : null;
    }
View Full Code Here

TOP

Related Classes of xbird.util.nio.MemoryMappedFile

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.