Package com.jerolba.carpet
Class CarpetRecordGenerator
java.lang.Object
com.jerolba.carpet.CarpetRecordGenerator
Experimental utility class. The API and behavior can change in the future.
Given a Parquet file generates Java source code needed to parse the file.
- Each element of List is a Record
- Generates all possible Records
- Nested classes use as Record name the name of the field that references them
- Enums are declared as String
- If two records have the same fields of the same type, the first to appear is selected
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongenerateCode(File file) generateCode(String filePath) generateCode(org.apache.parquet.io.InputFile inputFile)
-
Constructor Details
-
CarpetRecordGenerator
public CarpetRecordGenerator()
-
-
Method Details
-
generateCode
- Throws:
IOException
-
generateCode
- Throws:
IOException
-
generateCode
public static List<String> generateCode(org.apache.parquet.io.InputFile inputFile) throws IOException - Throws:
IOException
-