Following code explains add operation in java.
Java Code: This is the code to explain Cassandra Add Operation
Map<String, List<ColumnOrSuperColumn>> data = new HashMap<String, List<ColumnOrSuperColumn>>();
List<ColumnOrSuperColumn> columns = new ArrayList<ColumnOrSuperColumn>();
// Create the email column.
ColumnOrSuperColumn c = new ColumnOrSuperColumn();
c.setColumn(new Column("email".getBytes("utf-8"), "ronald (at) sodeso.nl".getBytes("utf-8"),
...
License4J 4.0
Yesterday, 12:23 AM in Java Software