diff options
author | Brian S. O'Neill <bronee@gmail.com> | 2007-10-14 05:44:35 +0000 |
---|---|---|
committer | Brian S. O'Neill <bronee@gmail.com> | 2007-10-14 05:44:35 +0000 |
commit | 1e81bfc705cafe88b804a8a6b1b8616c8773d280 (patch) | |
tree | 01266dc8995a350f6681997173205c59857f6abb /src/main/java/com/amazon/carbonado/qe | |
parent | a2b87f48775ca6687de0eb4af4b846bd1f0cdebf (diff) |
Support ordering by derived properties.
Diffstat (limited to 'src/main/java/com/amazon/carbonado/qe')
3 files changed, 34 insertions, 0 deletions
diff --git a/src/main/java/com/amazon/carbonado/qe/FilteredQueryExecutor.java b/src/main/java/com/amazon/carbonado/qe/FilteredQueryExecutor.java index 494d353..6f662a4 100644 --- a/src/main/java/com/amazon/carbonado/qe/FilteredQueryExecutor.java +++ b/src/main/java/com/amazon/carbonado/qe/FilteredQueryExecutor.java @@ -75,6 +75,16 @@ public class FilteredQueryExecutor<S extends Storable> extends AbstractQueryExec return mExecutor.getOrdering();
}
+ /**
+ * Prints native query of the wrapped executor.
+ */
+ @Override
+ public boolean printNative(Appendable app, int indentLevel, FilterValues<S> values)
+ throws IOException
+ {
+ return mExecutor.printNative(app, indentLevel, values);
+ }
+
public boolean printPlan(Appendable app, int indentLevel, FilterValues<S> values)
throws IOException
{
diff --git a/src/main/java/com/amazon/carbonado/qe/SortedQueryExecutor.java b/src/main/java/com/amazon/carbonado/qe/SortedQueryExecutor.java index a142b72..5419fe6 100644 --- a/src/main/java/com/amazon/carbonado/qe/SortedQueryExecutor.java +++ b/src/main/java/com/amazon/carbonado/qe/SortedQueryExecutor.java @@ -115,6 +115,16 @@ public class SortedQueryExecutor<S extends Storable> extends AbstractQueryExecut return mHandledOrdering.concat(mRemainderOrdering);
}
+ /**
+ * Prints native query of the wrapped executor.
+ */
+ @Override
+ public boolean printNative(Appendable app, int indentLevel, FilterValues<S> values)
+ throws IOException
+ {
+ return mExecutor.printNative(app, indentLevel, values);
+ }
+
public boolean printPlan(Appendable app, int indentLevel, FilterValues<S> values)
throws IOException
{
diff --git a/src/main/java/com/amazon/carbonado/qe/UnionQueryExecutor.java b/src/main/java/com/amazon/carbonado/qe/UnionQueryExecutor.java index aa3577f..c73952c 100644 --- a/src/main/java/com/amazon/carbonado/qe/UnionQueryExecutor.java +++ b/src/main/java/com/amazon/carbonado/qe/UnionQueryExecutor.java @@ -122,6 +122,20 @@ public class UnionQueryExecutor<S extends Storable> extends AbstractQueryExecuto return mTotalOrdering;
}
+ /**
+ * Prints native queries of the wrapped executors.
+ */
+ @Override
+ public boolean printNative(Appendable app, int indentLevel, FilterValues<S> values)
+ throws IOException
+ {
+ boolean result = false;
+ for (QueryExecutor<S> executor : mExecutors) {
+ result |= executor.printNative(app, indentLevel, values);
+ }
+ return result;
+ }
+
public boolean printPlan(Appendable app, int indentLevel, FilterValues<S> values)
throws IOException
{
|