cassandra-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Joe Alex <joe.m.a...@gmail.com>
Subject Why is column name not printed for Keyspace1.Standard1
Date Tue, 26 Oct 2010 21:42:39 GMT
With the sample Keyspace1 can somebody explain why the column names
does not print in the Standard2 case, is it because of UTF8Type?

<Keyspace Name="Keyspace1">
      <ColumnFamily Name="Standard1" CompareWith="BytesType"
                    KeysCached="1000"
                    RowsCached="100"
                    RowCacheSavePeriodInSeconds="0"
                    KeyCacheSavePeriodInSeconds="3600"/>
      <ColumnFamily Name="Standard2"
                    CompareWith="UTF8Type"
                    KeysCached="100%"/>


cassandra> set Keyspace1.Standard1['100']['first'] = 'John'
Value inserted.
cassandra> set Keyspace1.Standard1['100']['last'] = 'Doe'
Value inserted.
cassandra> set Keyspace1.Standard1['100']['middle'] = 'M'
Value inserted.

cassandra> get Keyspace1.Standard1['100']
=> (column=6d6964646c65, value=M, timestamp=1288128322609000)
=> (column=6c617374, value=Doe, timestamp=1288128312046000)
=> (column=6669727374, value=John, timestamp=1288128300504000)
Returned 3 results.

cassandra> set Keyspace1.Standard2['100']['first'] = 'John'
Value inserted.
cassandra> set Keyspace1.Standard2['100']['last'] = 'Doe'
Value inserted.
cassandra> set Keyspace1.Standard2['100']['middle'] = 'M'
Value inserted.

cassandra> get Keyspace1.Standard2['100']
=> (column=middle, value=M, timestamp=1288128381467000)
=> (column=last, value=Doe, timestamp=1288128369639000)
=> (column=first, value=John, timestamp=1288128358062000)
Returned 3 results.
cassandra>

Mime
View raw message