277278279280281282283284285286287
{ currentPosition = getFilePointer(); } catch (IOException e) { throw new FSReadError(e, filePath); } try {
333334335336337338339340
seek(position); } } catch (IOException e) { throw new FSReadError(e, filePath); } }
8889909192939495
{ throw new CorruptSSTableException(e, getPath()); } catch (IOException e) { throw new FSReadError(e, getPath()); } }
290291292293294295296297
{ return Math.max(Math.max(current, out.length()), bufferOffset + validBufferBytes); } catch (IOException e) { throw new FSReadError(e, getPath()); } }
348349350351352353354355356357
{ out.seek(current); } catch (IOException e) { throw new FSReadError(e, getPath()); } resetBuffer(); }
195196197198199200201202203204205
segments[i] = new Segment(start, segment); } } catch (IOException e) { throw new FSReadError(e, path); } finally { FileUtils.closeQuietly(raf); }
163164165166167168169170171
{ nextpos = nextpos + segment.bytesRemaining(); } catch (IOException e) { throw new FSReadError(e, path); } return segment; }
8788899091929394
{ return out.getFilePointer(); } catch (IOException e) { throw new FSReadError(e, getPath()); } }
217218219220221222223224225226227
{ throw new CorruptSSTableException(new CorruptBlockException(getPath(), chunkOffset, chunkSize), getPath()); } catch (IOException e) { throw new FSReadError(e, getPath()); } checksum.reset(); // reset buffer
245246247248249250251252253
{ out.seek(chunkOffset); } catch (IOException e) { throw new FSReadError(e, getPath()); } } }