Home | About | Sematext search-lucene.com search-hadoop.com
 Search Hadoop and all its subprojects:

Switch to Plain View
Avro >> mail # user >> Reader / Writer terminology


+
Gregory 2013-06-07, 20:11
+
Doug Cutting 2013-06-08, 07:44
+
Scott Carey 2013-06-08, 21:51
Copy link to this message
-
Re: Reader / Writer terminology


On Sat, 8 Jun 2013, Scott Carey wrote:

> In a more general sense it is simply "from" and "to" -- One might move
> from schema A to B without serialization at all, transforming a data
> structure, or simply want a view of data in the form of A as if it was
> in B.

I'd like to zoom in on this specific point for a little, if I may.

I think serialization is a red herring. It's always a transformation of
one data structure to another, because a claim could be made that one
cannot transform a serialized form without loading it into a data
structure first.

In fact, I think it's always the latter case, a *view*, as you aptly
described it. Which makes it not so much a "from" and "to", but more a
"view A as B"?

Something like:

value_b = value_a.view_as(schema_b)

Just my late-night $0.02.

Grisha
+
Scott Carey 2013-06-10, 15:52