Package com.sap.hadoop.windowing.parser

Examples of com.sap.hadoop.windowing.parser.Windowing2Parser


  public void checkQuery(String query) throws WindowingException
  {
    Windowing2Lexer lexer;
    CommonTokenStream tokens;
    Windowing2Parser parser = null;
    @SuppressWarnings("unused")
    CommonTree t;
//    CommonTreeNodeStream nodes;
    String err;
   
    try
    {
      lexer = new Windowing2Lexer(new ANTLRStringStream(query));
      tokens = new CommonTokenStream(lexer);
      parser = new Windowing2Parser(tokens);
      parser.setTreeAdaptor(TranslateUtils.adaptor);
      t = (CommonTree) parser.query().getTree();
     
      err = parser.getWindowingParseErrors();
      if ( err != null )
      {
        throw new WindowingException(err);
      }
    }
    catch(Throwable te)
    {
      err = parser.getWindowingParseErrors();
      if ( err != null )
      {
        throw new WindowingException(err);
      }
      throw new WindowingException("Parse Error:" + te.toString(), te);
View Full Code Here

TOP

Related Classes of com.sap.hadoop.windowing.parser.Windowing2Parser

Copyright © 2018 www.massapicom. 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.