And this is the code used with Java driver version 4.2.0:
Create createTable = createTable(keyspaceName, tableName)
.ifNotExists()
.addPartitionKey("key", DataType.blob())
.addClusteringColumn("column1", DataType.blob())
.addColumn("value", DataType.blob());
session.execute(createTable);
CreateTableWithOptions createTable = createTable(keyspaceName, tableName)
.ifNotExists()
.withPartitionKey("key", DataTypes.BLOB)
.withClusteringColumn("column1", DataTypes.BLOB)
.withColumn("value", DataTypes.BLOB);
session.execute(createTable.build())
--
Olivier Michallat
Driver & tools engineer, DataStax
--
To unsubscribe from this group and stop receiving emails from it, send an email to java-driver-us...@lists.datastax.com.
--
Olivier Michallat
Driver & tools engineer, DataStax
To unsubscribe from this group and stop receiving emails from it, send an email to java-dri...@lists.datastax.com.