In short the key, get from console if different from which I wrote in Java.
Detail:
Schema of the CF:
create column family books
with column_type = 'Standard'
and comparator = 'IntegerType'
and default_validation_class = 'IntegerType'
and key_validation_class = 'IntegerType'
and rows_cached = 0.0
and row_cache_save_period = 0
and row_cache_keys_to_save = 2147483647
and keys_cached = 200000.0
and key_cache_save_period = 14400
and read_repair_chance = 1.0
and gc_grace = 864000
and min_compaction_threshold = 4
and max_compaction_threshold = 32
and replicate_on_write = true
and row_cache_provider = 'SerializingCacheProvider'
and compaction_strategy = 'org.apache.cassandra.db.compaction.SizeTieredCompactionStrategy';
In Java I wrote:
nameColumn.setTimestamp(System.currentTimeMillis());
lastColumn.setTimestamp(System.currentTimeMillis());
ageColumn.setTimestamp(System.currentTimeMillis());
nameColumn.setValue(("fullName" + i).getBytes(UTF8));
lastColumn.setValue(("address" + i).getBytes(UTF8));
ageColumn.setValue(("password" + i).getBytes(UTF8));
client.insert(ByteBuffer.wrap("1".getBytes(UTF8)),columnParent, lastColumn, ConsistencyLevel.ONE);
client.insert(ByteBuffer.wrap("1".getBytes(UTF8)),columnParent, ageColumn, ConsistencyLevel.ONE);
client.insert(ByteBuffer.wrap("1".getBytes(UTF8)),columnParent, nameColumn, ConsistencyLevel.ONE);
And I get the result from command line:
[default@twissandra] list books;
Using default limit of 100
-------------------
RowKey: 49
=> (column=27413455319692147, value=7017844561841189680, timestamp=1329187533008)
=> (column=7382926377107942757, value=1890029152402194392368, timestamp=1329187533008)
=> (column=8097880544751088228, value=2073057419456278586416, timestamp=1329187533008)
While the RowKey is 49? Because it is convert from String "1", how can I make the two value consistent?
