org.apache.cassandra.cql3
Class Constants.Value

java.lang.Object
  extended by org.apache.cassandra.cql3.Term.Terminal
      extended by org.apache.cassandra.cql3.Constants.Value
All Implemented Interfaces:
Term
Enclosing class:
Constants

public static class Constants.Value
extends Term.Terminal

A constant value, i.e. a ByteBuffer.


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

Field Detail

bytes

public final java.nio.ByteBuffer bytes
Constructor Detail

Constants.Value

public Constants.Value(java.nio.ByteBuffer bytes)
Method Detail

get

public java.nio.ByteBuffer get()
Specified by:
get in class Term.Terminal
Returns:
the serialized value of this terminal.

bindAndGet

public java.nio.ByteBuffer bindAndGet(java.util.List<java.nio.ByteBuffer> values)
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
Overrides:
bindAndGet in class Term.Terminal


Copyright © 2013 The Apache Software Foundation