How to insert timeuuid record in cassandra version 2.1.7 using java -


how insert timeuuid record in cassandra using java

import com.datastax.driver.core.utils.uuids;

insert stmt = querybuilder.insertinto("keyspacename", "tablename") .value("timeuuidfield", uuids.timebased());

resultset rs = session.execute(stmt);


Comments

Popular posts from this blog

python - pip install -U PySide error -

arrays - C++ error: a brace-enclosed initializer is not allowed here before ‘{’ token -

cytoscape.js - How to add nodes to Dagre layout with Cytoscape -