cassandra に 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 で値を取得しようとすると、戻ります
[default@Test] get Term[utf8('hello')]['docid'] as long;
=> (column=docid, value=, timestamp=1362891987234)
値が正しく挿入されていないようです。なんで?
asciiタイプを挿入してみましたが、うまくいきました。