Home | About | Sematext search-lucene.com search-hadoop.com
NEW: Monitor These Apps!
elasticsearch, apache solr, apache hbase, hadoop, redis, casssandra, amazon cloudwatch, mysql, memcached, apache kafka, apache zookeeper, apache storm, ubuntu, centOS, red hat, debian, puppet labs, java, senseiDB
 Search Hadoop and all its subprojects:

Switch to Threaded View
Avro >> mail # user >> Avro IDL: Sharing complex types in multiple protocols


Copy link to this message
-
Avro IDL: Sharing complex types in multiple protocols
I don't find a way to to share complex type in more than one protocol. I
want to do something like:

@namespace ("x.y")
protocol Protocol1 {
  record MyRecord {
    string name;
  }
  void message1(MyRecord r);
}
@namespace ("x.y.z")
protocol Protocol2 {
  void message2(x.y.MyRecord r);
}

Is there a workaround for this ?

Sharad
NEW: Monitor These Apps!
elasticsearch, apache solr, apache hbase, hadoop, redis, casssandra, amazon cloudwatch, mysql, memcached, apache kafka, apache zookeeper, apache storm, ubuntu, centOS, red hat, debian, puppet labs, java, senseiDB