incubator-cassandra-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Oleg Dulin <oleg.du...@gmail.com>
Subject Pycassa xget not parsing composite column name properly
Date Sun, 16 Jun 2013 10:52:52 GMT
I have a column family defined as:

create column family LSItemIdsByFieldValueIndex_Integer
  with column_type = 'Standard'
  and comparator = 
'CompositeType(org.apache.cassandra.db.marshal.IntegerType,org.apache.cassandra.db.marshal.UTF8Type)'


  and default_validation_class = 'UTF8Type'
  and key_validation_class = 'UTF8Type';

This snippet of code:

    result=searchIndex.get_range(column_count=1)
    for key,columns in result:
        print '\t',key
        indexData=searchIndex[indexCF].xget(key)
        for name, value in indexData:
            print name

does not correctly print column name as parsed into a tuple of two parts.

Am I doing something wrong here ?



-- 
Regards,
Oleg Dulin
http://www.olegdulin.com



Mime
View raw message