/** * Start a new row whose key is {@code key}. * @param key the row key */ public void newRow(ByteBuffer key) throws IOException { if (currentKey != null && !columnFamily.isEmpty()) writeRow(currentKey, columnFamily); currentKey = DatabaseDescriptor.getPartitioner().decorateKey(key); columnFamily = getColumnFamily(); }