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;
}