You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@cassandra.apache.org by John Wilson <sa...@gmail.com> on 2018/05/22 17:14:46 UTC

What is ChunkReader.readChunk used for?

Hi,

Cassandra uses the readChunk method which is in SimpleChunkReader and
CompressedChunkReader. This readChunk method is called from ChunkCache and
BufferManagingRebufferer (which is used when cache is not in use).

My question:

   1. What exactly is the readChunk method used for? Is it to read into the
   Key Cache (which maps partition keys to specific SSTable) or to actually
   read rows from SSTables?
   2. What is the position parameter in readChunk(long position, ByteBuffer
   uncompressed)?


Thanks,
John

Fwd: What is ChunkReader.readChunk used for?

Posted by John Wilson <sa...@gmail.com>.
Hi,

Cassandra uses the readChunk method which is in SimpleChunkReader and
CompressedChunkReader. This readChunk method is called from ChunkCache and
BufferManagingRebufferer (which is used when cache is not in use).

My question:

   1. What exactly is the readChunk method used for? Is it to read into the
   Key Cache (which maps partition keys to specific SSTable) or to actually
   read rows from SSTables?
   2. What is the position parameter in readChunk(long position, ByteBuffer
   uncompressed)?


Thanks,
John