diff options
author | Brian S. O'Neill <bronee@gmail.com> | 2008-12-13 04:21:03 +0000 |
---|---|---|
committer | Brian S. O'Neill <bronee@gmail.com> | 2008-12-13 04:21:03 +0000 |
commit | a8e3ebeece7c811b156b47aa789527bf5bb55b56 (patch) | |
tree | 83eb03f19fd42bc97d36561eb3675803be52d329 /src/main/java/com/amazon/carbonado/qe | |
parent | 3f184dc28d1744bab131af067fe5c709659fb416 (diff) |
Allow 'dot' syntax for property chains against one-to-many joins.
Diffstat (limited to 'src/main/java/com/amazon/carbonado/qe')
-rw-r--r-- | src/main/java/com/amazon/carbonado/qe/FilteringScore.java | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/main/java/com/amazon/carbonado/qe/FilteringScore.java b/src/main/java/com/amazon/carbonado/qe/FilteringScore.java index 6fa6ca0..b1709c9 100644 --- a/src/main/java/com/amazon/carbonado/qe/FilteringScore.java +++ b/src/main/java/com/amazon/carbonado/qe/FilteringScore.java @@ -767,7 +767,7 @@ public class FilteringScore<S extends Storable> { }
private boolean isProvidedByIndex(Filter<S> filter) {
- return filter.accept(new Visitor<S, Boolean, Object>() {
+ Boolean result = filter.accept(new Visitor<S, Boolean, Object>() {
@Override
public Boolean visit(OrFilter<S> filter, Object param) {
return filter.getLeftFilter().accept(this, param)
@@ -791,6 +791,8 @@ public class FilteringScore<S extends Storable> { return false;
}
}, null);
+
+ return result == null ? false : result;
}
private static class Range implements Comparator<FilteringScore<?>> {
|