Class Token

    • Constructor Detail

      • Token

        public Token()
    • Method Detail

      • getType

        public abstract DataType getType()
        Returns the data type of this token's value.
        Returns:
        the datatype.
      • getValue

        public abstract Object getValue()
        Returns the raw value of this token.
        Returns:
        the value.
      • serialize

        public abstract ByteBuffer serialize​(ProtocolVersion protocolVersion)
        Returns the serialized form of the current token, using the appropriate codec depending on the partitioner in use and the CQL datatype for the token.
        Parameters:
        protocolVersion - the protocol version in use.
        Returns:
        the serialized form of the current token