incubator-cassandra-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From shirish <shirishredd...@gmail.com>
Subject Default Texception
Date Tue, 16 Mar 2010 13:32:28 GMT
Hello,

Here is the code that i used to *get_slice* could any one correct me where I
went wrong. The code compiles right but gives me a Default TException

        vector<ColumnOrSuperColumn> lcosc;
        SlicePredicate sp;
        sp.column_names.push_back("thread1");
        sp.column_names.push_back("thread2");
        sp.column_names.push_back("thread3");

        ColumnOrSuperColumn cosc;
        ColumnParent CP;
        CP.column_family="Posts";

        client.get_slice(lcosc,
                        "keyspace_forum",
                        "post_1" ,
                        CP,
                        sp,
                        ONE);

        vector<ColumnOrSuperColumn> :: iterator vit;
        for(vit = lcosc.begin(); vit!=lcosc.end(); vit++) {
                std::cout<<(*vit).column.name.c_str()<<endl;
        }


thank you

shirish

Mime
View raw message