Class QueryBlocklistRule

java.lang.Object
org.apache.druid.server.QueryBlocklistRule

public class QueryBlocklistRule extends Object
A rule for matching queries against blocklist criteria. A query matches this rule if ALL specified criteria match (AND logic). Null or empty criteria match everything.
  • Constructor Details

  • Method Details

    • getRuleName

      public String getRuleName()
    • getDataSources

      @Nullable public Set<String> getDataSources()
    • getQueryTypes

      @Nullable public Set<String> getQueryTypes()
    • getContextMatches

      @Nullable public Map<String,String> getContextMatches()
    • matches

      public boolean matches(Query<?> query)
      Returns true if the query matches ALL specified criteria (AND logic). Null or empty criteria match everything.
      Parameters:
      query - the query to check
      Returns:
      true if the query matches this rule, false otherwise
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • hashCode

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

      public String toString()
      Overrides:
      toString in class Object