java - Exceed the amount of parameters in a method -


i using apache avro tool generate schema class .avsc file. running issue have more 300 fields in avro schema, causes "java error: many parameters" when using class. (because each field in schema 1 parameter in schema class constructor). java has limit of 255 parameters in method.

i know may able resolve issue using generic record (instead of avro tool , class generation). before restructured whole thing, there workaround?

your schema design pretty bad if table (class) has 300 fields.

find way break data down multiple classes , multiple tables.

reading on database normalization start.


Comments

Popular posts from this blog

javascript - How to synchronize the Three.js and HTML/SVG coordinate systems (especially w.r.t. the y-axis)? -

javascript - How do I find how many occurences are there of a highlighted string, and which occurence is it? -

java - Reading data from multiple zip files and combining them to one -