cassandra-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From pprun <pzgyu...@gmail.com>
Subject Re: code for read operations cassandra
Date Tue, 19 Apr 2011 03:15:59 GMT
I'd say that following below steps, you'll the whole logic for 'READ' path :
org.apache.cassandra.thrift.CassandraServer.get(ByteBuffer, ColumnPath,
ConsistencyLevel) ->
'org.apache.cassandra.service.StorageProxy.read(List<ReadCommand>,
ConsistencyLevel)' -> essagingService.instance().sendRR (*ReadCommand
Message*)

Then,
org.apache.cassandra.db.ReadVerbHandler.doVerb(Message, String)
->org.apache.cassandra.db.SliceByNamesReadCommand/SliceFromReadCommand.getRow(Table)
-> org.apache.cassandra.db.Table.getRow(QueryFilter) ->
org.apache.cassandra.db.*ColumnFamilyStore.getColumnFamily(QueryFilter) *


Hope this helps.
-P


2011/4/19 Jonathan Ellis <jbellis@gmail.com>

> ColumnFamilyStore.getColumnFamily
>
> On Mon, Apr 18, 2011 at 7:15 PM, Anurag Gujral <anurag.gujral@gmail.com>
> wrote:
> > Hi All,
> >             Can you please point me to the code where cassandra is
> iterating
> > over all the sstables for a key when doing read operation on a
> > key.
> > Thanks a ton,
> > Regards,
> > Anurag
> >
>
>
>
> --
> Jonathan Ellis
> Project Chair, Apache Cassandra
> co-founder of DataStax, the source for professional Cassandra support
> http://www.datastax.com
>

Mime
View raw message