apache - Write pojo's to parquet file using reflection -
The HI API is looking for me to write a paravest with pojes I was able to generate the avio schema with reflection And then I could make a wooden roof schema using the Evrosomema converter. Apart from this, I could not find a way to convert GenericRecords (Avio) from Pojos and I could be able to use AvroParquetWriter to write Pojos in wooden roof files. Any suggestions?
If you want to go through Avro, then you have two options:
< P> 1) Let Avio generate its poses (see tutorial). Generated Pojos enhances specific records, which can later be used with aviroparkvitator.2) Write your own generic record from your Pozo to the conversion you can make it manually or to use more general solution reflection. However, when I tried to read the data, I faced difficulties with this approach. The supplied schema was found in the classpath on the basis of avio and tried to instantify a specific record instead of genericord. Because of this I went with option 1.
The wooden ceiling now supports pojo writing directly on the wooden roof github page, the bridge is requested. However, I think that this is not yet part of the official release. In other words, I did not find this code in Maven.
Comments
Post a Comment