thrift-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Sreejith S <srssreej...@gmail.com>
Subject Re: Include external dependency when creating java file from a .thrift file
Date Fri, 18 Nov 2011 05:23:48 GMT
Thank you bryan..

On Fri, Nov 18, 2011 at 2:18 AM, Bryan Duxbury <bryan@rapleaf.com> wrote:

> Thrift does not support referencing arbitrary types from languages and
> libraries. It only supports primitives, Maps, Lists, and Sets.
>
> On Thu, Nov 17, 2011 at 1:58 AM, Sreejith S <srssreejith@gmail.com> wrote:
>
> > Hi ,
> >
> > This is my sample.thrift file
> > namespace java com.test.generated
> >
> > service Extract {
> >  MultiMap extract(1: string text),
> > }
> > The return type of extract function is MultiMap,which is from
> > apache.commons.collections
> >
> > when i run thrift --gen java sample.thrift,
> > since thrift is not ware of MultiMap type and saying Type "MultiMap" has
> > not been defined.
> >
> > How can i make this MultiMap from apache.commons.collection make aware to
> > thrift.
> >
> > --
> >
> >
> > *Sreejith.S*
> > http://srijiths.wordpress.com/
> > * *http://sreejiths.emurse.com/
> >
> > tweet2sree@twitter <http://tweet2Sree>
> >
>



-- 


*Sreejith.S*
http://srijiths.wordpress.com/
* *http://sreejiths.emurse.com/

tweet2sree@twitter <http://tweet2Sree>

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