use of org.apache.metron.profiler.client.window.generated.WindowLexer in project metron by apache.
the class WindowProcessor method createTokenStream.
private static TokenStream createTokenStream(String statement) {
if (statement == null || isEmpty(statement.trim())) {
return null;
}
statement = statement.trim();
ANTLRInputStream input = new ANTLRInputStream(statement);
WindowLexer lexer = new WindowLexer(input);
lexer.removeErrorListeners();
lexer.addErrorListener(new ErrorListener());
TokenStream tokens = new CommonTokenStream(lexer);
return tokens;
}
Aggregations