Package xbird.storage.io.VarSegments

Examples of xbird.storage.io.VarSegments.IDescriptor


        final int size = idxs.length;

        // look-up directory
        final File dataFile = new File(filePath);
        final long[] offsets = new long[size];
        IDescriptor directory = directoryCache.get(filePath);
        try {
            if(directory == null) {
                directory = VarSegments.initDescriptor(dataFile);
                directoryCache.put(filePath, directory);
            }
            for(int i = 0; i < size; i++) {
                offsets[i] = directory.getRecordAddr(idxs[i]);
            }
        } catch (IOException e) {
            LOG.error(e);
            throw e;
        }
View Full Code Here

TOP

Related Classes of xbird.storage.io.VarSegments.IDescriptor

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.