Query

com.netflix.atlas.core.model.Query
See theQuery companion object
sealed trait Query extends Expr

Attributes

Companion
object
Graph
Supertypes
trait Expr
trait Product
trait Equals
class Object
trait Matchable
class Any
Show all
Known subtypes
class And
object False
trait KeyQuery
class HasKey
class Equal
class GreaterThan
class In
class LessThan
trait PatternQuery
class Regex
class Not
class Or
object True
Show all

Members list

Value members

Abstract methods

def couldMatch(tags: Map[String, String]): Boolean

Returns true if the query expression could match if additional tags were added. Typically used for doing some initial filtering based on a partial list of common tags.

Returns true if the query expression could match if additional tags were added. Typically used for doing some initial filtering based on a partial list of common tags.

Attributes

def labelString: String

Returns a string that summarizes the query expression in a human readable format.

Returns a string that summarizes the query expression in a human readable format.

Attributes

def matches(tags: Map[String, String]): Boolean

Returns true if the query expression matches the tags.

Returns true if the query expression matches the tags.

Attributes

def matchesAny(tags: Map[String, List[String]]): Boolean

Returns true if the query matches for any of the items in the list.

Returns true if the query matches for any of the items in the list.

Attributes

Concrete methods

def and(query: Query): Query
def not: Query
def or(query: Query): Query

Inherited methods

def exprString: String

Returns a string that can be executed with the stack interpreter to create this expression.

Returns a string that can be executed with the stack interpreter to create this expression.

Attributes

Inherited from:
Expr
def productElementName(n: Int): String

Attributes

Inherited from:
Product
def productElementNames: Iterator[String]

Attributes

Inherited from:
Product
def productIterator: Iterator[Any]

Attributes

Inherited from:
Product
def productPrefix: String

Attributes

Inherited from:
Product
def rewrite(f: PartialFunction[Expr, Expr]): Expr

Rewrite the expression using the specified function. The default implementation will try to recursively apply the rewrite to case classes.

Rewrite the expression using the specified function. The default implementation will try to recursively apply the rewrite to case classes.

Attributes

Inherited from:
Expr

Inherited and Abstract methods

def canEqual(that: Any): Boolean

Attributes

Inherited from:
Equals
def productArity: Int

Attributes

Inherited from:
Product
def productElement(n: Int): Any

Attributes

Inherited from:
Product

Concrete fields

override val hashCode: Int

Hash code is cached to allow cheaper lookup during evaluation. This implementation in the base interface depends on the main fields of the case class being set prior to super() being called in the case class constructor. That appears to be the case with current scala versions.

Hash code is cached to allow cheaper lookup during evaluation. This implementation in the base interface depends on the main fields of the case class being set prior to super() being called in the case class constructor. That appears to be the case with current scala versions.

Attributes