应该将什么值分配给整数类型变量以表示一个空字节数组?我需要它在数据库中存储一个空字节数组,以表示Cassandra中的无值列。

最佳答案

根据Cassandra API http://wiki.apache.org/cassandra/API,空字节数组为

byte[] emptyArray = new byte[0];

10-07 14:26