Class GenerateSchemaDefFromParquet
java.lang.Object
com.northconcepts.datapipeline.parquet.tools.GenerateSchemaDefFromParquet
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongenerateSchemaDef(InputFile inputParquetFile) Reads the schema of the Parquet input file and generates a schema definition from it.generateSchemaDef(File parquetFile) Reads the schema of the Parquet file and generates a schema definition from it.generateSchemaDef(MessageType schema) Generates a schema definition from the Parquet schema and keeps the schema forgetParquetSchema().getFieldTypeForPrimitiveType(Type type) Creates the field definition for a primitive Parquet column from its primitive and logical type; INT96 columns usegetInt96FieldType().ReturnsFieldTypefor int96 data type of Parquet.MessageTypeReturns the Parquet schema used by the most recentgenerateSchemaDefcall or null if there was none.setInt96FieldType(FieldType int96FieldType) SetFieldTypefor int96 data type of Parquet.
-
Constructor Details
-
GenerateSchemaDefFromParquet
-
-
Method Details
-
generateSchemaDef
Reads the schema of the Parquet file and generates a schema definition from it. -
generateSchemaDef
Reads the schema of the Parquet input file and generates a schema definition from it. -
generateSchemaDef
Generates a schema definition from the Parquet schema and keeps the schema forgetParquetSchema(). -
getFieldTypeForPrimitiveType
Creates the field definition for a primitive Parquet column from its primitive and logical type; INT96 columns usegetInt96FieldType(). -
getInt96FieldType
ReturnsFieldTypefor int96 data type of Parquet. Possible values are:FieldType.DATETIME,FieldType.BYTEinvalid input: '&'FieldType.UNDEFINED -
setInt96FieldType
SetFieldTypefor int96 data type of Parquet. Possible values are:FieldType.DATETIME,FieldType.BYTEinvalid input: '&'FieldType.UNDEFINED -
getParquetSchema
public MessageType getParquetSchema()Returns the Parquet schema used by the most recentgenerateSchemaDefcall or null if there was none.
-