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.
  • Field Details

  • Constructor Details

  • Method Details

    • get

      public ByteBuffer get(ProtocolVersion version)
      Specified by:
      get in class Term.Terminal
      Returns:
      the serialized value of this terminal.
    • bindAndGet

      public 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 interface Term
      Overrides:
      bindAndGet in class Term.Terminal
    • toString

      public String toString()
      Overrides:
      toString in class Object