我試圖插入一個longtype列到卡桑德拉:插入LongType卡桑德拉使用節儉失敗
Column docid = new Column();
docid.setName("docid".getBytes());
ByteBuffer val = ByteBuffer.allocate(8);
val.putLong(123111111111111111L);
docid.setValue(val);
docid.setTimestamp(System.currentTimeMillis());
client.insert(term, parent, docid, ConsistencyLevel.ONE);
它運行正常,但是當我試圖讓通過CLI值,則返回
[[email protected]] get Term[utf8('hello')]['docid'] as long;
=> (column=docid, value=, timestamp=1362891987234)
看起來值沒有被正確插入。爲什麼?
我試圖插入ASCII類型和它的作品。