public Set<PhysicalOperation> generateOperations(List<LogicalOperation> sources, List<LogicalOperation> targets, boolean remote) { Set<PhysicalOperation> physicalOperations = new HashSet<>(sources.size()); for (LogicalOperation source : sources) { LogicalOperation target = operationResolver.resolve(source, targets); PhysicalOperation physicalOperation = generate(source, target); physicalOperations.add(physicalOperation); if (!remote) { Set<PhysicalInterceptor> interceptors = generateInterceptors(source, target); physicalOperation.setInterceptors(interceptors); } } return physicalOperations; }
public Set<PhysicalOperation> generateOperations(List<LogicalOperation> sources, List<LogicalOperation> targets, boolean remote) { Set<PhysicalOperation> physicalOperations = new HashSet<>(sources.size()); for (LogicalOperation source : sources) { LogicalOperation target = operationResolver.resolve(source, targets); PhysicalOperation physicalOperation = generate(source, target); physicalOperations.add(physicalOperation); if (!remote) { Set<PhysicalInterceptor> interceptors = generateInterceptors(source, target); physicalOperation.setInterceptors(interceptors); } } return physicalOperations; }