MCPcopy Create free account
hub / github.com/1345414527/MIT6.830 / addOrderBy

Method addOrderBy

src/java/simpledb/optimizer/LogicalPlan.java:215–220  ·  view source on GitHub ↗

Add an ORDER BY expression in the specified order on the specified field. SimpleDb only supports a single ORDER BY field. @param field the field to order by @param asc true if should be ordered in ascending order, false for descending order @throws ParsingException

(String field, boolean asc)

Source from the content-addressed store, hash-verified

213 * @throws ParsingException
214 */
215 public void addOrderBy(String field, boolean asc) throws ParsingException {
216 field=disambiguateName(field);
217 oByField = field;
218 oByAsc = asc;
219 hasOrderBy = true;
220 }
221
222 /** Given a name of a field, try to figure out what table it belongs to by looking
223 * through all of the tables added via {@link #addScan}.

Callers 1

parseQueryLogicalPlanMethod · 0.95

Calls 1

disambiguateNameMethod · 0.95

Tested by

no test coverage detected