Package org.apache.cassandra.cql3
Class Constants.Value
- java.lang.Object
-
- org.apache.cassandra.cql3.Term.Terminal
-
- 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.MultiColumnRaw, Term.MultiItemTerminal, Term.NonTerminal, Term.Raw, Term.Terminal
-
-
Field Summary
Fields Modifier and Type Field Description java.nio.ByteBuffer
bytes
-
Constructor Summary
Constructors Constructor Description Value(java.nio.ByteBuffer bytes)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.nio.ByteBuffer
bindAndGet(QueryOptions options)
A shorter for bind(values).get().java.nio.ByteBuffer
get(ProtocolVersion version)
java.lang.String
toString()
-
Methods inherited from class org.apache.cassandra.cql3.Term.Terminal
addFunctionsTo, bind, collectMarkerSpecification, containsBindMarker, isTerminal
-
-
-
-
Method Detail
-
get
public java.nio.ByteBuffer get(ProtocolVersion version)
- Specified by:
get
in classTerm.Terminal
- Returns:
- the serialized value of this terminal.
-
bindAndGet
public java.nio.ByteBuffer bindAndGet(QueryOptions options)
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 interfaceTerm
- Overrides:
bindAndGet
in classTerm.Terminal
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
-