Class 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 Detail

      • bytes

        public final java.nio.ByteBuffer bytes
    • Constructor Detail

      • Value

        public Value​(java.nio.ByteBuffer bytes)
    • Method Detail

      • get

        public java.nio.ByteBuffer get​(ProtocolVersion version)
        Specified by:
        get in class Term.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 interface Term
        Overrides:
        bindAndGet in class Term.Terminal
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object