org.apache.cassandra.cql

Class UpdateStatement



  • public class UpdateStatementextends AbstractModification
    An UPDATE statement parsed from a CQL query statement.
    • Constructor Detail

      • UpdateStatement

        public UpdateStatement(java.lang.String keyspace,               java.lang.String columnFamily,               java.lang.String keyName,               java.util.Map<Term,Operation> columns,               java.util.List<Term> keys,               Attributes attrs)
        Creates a new UpdateStatement from a column family name, columns map, consistency level, and key term.
        Parameters:
        keyspace - Keyspace (optional)
        columnFamily - column family name
        keyName - alias key name
        columns - a map of column name/values pairs
        keys - the keys to update
        attrs - additional attributes for statement (CL, timestamp, timeToLive)
      • UpdateStatement

        public UpdateStatement(java.lang.String keyspace,               java.lang.String columnFamily,               java.lang.String keyName,               java.util.List<Term> columnNames,               java.util.List<Term> columnValues,               java.util.List<Term> keys,               Attributes attrs)
        Creates a new UpdateStatement from a column family name, a consistency level, key, and lists of column names and values. It is intended for use with the alternate update format, INSERT.
        Parameters:
        keyspace - Keyspace (optional)
        columnFamily - column family name
        keyName - alias key name
        columnNames - list of column names
        columnValues - list of column values (corresponds to names)
        keys - the keys to update
        attrs - additional attributes for statement (CL, timestamp, timeToLive)

Copyright © 2013 The Apache Software Foundation



NOTHING
NOTHING
Add the Maven Dependecy to your project: maven dependecy for com.amazonaws : aws-java-sdk : 1.3.14