5657585960616263
partitions.add(bl); partitionOffsets.add(currentSize); } catch(IOException ie) { throw new BaseException(ie); } }
219220221222223224225226227228229
int pos = writeKey(key); writeValue(value, pos); } catch(IOException ie) { throw new BaseException(ie); } finally { lock.writeLock().unlock(); }
246247248249250251252253254255256
bis.setBuffer(bytes, keyOffsetsArray[i], keyOffsetsArray[i+1]); wObj.readFields(dis); } catch(IOException ie) { throw new BaseException(ie); } finally { lock.readLock().unlock(); }
280281282283284285286287288289290
bis.setBuffer(bytes, valueOffsetsArray[i], valueOffsetsArray[i+1]); entry.value.readFields(dis); } catch(IOException ie) { throw new BaseException(ie); } finally { lock.readLock().unlock(); }
304305306307308309310311312313314
int pos = posRet[1]; return (posRet[0] == 1) ? startOffset + pos : -1; } catch(IOException ie) { throw new BaseException(ie); } finally { lock.readLock().unlock(); }
330331332333334335336337338339340
} return pos; } catch(IOException ie) { throw new BaseException(ie); } finally { lock.readLock().unlock(); }
417418419420421422423424425
{ int j = i - startOffset; j = j << 1; if ( j > 2 * currentSize ) { throw new BaseException(sprintf("index invalid %d", i)); } return j; }
6364656667686970
} return mp; } catch(IOException ie) { throw new BaseException(ie); } }
120121122123124125126127128129130
put(key, value); } } catch(IOException ie) { throw new BaseException(ie); } finally { lock.writeLock().unlock(); }
137138139140141142143
{ if ( idx < cumSz + m.size()) return m; cumSz += m.size(); } throw new BaseException("Index out of range " + idx); }