Interface SchemaElement

    • Field Detail

      • NAME_COMPARATOR

        static final java.util.Comparator<SchemaElement> NAME_COMPARATOR
        Comparator used to sort Describable name.
    • Method Detail

      • elementKeyspace

        java.lang.String elementKeyspace()
        Returns the CQL name of the keyspace to which this schema element belong.
        Returns:
        the keyspace name.
      • elementName

        java.lang.String elementName()
        Returns the CQL name of this schema element.
        Returns:
        the name of this schema element.
      • elementNameQuotedIfNeeded

        default java.lang.String elementNameQuotedIfNeeded()
      • elementKeyspaceQuotedIfNeeded

        default java.lang.String elementKeyspaceQuotedIfNeeded()
      • toCqlString

        java.lang.String toCqlString​(boolean withInternals,
                                     boolean ifNotExists)
        Returns a CQL representation of this element
        Parameters:
        withInternals - if the internals part of the CQL should be exposed.
        ifNotExists - if "IF NOT EXISTS" should be included.
        Returns:
        a CQL representation of this element