use of com.orientechnologies.orient.core.exception.OStorageException in project orientdb by orientechnologies.
the class ODirectMemoryOnlyDiskCache method loadFile.
public long loadFile(final long fileId, final OWriteCache writeCache) {
int intId = extractFileId(fileId);
final MemoryFile memoryFile = files.get(intId);
if (memoryFile == null)
throw new OStorageException("File with id " + intId + " does not exist");
return composeFileId(id, intId);
}
Aggregations