0.8 uses thrift 0.6

 

On Jul 2, 2011, at 11:40 AM, Joseph Stein <crypt...@gmail.com> wrote:

> So I am working on https://issues.apache.org/jira/browse/CASSANDRA-2833
> 
> And when I generate the cassandra.thrift file I am getting weird results and
> differences
> 
> Should I be modifying the CounterColumn.java by hand?
> 
> I am using thrift 0.5.0 and doing
> 
> thrift -gen java cassandra.thrift from the command line
> 
> some of the issues (as an example)
> 
> -    tmpMap.put(_Fields.VALUE, new
> org.apache.thrift.meta_data.FieldMetaData("value",
> org.apache.thrift.TFieldRequirementType.REQUIRED,
> -        new
> org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
> +    Map<_Fields, FieldMetaData> tmpMap = new EnumMap<_Fields,
> FieldMetaData>(_Fields.class);
> +    tmpMap.put(_Fields.NAME, new FieldMetaData("name",
> TFieldRequirementType.REQUIRED,
> 
>   public CounterColumn setName(byte[] name) {
> -    setName(name == null ? (ByteBuffer)null : ByteBuffer.wrap(name));
> +    setName(ByteBuffer.wrap(name));
>     return this;
>   }
> 
> -  /** Returns true if field name is set (has been assigned a value) and
> false otherwise */
> +  /** Returns true if field name is set (has been asigned a value) and
> false otherwise */
> 
> this last ones makes me suspect I am using the wrong thrift version and
> maybe not the right commands?
> http://wiki.apache.org/cassandra/InstallThriftleads me to what I did
> but if there is something different or wrong with
> what I am doing please let me know and I can update the wiki and get back on
> track.
> 
> and all I did to the cassandra.thrift was:
> 
> -    2: required i64 value
> +   2: optional i64 value,
> +   3: optional double operand
> 
> 
> Thanks!
> 
> /*
> Joe Stein
> http://www.linkedin.com/in/charmalloc
> Twitter: @allthingshadoop <http://www.twitter.com/allthingshadoop>
> */

Reply via email to