thrift-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Joshua Kramer <j...@globalherald.net>
Subject Repeating Elements?
Date Mon, 25 May 2009 23:28:07 GMT
Hello,

How can I specify repeating elements in a thrift spec?

For example if I'm using Google Protocol Buffers, I can do this:

message demoMesssage {
    required string myIdentifier = 1;
    optional string myDatum = 2;
    repeated string myList = 3;
}

In this case, I can have zero or more strings in myList.  In the root 
object (Python, C++, etc) it is specified as an array.  How might I 
represent that message in Thrift-speak?

Cheers,
-Josh

Mime
View raw message