MCPcopy Create free account
hub / github.com/apache/pig / tokenize

Method tokenize

src/org/apache/pig/parser/QueryParserDriver.java:211–224  ·  view source on GitHub ↗
(String query, String source)

Source from the content-addressed store, hash-verified

209 }
210
211 static CommonTokenStream tokenize(String query, String source)
212 throws ParserException {
213 CharStream input;
214 try {
215 input = new QueryParserStringStream(query, source);
216 } catch (IOException ex) {
217 throw new ParserException("Unexpected IOException: "
218 + ex.getMessage());
219 }
220 QueryLexer lexer = new QueryLexer(input);
221 CommonTokenStream tokens = new CommonTokenStream(lexer);
222 checkError(lexer);
223 return tokens;
224 }
225
226 private static void checkError(BaseRecognizer recognizer)
227 throws ParserException {

Callers 5

parseSchemaMethod · 0.95
parseConstantMethod · 0.95
parseMethod · 0.95
macroImportMethod · 0.95
processPigMethod · 0.95

Calls 2

checkErrorMethod · 0.95
getMessageMethod · 0.45

Tested by

no test coverage detected