Skip to content

Commit

Permalink
Update thrift bindings for 0.8.6.
Browse files Browse the repository at this point in the history
  • Loading branch information
Robert Jackson committed Oct 8, 2011
1 parent 21b926f commit 91a1507
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 2 deletions.
2 changes: 1 addition & 1 deletion vendor/0.8/gen-rb/cassandra_constants.rb
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,6 @@
require 'cassandra_types'

module CassandraThrift
VERSION = %q"19.10.0"
VERSION = %q"19.16.0"

end
10 changes: 9 additions & 1 deletion vendor/0.8/gen-rb/cassandra_types.rb
Original file line number Diff line number Diff line change
Expand Up @@ -604,16 +604,24 @@ def validate
::Thrift::Struct.generate_accessors self
end

# A TokenRange describes part of the Cassandra ring, it is a mapping from a range to
# endpoints responsible for that range.
# @param start_token The first token in the range
# @param end_token The last token in the range
# @param endpoints The endpoints responsible for the range (listed by their configured listen_address)
# @param rpc_endpoints The endpoints responsible for the range (listed by their configured rpc_address)
class TokenRange
include ::Thrift::Struct, ::Thrift::Struct_Union
START_TOKEN = 1
END_TOKEN = 2
ENDPOINTS = 3
RPC_ENDPOINTS = 4

FIELDS = {
START_TOKEN => {:type => ::Thrift::Types::STRING, :name => 'start_token'},
END_TOKEN => {:type => ::Thrift::Types::STRING, :name => 'end_token'},
ENDPOINTS => {:type => ::Thrift::Types::LIST, :name => 'endpoints', :element => {:type => ::Thrift::Types::STRING}}
ENDPOINTS => {:type => ::Thrift::Types::LIST, :name => 'endpoints', :element => {:type => ::Thrift::Types::STRING}},
RPC_ENDPOINTS => {:type => ::Thrift::Types::LIST, :name => 'rpc_endpoints', :element => {:type => ::Thrift::Types::STRING}, :optional => true}
}

def struct_fields; FIELDS; end
Expand Down

0 comments on commit 91a1507

Please sign in to comment.