/** * Returns the object stored on disk with the given id. This method is used * for testing purposes only. As such, it bypasses the buffer and goes * directly to the disk. This is not a thread safe function , in the sense, it * is possible that by the time the OpLog is queried , data might move HTree * with the oplog being destroyed * * @param id * A DiskId object for which the value on disk will be fetched * */ public final BytesAndBits getNoBuffer(DiskRegion dr, DiskId id) { if (logger.isDebugEnabled()) { logger.debug("Oplog::getNoBuffer:Before invoking Oplog.basicGet for DiskID ={}", id); } try { BytesAndBits bb = basicGet(dr, id.getOffsetInOplog(), false, id.getValueLength(), id.getUserBits()); return bb; } catch (DiskAccessException dae) { logger.error(LocalizedMessage.create( LocalizedStrings.Oplog_OPLOGGETNOBUFFEREXCEPTION_IN_RETRIEVING_VALUE_FROM_DISK_FOR_DISKID_0, id), dae); throw dae; } catch (IllegalStateException ise) { logger.error(LocalizedMessage.create( LocalizedStrings.Oplog_OPLOGGETNOBUFFEREXCEPTION_IN_RETRIEVING_VALUE_FROM_DISK_FOR_DISKID_0, id), ise); throw ise; } }
BytesAndBits bb = basicGet(dr, id.getOffsetInOplog(), false, id.getValueLength(), id.getUserBits()); return bb;
bb = basicGet(dr, offset, bitOnly, id.getValueLength(), id.getUserBits()); } catch (DiskAccessException dae) { logger.error(LocalizedMessage.create(
bb = basicGet(dr, offset, bitOnly, id.getValueLength(), id.getUserBits());