avro-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Skye Wanderman-Milne <s...@cloudera.com>
Subject why isn't getSchema static?
Date Wed, 21 Nov 2012 00:00:14 GMT
The SpecificCompiler produces a getSchema function, which looks like it
could be static but isn't. Is there a good reason for this?

I bring this up because when writing to a data file, you have to provide a
schema to the DataFileWriter.create call, and using something like
MyGeneratedClass.getSchema() seems like the natural way to do this
(especially if you haven't created any instances of MyGeneratedClass yet).
Is there a good way to get the Schema object without creating an instance
or parsing the schema yourself?

Skye

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message