Class AnnotatedFileParser
java.lang.Object
io.trino.tempto.internal.convention.AnnotatedFileParser
Parses files where first line can be single line header.
The line must start with -- marker, and define semicolon separeated map of params.
Example contents: -- database: hive; groups: example_smoketest,blah SOME BODY BODY --- comment BODY
Example multi-section contents: -- database: hive; groups: foo -- delimiter: | --- comment --! name: foo select * from foo; -- delimiter: , --! 42|24|
-
Nested Class Summary
Nested Classes -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
-
Field Details
-
LINE_ESCAPE
- See Also:
-
-
Constructor Details
-
AnnotatedFileParser
public AnnotatedFileParser()
-
-
Method Details
-
parseFile
-
parseFile
public List<AnnotatedFileParser.SectionParsingResult> parseFile(InputStream fileInput) throws IOException - Throws:
IOException
-