org.apache.cassandra.cql3
Class Operation.SetElement

java.lang.Object
  extended by org.apache.cassandra.cql3.Operation.SetElement
All Implemented Interfaces:
Operation.RawUpdate
Enclosing class:
Operation

public static class Operation.SetElement
extends java.lang.Object
implements Operation.RawUpdate


Constructor Summary
Operation.SetElement(Term.Raw selector, Term.Raw value)
           
 
Method Summary
 boolean isCompatibleWith(Operation.RawUpdate other)
           
 Operation prepare(CFDefinition.Name receiver)
          This method validates the operation (i.e.
protected  java.lang.String toString(ColumnSpecification column)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Operation.SetElement

public Operation.SetElement(Term.Raw selector,
                            Term.Raw value)
Method Detail

prepare

public Operation prepare(CFDefinition.Name receiver)
                  throws InvalidRequestException
Description copied from interface: Operation.RawUpdate
This method validates the operation (i.e. validate it is well typed) based on the specification of the receiver of the operation. It returns an Operation which can be though as post-preparation well-typed Operation.

Specified by:
prepare in interface Operation.RawUpdate
Parameters:
receiver - the "column" this operation applies to. Note that contrarly to the method of same name in Term.Raw, the receiver should always be a true column.
Returns:
the prepared update operation.
Throws:
InvalidRequestException

toString

protected java.lang.String toString(ColumnSpecification column)

isCompatibleWith

public boolean isCompatibleWith(Operation.RawUpdate other)
Specified by:
isCompatibleWith in interface Operation.RawUpdate
Returns:
whether this operation can be applied alongside the other update (in the same UPDATE statement for the same column).


Copyright © 2013 The Apache Software Foundation