avro-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Scott Carey <sc...@richrelevance.com>
Subject Re: Map Schema arbitrary key type
Date Tue, 26 Apr 2011 21:25:48 GMT
Use an Array of records, with one field in the record the key, and the rest the value fields.
 You can then convert a custom Map to and from List in a wrapper or helper method.

Several languages only support string keys in their intrinsic map or dictionary types.

On 4/26/11 11:45 AM, "Weishung Chung" <weishung@gmail.com<mailto:weishung@gmail.com>>
wrote:

Fellow Avro users,

Could it be possible to use Integer as the key in the map schema in the future?

Thanks alot,
Wei Shung

Mime
View raw message