Interface Taggable

All Known Implementing Classes:
AggregationPolicy, ComputePool, Contact, Database, DynamicTable, Function, JoinPolicy, MaskingPolicy, MaterializedView, Pipe, Procedure, ProjectionPolicy, RowAccessPolicy, Schema, SqlObject, Stage, Table, TableColumn, Tag, View, Warehouse

public interface Taggable
Implemented by catalog objects (and columns) that can carry Snowflake object tags applied via ALTER <object> SET TAG <tag> = '<value>' / ALTER <object> UNSET TAG <tag>.
  • Method Summary

    Modifier and Type
    Method
    Description
    The value of the named tag on this object, or null if not set.
    All tag associations on this object (tag name -> value).
    void
    setTag(String tagName, String value)
    Associate (or overwrite) a tag value on this object; tagName is the canonical upper-cased tag name.
    void
    unsetTag(String tagName)
    Remove a tag association from this object (no-op if absent).
  • Method Details

    • setTag

      void setTag(String tagName, String value)
      Associate (or overwrite) a tag value on this object; tagName is the canonical upper-cased tag name.
    • unsetTag

      void unsetTag(String tagName)
      Remove a tag association from this object (no-op if absent).
    • getTagValue

      String getTagValue(String tagName)
      The value of the named tag on this object, or null if not set.
    • getTagValues

      Map<String,String> getTagValues()
      All tag associations on this object (tag name -> value). Named getTagValues to avoid clashing with Schema.getTags().