Class ViewMetadata

    • Field Detail

      • baseTableId

        public final TableId baseTableId
      • baseTableName

        public final java.lang.String baseTableName
      • includeAllColumns

        public final boolean includeAllColumns
    • Constructor Detail

      • ViewMetadata

        public ViewMetadata​(TableId baseTableId,
                            java.lang.String baseTableName,
                            boolean includeAllColumns,
                            WhereClause whereClause,
                            TableMetadata metadata)
        Parameters:
        baseTableId - Internal ID of the table which this view is based off of
        includeAllColumns - Whether to include all columns or not
    • Method Detail

      • keyspace

        public java.lang.String keyspace()
      • name

        public java.lang.String name()
      • includes

        public boolean includes​(ColumnIdentifier column)
        Returns:
        true if the view specified by this definition will include the column, false otherwise
      • equals

        public boolean equals​(java.lang.Object o)
        Overrides:
        equals in class java.lang.Object
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class java.lang.Object
      • toString

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

        public boolean referencesUserType​(java.nio.ByteBuffer name)
      • appendCqlTo

        public void appendCqlTo​(CqlBuilder builder,
                                boolean internals,
                                boolean ifNotExists)
      • elementKeyspace

        public java.lang.String elementKeyspace()
        Description copied from interface: SchemaElement
        Returns the CQL name of the keyspace to which this schema element belong.
        Specified by:
        elementKeyspace in interface SchemaElement
        Returns:
        the keyspace name.
      • elementName

        public java.lang.String elementName()
        Description copied from interface: SchemaElement
        Returns the CQL name of this schema element.
        Specified by:
        elementName in interface SchemaElement
        Returns:
        the name of this schema element.
      • toCqlString

        public java.lang.String toCqlString​(boolean withInternals,
                                            boolean ifNotExists)
        Description copied from interface: SchemaElement
        Returns a CQL representation of this element
        Specified by:
        toCqlString in interface SchemaElement
        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