Object/Trait

com.netflix.atlas.core.model

Query

Related Docs: trait Query | package model

Permalink

object Query

Linear Supertypes
AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. Query
  2. AnyRef
  3. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Type Members

  1. case class And(q1: Query, q2: Query) extends Query with Product with Serializable

    Permalink
  2. case class Equal(k: String, v: String) extends KeyValueQuery with Product with Serializable

    Permalink
  3. case class GreaterThan(k: String, v: String) extends KeyValueQuery with Product with Serializable

    Permalink
  4. case class GreaterThanEqual(k: String, v: String) extends KeyValueQuery with Product with Serializable

    Permalink
  5. case class HasKey(k: String) extends KeyQuery with Product with Serializable

    Permalink
  6. case class In(k: String, vs: List[String]) extends KeyValueQuery with Product with Serializable

    Permalink
  7. sealed trait KeyQuery extends Query

    Permalink
  8. sealed trait KeyValueQuery extends KeyQuery

    Permalink
  9. case class LessThan(k: String, v: String) extends KeyValueQuery with Product with Serializable

    Permalink
  10. case class LessThanEqual(k: String, v: String) extends KeyValueQuery with Product with Serializable

    Permalink
  11. case class Not(q: Query) extends Query with Product with Serializable

    Permalink
  12. case class Or(q1: Query, q2: Query) extends Query with Product with Serializable

    Permalink
  13. sealed trait PatternQuery extends KeyValueQuery

    Permalink
  14. case class Regex(k: String, v: String) extends PatternQuery with Product with Serializable

    Permalink
  15. case class RegexIgnoreCase(k: String, v: String) extends PatternQuery with Product with Serializable

    Permalink

Value Members

  1. final def !=(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  2. final def ##(): Int

    Permalink
    Definition Classes
    AnyRef → Any
  3. final def ==(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  4. object False extends Query with Product with Serializable

    Permalink
  5. object True extends Query with Product with Serializable

    Permalink
  6. final def asInstanceOf[T0]: T0

    Permalink
    Definition Classes
    Any
  7. def clone(): AnyRef

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @HotSpotIntrinsicCandidate() @throws( ... )
  8. def cnf(query: Query): Query

    Permalink

    Converts the input query into conjunctive normal form.

  9. def cnfList(query: Query): List[Query]

    Permalink

    Converts the input query into a list of sub-queries that should be ANDd together.

  10. def dnf(query: Query): Query

    Permalink

    Converts the input query into disjunctive normal form.

  11. def dnfList(query: Query): List[Query]

    Permalink

    Converts the input query into a list of sub-queries that should be ORd together.

  12. final def eq(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  13. def equals(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  14. def exactKeys(query: Query): Set[String]

    Permalink

    Return the set of keys explicitly referenced in the query.

    Return the set of keys explicitly referenced in the query. This can be useful for assisting with automatic legends.

  15. def expandInClauses(query: Query, limit: Int = 5): List[Query]

    Permalink

    Split :in queries into a list of queries using :eq.

    Split :in queries into a list of queries using :eq. The query should be normalized ahead of time so it is a string of conjunctions. See dnfList for more information.

    In order to avoid a massive combinatorial explosion clauses that have more than limit expressions will not be expanded. The default limit is 5. It is somewhat arbitrary, but seems to work well in practice for the current query data sets at Netflix.

  16. final def getClass(): Class[_]

    Permalink
    Definition Classes
    AnyRef → Any
    Annotations
    @HotSpotIntrinsicCandidate()
  17. def hashCode(): Int

    Permalink
    Definition Classes
    AnyRef → Any
    Annotations
    @HotSpotIntrinsicCandidate()
  18. final def isInstanceOf[T0]: Boolean

    Permalink
    Definition Classes
    Any
  19. final def ne(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  20. final def notify(): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @HotSpotIntrinsicCandidate()
  21. final def notifyAll(): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @HotSpotIntrinsicCandidate()
  22. def simplify(query: Query, ignore: Boolean = false): Query

    Permalink

    Simplify a query expression that contains True and False constants.

    Simplify a query expression that contains True and False constants.

    query

    Query expression to simplify.

    ignore

    If true, then the simplification is for the purposes of ignoring certain query terms. This comes up in some automatic rewriting use-cases where we need to have a restriction clause based on a subset of the keys and ignore the rest. Consider the following example: nf.app,www,:eq,name,http.requests,:eq,:and,status,200,:eq,:not,:and,:sum Lets suppose I want to simplify this to a base query for the common tags that could be reused with other metrics. One way would be to rewrite all key query clauses that are not using common tags (prefixed with nf.) to Query.True and simplify. However the not clause causes a problem: rewrite - nf.app,www,:eq,:true,:and,:true,:not,:and simplification 1 - nf.app,www.:eq,:false,:and simplification 2 - :false The ignore mode will cause :true,:not to map to :true so the term will get ignored rather than reduce the entire expression to :false. Default value is false.

    returns

    The simplified query expression.

  23. final def synchronized[T0](arg0: ⇒ T0): T0

    Permalink
    Definition Classes
    AnyRef
  24. def tags(query: Query): Map[String, String]

    Permalink

    Extract a set of tags for the query based on the :eq clauses.

  25. def toString(): String

    Permalink
    Definition Classes
    AnyRef → Any
  26. final def wait(arg0: Long, arg1: Int): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  27. final def wait(arg0: Long): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  28. final def wait(): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )

Deprecated Value Members

  1. def finalize(): Unit

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @Deprecated @deprecated @throws( classOf[java.lang.Throwable] )
    Deprecated

    (Since version ) see corresponding Javadoc for more information.

Inherited from AnyRef

Inherited from Any

Ungrouped