Interface CQL3Type

All Known Implementing Classes:
CQL3Type.Collection, CQL3Type.Custom, CQL3Type.Native, CQL3Type.Tuple, CQL3Type.UserDefined, CQL3Type.Vector

public interface CQL3Type
  • Field Details

    • logger

      static final org.slf4j.Logger logger
  • Method Details

    • isCollection

      default boolean isCollection()
    • isUDT

      default boolean isUDT()
    • isVector

      default boolean isVector()
    • getType

      AbstractType<?> getType()
    • toCQLLiteral

      String toCQLLiteral(ByteBuffer bytes)
      Generates CQL literal from a binary value of this type.
      Parameters:
      bytes - the value to convert to a CQL literal. This value must be serialized with version of the native protocol.
    • fromCQLLiteral

      default ByteBuffer fromCQLLiteral(String literal)
      Generates a binary value for the CQL literal of this type
    • fromCQLLiteral

      default ByteBuffer fromCQLLiteral(String keyspaceName, String literal)
      Generates a binary value for the CQL literal of this type