org.apache.cassandra.cql3
Class Term.NonTerminal

java.lang.Object
  extended by org.apache.cassandra.cql3.Term.NonTerminal
All Implemented Interfaces:
Term
Direct Known Subclasses:
AbstractMarker, FunctionCall
Enclosing interface:
Term

public abstract static class Term.NonTerminal
extends java.lang.Object
implements Term

A non terminal term, i.e. one that contains at least one bind marker. We distinguish between the following type of NonTerminal: - marker for a constant value - marker for a collection value (list, set, map) - a function having bind marker


Nested Class Summary
 
Nested classes/interfaces inherited from interface org.apache.cassandra.cql3.Term
Term.NonTerminal, Term.Raw, Term.Terminal
 
Constructor Summary
Term.NonTerminal()
           
 
Method Summary
 java.nio.ByteBuffer bindAndGet(java.util.List<java.nio.ByteBuffer> values)
          A shorter for bind(values).get().
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.apache.cassandra.cql3.Term
bind, collectMarkerSpecification
 

Constructor Detail

Term.NonTerminal

public Term.NonTerminal()
Method Detail

bindAndGet

public java.nio.ByteBuffer bindAndGet(java.util.List<java.nio.ByteBuffer> values)
                               throws InvalidRequestException
Description copied from interface: Term
A shorter for bind(values).get(). We expose it mainly because for constants it can avoids allocating a temporary object between the bind and the get (note that we still want to be able to separate bind and get for collections).

Specified by:
bindAndGet in interface Term
Throws:
InvalidRequestException


Copyright © 2013 The Apache Software Foundation