public static final void getAggregates(LanguageObject obj, Collection<? super AggregateSymbol> aggregates, Collection<? super ElementSymbol> otherElements, Collection<? super Expression> groupingColsUsed, Collection<? super WindowFunction> windowFunctions, Collection<? extends Expression> groupingCols) { AggregateSymbolCollectorVisitor visitor = new AggregateSymbolCollectorVisitor(aggregates, otherElements); visitor.windowFunctions = windowFunctions; AggregateStopNavigator asn = new AggregateStopNavigator(visitor, groupingColsUsed, groupingCols); asn.visitNode(obj); }
/** * Return a String representation of this object using SQLStringVisitor. * @return String representation using SQLStringVisitor */ public String toString() { return SQLStringVisitor.getSQLString(this); }
/** * Helper to quickly get the elements from obj in a collection. The * removeDuplicates flag affects whether duplicate elements will be * filtered out. * @param obj Language object * @param removeDuplicates True to remove duplicates * @return Collection of {@link org.teiid.query.sql.symbol.ElementSymbol} */ public static final Collection<ElementSymbol> getElements(LanguageObject obj, boolean removeDuplicates) { return ElementCollectorVisitor.getElements(obj, removeDuplicates, false); }
public void helpTestGroups(LanguageObject obj, boolean removeDuplicates, Collection expectedGroups) { Collection actualGroups = GroupCollectorVisitor.getGroups(obj, removeDuplicates); assertEquals("Actual groups didn't meet expected groups: ", expectedGroups, actualGroups); //$NON-NLS-1$ }
/** * Helper to quickly get the commands from obj * @param obj Language object * @param elements Collection to collect commands in */ public static final List<Command> getCommands(Command command) { return getCommands(command, false); }
/** * Returns a string representation of an instance of this class. * @return String representation of object */ public String toString() { return SQLStringVisitor.getSQLString(this); }
public static final void getAggregates(LanguageObject obj, Collection<? super AggregateSymbol> aggregates, Collection<? super ElementSymbol> otherElements, Collection<? super Expression> groupingColsUsed, Collection<? super WindowFunction> windowFunctions, Collection<? extends Expression> groupingCols) { AggregateSymbolCollectorVisitor visitor = new AggregateSymbolCollectorVisitor(aggregates, otherElements); visitor.windowFunctions = windowFunctions; AggregateStopNavigator asn = new AggregateStopNavigator(visitor, groupingColsUsed, groupingCols); asn.visitNode(obj); }
/** * Returns a string representation of an instance of this class. * @return String representation of object */ public String toString() { return SQLStringVisitor.getSQLString(this); }
public static final void getAggregates(LanguageObject obj, Collection<? super AggregateSymbol> aggregates, Collection<? super ElementSymbol> otherElements, Collection<? super Expression> groupingColsUsed, Collection<? super WindowFunction> windowFunctions, Collection<? extends Expression> groupingCols) { AggregateSymbolCollectorVisitor visitor = new AggregateSymbolCollectorVisitor(aggregates, otherElements); visitor.windowFunctions = windowFunctions; AggregateStopNavigator asn = new AggregateStopNavigator(visitor, groupingColsUsed, groupingCols); asn.visitNode(obj); }
/** * Returns a string representation of an instance of this class. * @return String representation of object */ public String toString() { return SQLStringVisitor.getSQLString(this); }
/** * Returns a string representation of an instance of this class. * @return String representation of object */ public String toString() { return SQLStringVisitor.getSQLString(this); }
/** * Returns a string representation of an instance of this class. * @return String representation of object */ public String toString() { return SQLStringVisitor.getSQLString(this); }
/** * Returns a string representation of an instance of this class. * @return String representation of object */ public String toString() { return SQLStringVisitor.getSQLString(this); }
/** * Returns a string representation of an instance of this class. * @return String representation of object */ public String toString() { return SQLStringVisitor.getSQLString(this); }
/** * Return the parser string. */ public String toString() { return SQLStringVisitor.getSQLString(this); }
@Override public String toString() { return SQLStringVisitor.getSQLString(this); } }
/** * Returns a string representation of an instance of this class. * @return String representation of object */ public String toString() { return SQLStringVisitor.getSQLString(this); }
/** * Return a String representation of this object using SQLStringVisitor. * @return String representation using SQLStringVisitor */ public String toString() { return SQLStringVisitor.getSQLString(this); }
/** * Return string representation of the function. * @return String representation */ public String toString() { return SQLStringVisitor.getSQLString(this); }
/** * Returns a string representation of an instance of this class. * @return String representation of object */ public String toString() { return SQLStringVisitor.getSQLString(this); }