Ejemplo n.º 1
0
  public static void main(String[] args) {
    String parserConfPath = args[0];
    ParserMain pm = new ParserMain();

    Map map = pm.createConfig(parserConfPath);
    QueryPlan plan = pm.generatePlan(map);

    System.out.println(ParserUtil.toString(plan));
    System.out.println(ParserUtil.parToString(plan, map));

    new Main(plan, map, parserConfPath);
  }
Ejemplo n.º 2
0
  @Override
  public void visit(Column column) {
    // extract type for the column
    TypeConversion tc = _schema.getType(ParserUtil.getFullSchemaColumnName(column, _tan));

    // extract the position (index) of the required column
    int position = _it.getColumnIndex(column, _affectedComponent);

    ValueExpression ve = new ColumnReference(tc, position);
    _exprStack.push(ve);
  }