public class DefaultQueryLaunchingConstraintsChecker extends Object implements QueryLaunchingConstraintsChecker
QueryLaunchingConstraintsChecker enforces that a candidate query will be allowed to launch only if
all QueryLaunchingConstraints of lens server and all QueryLaunchingConstraints 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 QueryLaunchingConstraintsCheckerCopyright © 2014–2018 Apache Software Foundation. All rights reserved.