コード例 #1
0
ファイル: FilterOptimizer.java プロジェクト: apotocki/quetsal
 @Override
 public void meet(Projection node) throws OptimizationException {
   super.meet(node);
   // we need to check if we have inserted some value constant
   // from a filter and if this is part of the projection. If yes
   // we need to actually project it
   if (!insertedValues.isEmpty()) {
     node.replaceWith(
         new ProjectionWithBindings(node.getArg(), node.getProjectionElemList(), insertedValues));
   }
 }
コード例 #2
0
  @Override
  protected BindingSet convert(BindingSet sourceBindings) throws QueryEvaluationException {

    return project(projection.getProjectionElemList(), sourceBindings, parentBindings);
  }