我试图插入一个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类型和它的作品。