Class SqlCriterion
java.lang.Object
org.metricshub.maven.plugin.connector.producer.model.criteria.AbstractCriterion
org.metricshub.maven.plugin.connector.producer.model.criteria.SqlCriterion
Represents a criterion for filtering based on a SQL query.
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionSqlCriterion(com.fasterxml.jackson.databind.JsonNode criterion) Constructs SqlCriterion with the specified JSON criterion. -
Method Summary
-
Constructor Details
-
SqlCriterion
public SqlCriterion(com.fasterxml.jackson.databind.JsonNode criterion) Constructs SqlCriterion with the specified JSON criterion.- Parameters:
criterion- The JSON criterion for SQL check.
-
-
Method Details
-
getQuery
Gets the query from the current SQL criterion, ornullif not present.- Returns:
- The query from the criterion, or
nullif not present.
-
produce
public void produce(org.apache.maven.doxia.sink.Sink sink) Produces the SQL criterion in the specified sink.- Specified by:
producein classAbstractCriterion- Parameters:
sink- The sink to produce the criterion.
-