title: How should I check if resultset is empty or null using datastax cassandra driver for java
body: <p>How should I check for an empty resultset using datastax java cassandra driver?</p>
  
  <p>Suppose I'm executing the following query "SELECT * FROM my_table WHERE mykey=something"</p>
  
  <p>there is a great chance that the query will not be matched. The following code does not work:</p>
  
  <pre><code>if (rs != null) 
     rs.one().getString("some_column");
  </code></pre>