public class ASTOptimizerList extends LinkedList<IASTOptimizer> implements IASTOptimizer
modCount
Constructor and Description |
---|
ASTOptimizerList(Collection<IASTOptimizer> c) |
ASTOptimizerList(IASTOptimizer... optimizers) |
Modifier and Type | Method and Description |
---|---|
boolean |
add(IASTOptimizer opt) |
QueryNodeWithBindingSet |
optimize(AST2BOpContext context,
QueryNodeWithBindingSet input)
Run all the optimizers in the list.
|
add, addAll, addAll, addFirst, addLast, clear, clone, contains, descendingIterator, element, get, getFirst, getLast, indexOf, lastIndexOf, listIterator, offer, offerFirst, offerLast, peek, peekFirst, peekLast, poll, pollFirst, pollLast, pop, push, remove, remove, remove, removeFirst, removeFirstOccurrence, removeLast, removeLastOccurrence, set, size, toArray, toArray
iterator
equals, hashCode, listIterator, removeRange, subList
containsAll, isEmpty, removeAll, retainAll, toString
finalize, getClass, notify, notifyAll, wait, wait, wait
containsAll, equals, hashCode, isEmpty, iterator, listIterator, removeAll, retainAll, subList
public ASTOptimizerList(Collection<IASTOptimizer> c)
public ASTOptimizerList(IASTOptimizer... optimizers)
public boolean add(IASTOptimizer opt)
add
in interface Collection<IASTOptimizer>
add
in interface Deque<IASTOptimizer>
add
in interface List<IASTOptimizer>
add
in interface Queue<IASTOptimizer>
add
in class LinkedList<IASTOptimizer>
public QueryNodeWithBindingSet optimize(AST2BOpContext context, QueryNodeWithBindingSet input)
Note: This makes a deep copy of the AST before applying destructive modifications.
optimize
in interface IASTOptimizer
context
- The evaluation context.input
- The input to the optimizer, consisting of a queryNode and
input binding set.Copyright © 2006–2019 SYSTAP, LLC DBA Blazegraph. All rights reserved.