Examples of toStringTree()


Examples of org.apache.hadoop.hive.ql.parse.ASTNode.toStringTree()

  }

  @Test
  public void testAddPartition() throws Exception {
    ASTNode ast = parse("alter table parted add partition (day='Monday')");
    LOG.info("AST: " + ast.toStringTree());
    AccessURI partitionLocation = HiveAuthzBindingHook.extractPartition(ast);
    Assert.assertNull("Query without part location should not return location",
        partitionLocation);
  }
  @Test
View Full Code Here

Examples of org.apache.tajo.engine.parser.SQLParser.Boolean_value_expressionContext.toStringTree()

    CommonTokenStream tokens = new CommonTokenStream(lexer);
    SQLParser parser = new SQLParser(tokens);
    parser.setBuildParseTree(true);
    SQLAnalyzer visitor = new SQLAnalyzer();
    Boolean_value_expressionContext context = parser.boolean_value_expression();
    System.out.println(context.toStringTree(parser));
    return visitor.visitBoolean_value_expression(context);
  }

  @Test
  public void testSelect1() throws IOException {
View Full Code Here

Examples of org.jacorb.notification.filter.etcl.AbstractTCLNode.toStringTree()

        EvaluationContext _context = new EvaluationContext(getEvaluator());

        EvaluationResult pre_res = fstNode.evaluate(_context);
        EvaluationResult pst_res = sndNode.evaluate(_context);

        assertEquals("expected " + fstNode.toStringTree() + " == " + sndNode.toStringTree(),
                pre_res, pst_res);
    }

    //////////////////////////////////////////////////
    // and now some testing
View Full Code Here

Examples of org.python.antlr.base.mod.toStringTree()

            x.printStackTrace();
        }
        AnalyzingParser p = new AnalyzingParser(in, args[0], "ascii");
        mod ast = p.parseModule();
        if (ast != null) {
            System.out.println("parse result: \n" + ast.toStringTree());
        } else {
            System.out.println("failure: \n" + p.getRecognitionErrors());
        }
    }
}
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.