@Test public void testBasicExpression() { Queue store = new Queue(16); store.insert(Write.add("name", Convert.javaToThrift("jeff"), 1)); store.insert(Write.add("company", Convert.javaToThrift("Cinchapi"), 1)); store.insert(Write.add("age", Convert.javaToThrift(100), 1)); store.insert(Write.add("name", Convert.javaToThrift("jeff"), 2)); store.insert(Write.add("company", Convert.javaToThrift("Blavity"), 2)); store.insert(Write.add("age", Convert.javaToThrift(100), 2)); store.insert(Write.add("name", Convert.javaToThrift("ashleah"), 3)); store.insert( Write.add("company", Convert.javaToThrift("ARMN Inc."), 3)); store.insert(Write.add("age", Convert.javaToThrift(50), 3)); String ccl = "name = jeff"; AbstractSyntaxTree ast = ConcourseCompiler.get().parse(ccl); Finder visitor = Finder.instance(); Set<Long> result = ast.accept(visitor, store); Assert.assertEquals(Sets.newHashSet(1L, 2L), result); }
public static Finder instance() { return INSTANCE; }
Finder extends ConditionTreeVisitor<Set<Long>> { public static Finder instance() { return INSTANCE; } }
Finder extends ConditionTreeVisitor<Set<Long>> { public static Finder instance() { return INSTANCE; } private  Finder(); }
Finder extends ConditionTreeVisitor<Set<Long>> { public static Finder instance() { return INSTANCE; } private  Finder(); static Finder instance(); @Override Set<Long> visit(ConjunctionTree tree, Object... data); @Override Set<Long> visit(ExpressionTree tree, Object... data); }
Finder extends ConditionTreeVisitor<Set<Long>> { public static Finder instance() { return INSTANCE; } private  Finder(); static Finder instance(); @Override Set<Long> visit(ConjunctionTree tree, Object... data); @Override Set<Long> visit(ExpressionTree tree, Object... data);  }