In Cassandra, it's ModificationStatement.CAS_RESULT_COLUMN.text On Thu, Feb 6, 2014 at 10:22 AM, Brian O'Neill <b...@alumni.brown.edu> wrote: > Silly questionŠ > > Using the CQL driver for conditional updates, I¹m looking into the ResultSet > that comes back: > for (ColumnDefinitions.Definition definition : > results.getColumnDefinitions().asList()) { > for (Row row : results.all()) { > LOG.debug("UPDATE APPLIED = [{}]=[{}]", > definition.getName(), row.getBool(definition.getName())); > } > } > > I noticed that the ResultSet of a conditional update contains a column > ³[applied]², with a boolean indicating whether or not the update was > applied. > > I assume this column name comes from: > src/java/org/apache/cassandra/cql3/statements/ModificationStatement.java:50 > private static final ColumnIdentifier CAS_RESULT_COLUMN = new > ColumnIdentifier("[applied]", false); > > Does it make sense to expose this column name as a String constant > somewhere? > Either in the CQL java-driver, or Cassandra itself? > > -brian > > --- > Brian O'Neill > Chief Technology Officer > > > Health Market Science > The Science of Better Results > 2700 Horizon Drive € King of Prussia, PA € 19406 > M: 215.588.6024 € @boneill42 <http://www.twitter.com/boneill42> € > healthmarketscience.com > > > This information transmitted in this email message is for the intended > recipient only and may contain confidential and/or privileged material. If > you received this email in error and are not the intended recipient, or the > person responsible to deliver it to the intended recipient, please contact > the sender at the email above and delete this email and any attachments and > destroy any copies thereof. Any review, retransmission, dissemination, > copying or other use of, or taking any action in reliance upon, this > information by persons or entities other than the intended recipient is > strictly prohibited. > > >
-- Jonathan Ellis Project Chair, Apache Cassandra co-founder, http://www.datastax.com @spyced