class FileChannelBoundedData implements BoundedData {

	@Override
	public Reader createReader(ResultSubpartitionView subpartitionView) throws IOException {
		checkState(!fileChannel.isOpen());

		final FileChannel fc = FileChannel.open(filePath, StandardOpenOption.READ);
		return new FileBufferReader(fc, memorySegmentSize, subpartitionView);
	}

	  FileChannelBoundedData(
			Path filePath,
			FileChannel fileChannel,
			int memorySegmentSize);

}