thrift-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Ted Dunning <ted.dunn...@gmail.com>
Subject Re: Optional fields with conditional logic
Date Tue, 24 Jan 2012 15:42:57 GMT
Use optional elements.  It is up to you to decide whether the elements
should be there.

In Thrift, basically everything is optional so you can test whether or not
elements are present to get the effect you like.

On Tue, Jan 24, 2012 at 7:39 AM, Mike Stoddart <stodge@gmail.com> wrote:

> Does Thrift support conditional logic? For example, I have a protocol that
> uses the bits in a byte field to determine which of the subsequent optional
> fields are present. Thanks
>

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