public class DefaultQueryLaunchingConstraintsChecker extends Object implements QueryLaunchingConstraintsChecker
QueryLaunchingConstraintsChecker
enforces that a candidate query will be allowed to launch only if
all QueryLaunchingConstraint
s of lens server and all QueryLaunchingConstraint
s of driver selected
for query allow the query to be launched.Constructor and Description |
---|
DefaultQueryLaunchingConstraintsChecker(com.google.common.collect.ImmutableSet<QueryLaunchingConstraint> lensQueryConstraints) |
Modifier and Type | Method and Description |
---|---|
boolean |
canLaunch(QueryContext candidateQuery,
EstimatedImmutableQueryCollection launchedQueries) |
public DefaultQueryLaunchingConstraintsChecker(@NonNull com.google.common.collect.ImmutableSet<QueryLaunchingConstraint> lensQueryConstraints)
public boolean canLaunch(QueryContext candidateQuery, EstimatedImmutableQueryCollection launchedQueries)
canLaunch
in interface QueryLaunchingConstraintsChecker
Copyright © 2014–2018 Apache Software Foundation. All rights reserved.