mCurrentCacheStream.write(b, currentOffset, bytesRead); } catch (IOException e) { logCacheStreamIOException(e); mShouldCacheCurrentBlock = false;
@Override public int read() throws IOException { if (mPos >= mFileLength) { return -1; } checkAndAdvanceBlockInStream(); int data = mCurrentBlockInStream.read(); mPos++; if (mShouldCacheCurrentBlock) { try { mCurrentCacheStream.write(data); } catch (IOException e) { logCacheStreamIOException(e); mShouldCacheCurrentBlock = false; } } return data; }
mContext.getAluxioBlockStore().getOutStream(currentBlockId, blockSize, address); } catch (IOException e) { logCacheStreamIOException(e); mShouldCacheCurrentBlock = false; } catch (AlluxioException e) {
logCacheStreamIOException(e); mShouldCacheCurrentBlock = false; } catch (AlluxioException e) {