code: public static Tuple2<String[], Object[]> prepareTuple4CqlDriver(Tuple2<Cells, Cells> tuple) {
          Cells keys = tuple._1();
          Cells columns = tuple._2();
  
          String[] names = new String[keys.size() + columns.size()];
          Object[] values = new Object[keys.size() + columns.size()];
  
          for (int k = 0; k < keys.size(); k++) {
              Cell cell = keys.getCellByIdx(k);
  
              names[k] = quote(cell.getCellName());
              values[k] = cell.getCellValue();
          }
  
          for (int v = keys.size(); v < (keys.size() + columns.size()); v++) {
              Cell cell = columns.getCellByIdx(v - keys.size());
  
              names[v] = quote(cell.getCellName());
              values[v] = cell.getCellValue();
          }
  
          return new Tuple2<>(names, values);
      }
docs: Splits columns names and values as required by Datastax java driver to generate an Insert query.
  
  @param tuple an object containing the key Cell(s) as the first element and all the other columns as the second element.
  @return an object containing an array of column names as the first element and an array of column values as the second element.