void invalidateCacheAtBoundary(FileHandle dfile) { chunkCache.ifPresent(cache -> { if (lastEarlyOpenLength != 0 && dfile.dataLength() > lastEarlyOpenLength) cache.invalidatePosition(dfile, lastEarlyOpenLength); }); lastEarlyOpenLength = dfile.dataLength(); }
public static RebuffererFactory maybeWrap(ChunkReader file) { if (!enabled) return file; return instance.wrap(file); }
public void tidy() { chunkCache.ifPresent(cache -> cache.invalidateFile(name())); try { if (compressionMetadata != null) { compressionMetadata.close(); } } finally { try { channel.close(); } finally { rebufferer.close(); } } } }
void invalidateCacheAtBoundary(FileHandle dfile) { chunkCache.ifPresent(cache -> { if (lastEarlyOpenLength != 0 && dfile.dataLength() > lastEarlyOpenLength) cache.invalidatePosition(dfile, lastEarlyOpenLength); }); lastEarlyOpenLength = dfile.dataLength(); }
public static RebuffererFactory maybeWrap(ChunkReader file) { if (!enabled) return file; return instance.wrap(file); }
public void tidy() { chunkCache.ifPresent(cache -> cache.invalidateFile(name())); try { if (compressionMetadata != null) { compressionMetadata.close(); } } finally { try { channel.close(); } finally { rebufferer.close(); } } } }
void invalidateCacheAtBoundary(FileHandle dfile) { chunkCache.ifPresent(cache -> { if (lastEarlyOpenLength != 0 && dfile.dataLength() > lastEarlyOpenLength) cache.invalidatePosition(dfile, lastEarlyOpenLength); }); lastEarlyOpenLength = dfile.dataLength(); }
public static RebuffererFactory maybeWrap(ChunkReader file) { if (!enabled) return file; return instance.wrap(file); }
public void tidy() { chunkCache.ifPresent(cache -> cache.invalidateFile(name())); try { if (compressionMetadata != null) { compressionMetadata.close(); } } finally { try { channel.close(); } finally { rebufferer.close(); } } } }
void invalidateCacheAtBoundary(FileHandle dfile) { chunkCache.ifPresent(cache -> { if (lastEarlyOpenLength != 0 && dfile.dataLength() > lastEarlyOpenLength) cache.invalidatePosition(dfile, lastEarlyOpenLength); }); lastEarlyOpenLength = dfile.dataLength(); }
public static RebuffererFactory maybeWrap(ChunkReader file) { if (!enabled) return file; return instance.wrap(file); }
public void tidy() { chunkCache.ifPresent(cache -> cache.invalidateFile(name())); try { if (compressionMetadata != null) { compressionMetadata.close(); } } finally { try { channel.close(); } finally { rebufferer.close(); } } } }