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) |
public DefaultQueryLaunchingConstraintsChecker(@NonNull com.google.common.collect.ImmutableSet<QueryLaunchingConstraint> lensQueryConstraints)
public boolean canLaunch(QueryContext candidateQuery, EstimatedImmutableQueryCollection launchedQueries)
canLaunch
in interface QueryLaunchingConstraintsChecker
Copyright © 2014–2015 Apache Software Foundation. All rights reserved.