我正在尝试添加列,但它没有成功
我有(共10列)三个复合键和7列(复合键除外)
我想在我的api中添加这些列来构建sstable以使用SstableLaoder加载到cassandra中
我得到了这个例外:
“复合列已经完全构建”
Builder builder = compositeColumn.builder();
while ((line = reader.readLine()) != null)
{
if (entry.parse(line, lineNumber))
{
usersWriter.newRow(bytes(entry.sn));
builder.add(bytes(entry.ts));
builder.add(bytes(entry.dn));
builder.add(bytes(entry.re));
//builder.add(bytes(entry.password));
//builder.add(bytes(entry.email));
usersWriter.addColumn(builder.add(bytes("ds")).build(),bytes(entry.ds), timestamp);
//usersWriter.addColumn(builder.add(bytes("re")).build(),bytes(entry.re), timestamp);
// usersWriter.addColumn(builder.add(bytes("age")).build(),bytes(entry.age), timestamp);
// usersWriter.addColumn(builder.add(bytes("password")).build(),bytes(entry.password), timestamp);
// usersWriter.addColumn(builder.add(bytes("email")).build(),bytes(entry.email), timestamp);
//usersWriter.addColumn(builder.add(bytes("msgid")).build(),bytes(entry.key), timestamp);
builder = compositeColumn.builder();
System.out.println(lineNumber);
}