@Test public void testNoInMemoryExecution() { FilterExpression expression = new InPredicate(new Path(Book.class, dictionary, "genre"), "Literary Fiction"); assertFalse(InMemoryExecutionVerifier.shouldExecuteInMemory(dictionary, expression)); }
public static boolean shouldExecuteInMemory(EntityDictionary dictionary, FilterExpression expression) { InMemoryExecutionVerifier verifier = new InMemoryExecutionVerifier(dictionary); return expression.accept(verifier); }
InMemoryExecutionVerifier implements FilterExpressionVisitor<Boolean> { public static boolean shouldExecuteInMemory(EntityDictionary dictionary, FilterExpression expression) { InMemoryExecutionVerifier verifier = new InMemoryExecutionVerifier(dictionary); return expression.accept(verifier); } }
InMemoryExecutionVerifier implements FilterExpressionVisitor<Boolean> { public static boolean shouldExecuteInMemory(EntityDictionary dictionary, FilterExpression expression) { InMemoryExecutionVerifier verifier = new InMemoryExecutionVerifier(dictionary); return expression.accept(verifier); } InMemoryExecutionVerifier(EntityDictionary dictionary); }
InMemoryExecutionVerifier implements FilterExpressionVisitor<Boolean> { public static boolean shouldExecuteInMemory(EntityDictionary dictionary, FilterExpression expression) { InMemoryExecutionVerifier verifier = new InMemoryExecutionVerifier(dictionary); return expression.accept(verifier); } InMemoryExecutionVerifier(EntityDictionary dictionary); @Override Boolean visitPredicate(FilterPredicate filterPredicate); @Override Boolean visitAndExpression(AndFilterExpression expression); @Override Boolean visitOrExpression(OrFilterExpression expression); @Override Boolean visitNotExpression(NotFilterExpression expression); static boolean shouldExecuteInMemory(EntityDictionary dictionary, FilterExpression expression); }
InMemoryExecutionVerifier implements FilterExpressionVisitor<Boolean> { public static boolean shouldExecuteInMemory(EntityDictionary dictionary, FilterExpression expression) { InMemoryExecutionVerifier verifier = new InMemoryExecutionVerifier(dictionary); return expression.accept(verifier); } InMemoryExecutionVerifier(EntityDictionary dictionary); @Override Boolean visitPredicate(FilterPredicate filterPredicate); @Override Boolean visitAndExpression(AndFilterExpression expression); @Override Boolean visitOrExpression(OrFilterExpression expression); @Override Boolean visitNotExpression(NotFilterExpression expression); static boolean shouldExecuteInMemory(EntityDictionary dictionary, FilterExpression expression);  }