Package org.apache.cassandra.service

Examples of org.apache.cassandra.service.CASConditions


        ColumnFamily updates = updateForKey(key, clusteringPrefix, updParams);

        // It's cleaner to use the query timestamp below, but it's in seconds while the conditions expects microseconds, so just
        // put it back in millis (we don't really lose precision because the ultimate consumer, Column.isLive, re-divide it).
        long now = queryState.getTimestamp() * 1000;
        CASConditions conditions = ifNotExists
                                 ? new NotExistCondition(clusteringPrefix, now)
                                 : new ColumnsConditions(clusteringPrefix, cfm, key, columnConditions, variables, now);

        ColumnFamily result = StorageProxy.cas(keyspace(),
                                               columnFamily(),
View Full Code Here

TOP

Related Classes of org.apache.cassandra.service.CASConditions

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.