cassandra-driver 3.2.0-java → 3.2.1-java
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/README.md +12 -9
- data/lib/cassandra.rb +1 -1
- data/lib/cassandra/address_resolution.rb +1 -1
- data/lib/cassandra/address_resolution/policies/ec2_multi_region.rb +1 -1
- data/lib/cassandra/address_resolution/policies/none.rb +1 -1
- data/lib/cassandra/aggregate.rb +1 -1
- data/lib/cassandra/argument.rb +1 -1
- data/lib/cassandra/attr_boolean.rb +1 -1
- data/lib/cassandra/auth.rb +1 -1
- data/lib/cassandra/auth/providers.rb +1 -1
- data/lib/cassandra/auth/providers/password.rb +1 -1
- data/lib/cassandra/cassandra_logger.rb +1 -1
- data/lib/cassandra/cluster.rb +1 -1
- data/lib/cassandra/cluster/client.rb +1 -1
- data/lib/cassandra/cluster/connection_pool.rb +1 -1
- data/lib/cassandra/cluster/connector.rb +1 -1
- data/lib/cassandra/cluster/control_connection.rb +1 -1
- data/lib/cassandra/cluster/failed_connection.rb +1 -1
- data/lib/cassandra/cluster/metadata.rb +1 -1
- data/lib/cassandra/cluster/options.rb +1 -1
- data/lib/cassandra/cluster/registry.rb +5 -5
- data/lib/cassandra/cluster/schema.rb +1 -1
- data/lib/cassandra/cluster/schema/cql_type_parser.rb +1 -1
- data/lib/cassandra/cluster/schema/fetchers.rb +2 -2
- data/lib/cassandra/cluster/schema/fqcn_type_parser.rb +1 -1
- data/lib/cassandra/cluster/schema/partitioners.rb +1 -1
- data/lib/cassandra/cluster/schema/partitioners/murmur3.rb +1 -1
- data/lib/cassandra/cluster/schema/partitioners/ordered.rb +1 -1
- data/lib/cassandra/cluster/schema/partitioners/random.rb +1 -1
- data/lib/cassandra/cluster/schema/replication_strategies.rb +1 -1
- data/lib/cassandra/cluster/schema/replication_strategies/network_topology.rb +1 -1
- data/lib/cassandra/cluster/schema/replication_strategies/none.rb +1 -1
- data/lib/cassandra/cluster/schema/replication_strategies/simple.rb +1 -1
- data/lib/cassandra/column.rb +1 -1
- data/lib/cassandra/column_container.rb +2 -2
- data/lib/cassandra/compression.rb +1 -1
- data/lib/cassandra/compression/compressors/lz4.rb +1 -1
- data/lib/cassandra/compression/compressors/snappy.rb +1 -1
- data/lib/cassandra/custom_data.rb +1 -1
- data/lib/cassandra/driver.rb +1 -1
- data/lib/cassandra/errors.rb +1 -1
- data/lib/cassandra/execution/info.rb +1 -1
- data/lib/cassandra/execution/options.rb +1 -1
- data/lib/cassandra/execution/profile.rb +5 -2
- data/lib/cassandra/execution/profile_manager.rb +1 -1
- data/lib/cassandra/execution/trace.rb +1 -1
- data/lib/cassandra/executors.rb +1 -1
- data/lib/cassandra/function.rb +1 -1
- data/lib/cassandra/function_collection.rb +1 -1
- data/lib/cassandra/future.rb +1 -1
- data/lib/cassandra/host.rb +1 -1
- data/lib/cassandra/index.rb +1 -1
- data/lib/cassandra/keyspace.rb +1 -1
- data/lib/cassandra/listener.rb +1 -1
- data/lib/cassandra/load_balancing.rb +1 -1
- data/lib/cassandra/load_balancing/policies.rb +1 -1
- data/lib/cassandra/load_balancing/policies/dc_aware_round_robin.rb +1 -1
- data/lib/cassandra/load_balancing/policies/round_robin.rb +1 -1
- data/lib/cassandra/load_balancing/policies/token_aware.rb +1 -1
- data/lib/cassandra/load_balancing/policies/white_list.rb +1 -1
- data/lib/cassandra/materialized_view.rb +1 -1
- data/lib/cassandra/null_logger.rb +1 -1
- data/lib/cassandra/protocol.rb +1 -1
- data/lib/cassandra/protocol/coder.rb +1 -1
- data/lib/cassandra/protocol/cql_byte_buffer.rb +1 -1
- data/lib/cassandra/protocol/cql_protocol_handler.rb +57 -8
- data/lib/cassandra/protocol/request.rb +1 -1
- data/lib/cassandra/protocol/requests/auth_response_request.rb +1 -1
- data/lib/cassandra/protocol/requests/batch_request.rb +1 -1
- data/lib/cassandra/protocol/requests/credentials_request.rb +1 -1
- data/lib/cassandra/protocol/requests/execute_request.rb +1 -1
- data/lib/cassandra/protocol/requests/options_request.rb +1 -1
- data/lib/cassandra/protocol/requests/prepare_request.rb +1 -1
- data/lib/cassandra/protocol/requests/query_request.rb +1 -1
- data/lib/cassandra/protocol/requests/register_request.rb +1 -1
- data/lib/cassandra/protocol/requests/startup_request.rb +1 -1
- data/lib/cassandra/protocol/requests/void_query_request.rb +1 -1
- data/lib/cassandra/protocol/response.rb +1 -1
- data/lib/cassandra/protocol/responses/already_exists_error_response.rb +1 -1
- data/lib/cassandra/protocol/responses/auth_challenge_response.rb +1 -1
- data/lib/cassandra/protocol/responses/auth_success_response.rb +1 -1
- data/lib/cassandra/protocol/responses/authenticate_response.rb +1 -1
- data/lib/cassandra/protocol/responses/error_response.rb +1 -1
- data/lib/cassandra/protocol/responses/event_response.rb +1 -1
- data/lib/cassandra/protocol/responses/function_failure_error_response.rb +1 -1
- data/lib/cassandra/protocol/responses/prepared_result_response.rb +1 -1
- data/lib/cassandra/protocol/responses/raw_rows_result_response.rb +1 -1
- data/lib/cassandra/protocol/responses/read_failure_error_response.rb +1 -1
- data/lib/cassandra/protocol/responses/read_timeout_error_response.rb +1 -1
- data/lib/cassandra/protocol/responses/ready_response.rb +1 -1
- data/lib/cassandra/protocol/responses/result_response.rb +1 -1
- data/lib/cassandra/protocol/responses/rows_result_response.rb +1 -1
- data/lib/cassandra/protocol/responses/schema_change_event_response.rb +1 -1
- data/lib/cassandra/protocol/responses/schema_change_result_response.rb +1 -1
- data/lib/cassandra/protocol/responses/set_keyspace_result_response.rb +1 -1
- data/lib/cassandra/protocol/responses/status_change_event_response.rb +1 -1
- data/lib/cassandra/protocol/responses/supported_response.rb +1 -1
- data/lib/cassandra/protocol/responses/topology_change_event_response.rb +1 -1
- data/lib/cassandra/protocol/responses/unavailable_error_response.rb +1 -1
- data/lib/cassandra/protocol/responses/unprepared_error_response.rb +1 -1
- data/lib/cassandra/protocol/responses/void_result_response.rb +1 -1
- data/lib/cassandra/protocol/responses/write_failure_error_response.rb +1 -1
- data/lib/cassandra/protocol/responses/write_timeout_error_response.rb +1 -1
- data/lib/cassandra/protocol/v1.rb +1 -1
- data/lib/cassandra/protocol/v3.rb +1 -1
- data/lib/cassandra/protocol/v4.rb +1 -1
- data/lib/cassandra/reconnection.rb +1 -1
- data/lib/cassandra/reconnection/policies.rb +1 -1
- data/lib/cassandra/reconnection/policies/constant.rb +1 -1
- data/lib/cassandra/reconnection/policies/exponential.rb +1 -1
- data/lib/cassandra/result.rb +1 -1
- data/lib/cassandra/retry.rb +1 -1
- data/lib/cassandra/retry/policies.rb +1 -1
- data/lib/cassandra/retry/policies/default.rb +1 -1
- data/lib/cassandra/retry/policies/downgrading_consistency.rb +1 -1
- data/lib/cassandra/retry/policies/fallthrough.rb +1 -1
- data/lib/cassandra/session.rb +8 -4
- data/lib/cassandra/statement.rb +1 -1
- data/lib/cassandra/statements.rb +1 -1
- data/lib/cassandra/statements/batch.rb +1 -1
- data/lib/cassandra/statements/bound.rb +1 -1
- data/lib/cassandra/statements/prepared.rb +1 -1
- data/lib/cassandra/statements/simple.rb +1 -1
- data/lib/cassandra/statements/void.rb +1 -1
- data/lib/cassandra/table.rb +1 -1
- data/lib/cassandra/time.rb +1 -1
- data/lib/cassandra/time_uuid.rb +1 -1
- data/lib/cassandra/timestamp_generator.rb +1 -1
- data/lib/cassandra/timestamp_generator/simple.rb +1 -1
- data/lib/cassandra/timestamp_generator/ticking_on_duplicate.rb +1 -1
- data/lib/cassandra/trigger.rb +1 -1
- data/lib/cassandra/tuple.rb +1 -1
- data/lib/cassandra/types.rb +1 -1
- data/lib/cassandra/udt.rb +1 -1
- data/lib/cassandra/util.rb +1 -1
- data/lib/cassandra/uuid.rb +1 -1
- data/lib/cassandra/uuid/generator.rb +1 -1
- data/lib/cassandra/version.rb +2 -2
- data/lib/cassandra_murmur3.jar +0 -0
- data/lib/datastax/cassandra.rb +1 -1
- metadata +3 -4
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: fee0e3bf34c88a5140938eef028dd9086a6cd5bd
|
|
4
|
+
data.tar.gz: e41b9beee185b9eff65f4fc66eeca9ada53394c8
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 7cc0ebb2178915da11b6ac785287620a276a92478c67a563049c4809472281e3a55f2bd3d38395c5cb657201ab6f8ad78f76be05bfb366d4c066c383b5f53163
|
|
7
|
+
data.tar.gz: a51e3c0ebcf88635022718c791ad46dc20ced1f7bff57135857ca6bbb9fe4b169145f8ffea87fdde4c65da597a995bbb4b04ff76c701aeaeafef2ccd3406e7cf
|
data/README.md
CHANGED
|
@@ -39,10 +39,11 @@ This driver works exclusively with the Cassandra Query Language v3 (CQL3) and Ca
|
|
|
39
39
|
* Apache Cassandra versions 2.1, 2.2, and 3.x
|
|
40
40
|
* DataStax Enterprise 4.8 and above. However, the [Ruby DSE driver](https://github.com/datastax/ruby-dse-driver.git) provides more features and is recommended for use with DataStax Enterprise.
|
|
41
41
|
* Ruby (MRI) 2.2, 2.3, 2.4
|
|
42
|
-
* JRuby
|
|
42
|
+
* JRuby 9k
|
|
43
43
|
|
|
44
|
-
__Note__: Rubinius is not supported.
|
|
45
|
-
|
|
44
|
+
__Note__: Rubinius is not supported.
|
|
45
|
+
|
|
46
|
+
__Note__: Big-endian systems are not supported.
|
|
46
47
|
|
|
47
48
|
## Feedback Requested
|
|
48
49
|
|
|
@@ -100,16 +101,18 @@ __Note__: if you want to use compression you should also install [snappy](http:/
|
|
|
100
101
|
|
|
101
102
|
Some of the new features added to the driver have unfortunately led to changes in the original cql-rb API.
|
|
102
103
|
In the examples directory, you can find [an example of how to wrap the ruby driver to achieve almost complete
|
|
103
|
-
interface parity with cql-rb](https://github.com/datastax/ruby-driver/blob/v3.2.
|
|
104
|
+
interface parity with cql-rb](https://github.com/datastax/ruby-driver/blob/v3.2.1/examples/cql-rb-wrapper.rb)
|
|
104
105
|
to assist you with gradual upgrade.
|
|
105
106
|
|
|
106
107
|
If you are upgrading to DataStax Enterprise, use the [Ruby DSE driver](https://github.com/datastax/ruby-dse-driver.git)
|
|
107
108
|
for more features and better compatibility.
|
|
108
109
|
|
|
109
110
|
## What's new in v3.2
|
|
110
|
-
This minor release adds support for MRI 2.4.x and also contains a few miscellaneous defect fixes.
|
|
111
|
+
This minor release adds support for MRI 2.4.x and also contains a few miscellaneous defect fixes. It also removes
|
|
112
|
+
support for Ruby versions prior to 2.2. This was already officially the case, but the minimum version limit is
|
|
113
|
+
now enforced.
|
|
111
114
|
|
|
112
|
-
See the [changelog](https://github.com/datastax/ruby-driver/blob/v3.2.
|
|
115
|
+
See the [changelog](https://github.com/datastax/ruby-driver/blob/v3.2.1/CHANGELOG.md) for more information on all
|
|
113
116
|
changes in this version and past versions.
|
|
114
117
|
|
|
115
118
|
## What's new in v3.1
|
|
@@ -177,7 +180,7 @@ examples in the `features/` directory.
|
|
|
177
180
|
## Running tests
|
|
178
181
|
|
|
179
182
|
If you don't feel like reading through the following instructions on how to run
|
|
180
|
-
ruby-driver tests, feel free to [check out .travis.yml for the entire build code](https://github.com/datastax/ruby-driver/blob/v3.2.
|
|
183
|
+
ruby-driver tests, feel free to [check out .travis.yml for the entire build code](https://github.com/datastax/ruby-driver/blob/v3.2.1/.travis.yml).
|
|
181
184
|
|
|
182
185
|
* Check out the driver codebase and install test dependencies:
|
|
183
186
|
|
|
@@ -201,7 +204,7 @@ CASSANDRA_VERSION=2.1.12 bundle exec rake test # run both as well as integration
|
|
|
201
204
|
## Changelog & versioning
|
|
202
205
|
|
|
203
206
|
Check out the [releases on GitHub](https://github.com/datastax/ruby-driver/releases) and
|
|
204
|
-
[changelog](https://github.com/datastax/ruby-driver/blob/v3.2.
|
|
207
|
+
[changelog](https://github.com/datastax/ruby-driver/blob/v3.2.1/CHANGELOG.md). Version
|
|
205
208
|
numbering follows the [semantic versioning](http://semver.org/) scheme.
|
|
206
209
|
|
|
207
210
|
Private and experimental APIs, defined as whatever is not in the
|
|
@@ -242,7 +245,7 @@ Driver for Apache Cassandra will continue on this project, while
|
|
|
242
245
|
|
|
243
246
|
## Copyright
|
|
244
247
|
|
|
245
|
-
Copyright
|
|
248
|
+
Copyright DataStax, Inc.
|
|
246
249
|
|
|
247
250
|
Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file
|
|
248
251
|
except in compliance with the License. You may obtain a copy of the License at
|
data/lib/cassandra.rb
CHANGED
data/lib/cassandra/aggregate.rb
CHANGED
data/lib/cassandra/argument.rb
CHANGED
data/lib/cassandra/auth.rb
CHANGED
data/lib/cassandra/cluster.rb
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
# encoding: utf-8
|
|
2
2
|
|
|
3
3
|
#--
|
|
4
|
-
# Copyright
|
|
4
|
+
# Copyright DataStax, Inc.
|
|
5
5
|
#
|
|
6
6
|
# Licensed under the Apache License, Version 2.0 (the "License");
|
|
7
7
|
# you may not use this file except in compliance with the License.
|
|
@@ -182,7 +182,7 @@ module Cassandra
|
|
|
182
182
|
data['listen_address'])
|
|
183
183
|
end
|
|
184
184
|
|
|
185
|
-
# @param
|
|
185
|
+
# @param host [Host] host that is found to be up.
|
|
186
186
|
def toggle_up(host)
|
|
187
187
|
host = Host.new(host.ip,
|
|
188
188
|
host.id,
|
|
@@ -204,7 +204,7 @@ module Cassandra
|
|
|
204
204
|
host
|
|
205
205
|
end
|
|
206
206
|
|
|
207
|
-
# @param
|
|
207
|
+
# @param host [Host] host that is found to be down.
|
|
208
208
|
def toggle_down(host)
|
|
209
209
|
host = Host.new(host.ip,
|
|
210
210
|
host.id,
|
|
@@ -226,7 +226,7 @@ module Cassandra
|
|
|
226
226
|
host
|
|
227
227
|
end
|
|
228
228
|
|
|
229
|
-
# @param
|
|
229
|
+
# @param host [Host] host that is lost.
|
|
230
230
|
def notify_lost(host)
|
|
231
231
|
if host.up?
|
|
232
232
|
@logger.debug("Host #{host.ip} is down and lost")
|
|
@@ -263,7 +263,7 @@ module Cassandra
|
|
|
263
263
|
end
|
|
264
264
|
end
|
|
265
265
|
|
|
266
|
-
# @param
|
|
266
|
+
# @param host [Host] host that is found.
|
|
267
267
|
def notify_found(host)
|
|
268
268
|
@logger.debug("Host #{host.ip} is found and up")
|
|
269
269
|
@listeners.each do |listener|
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
# encoding: utf-8
|
|
2
2
|
|
|
3
3
|
#--
|
|
4
|
-
# Copyright
|
|
4
|
+
# Copyright DataStax, Inc.
|
|
5
5
|
#
|
|
6
6
|
# Licensed under the Apache License, Version 2.0 (the "License");
|
|
7
7
|
# you may not use this file except in compliance with the License.
|
|
@@ -293,7 +293,7 @@ module Cassandra
|
|
|
293
293
|
|
|
294
294
|
# @private
|
|
295
295
|
module Fetchers
|
|
296
|
-
# rubocop:disable
|
|
296
|
+
# rubocop:disable Naming/ClassAndModuleCamelCase
|
|
297
297
|
class V1_2_x
|
|
298
298
|
SELECT_KEYSPACES = 'SELECT * FROM system.schema_keyspaces'.freeze
|
|
299
299
|
SELECT_TABLES = 'SELECT * FROM system.schema_columnfamilies'.freeze
|
data/lib/cassandra/column.rb
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
# encoding: utf-8
|
|
2
2
|
|
|
3
3
|
#--
|
|
4
|
-
# Copyright
|
|
4
|
+
# Copyright DataStax, Inc.
|
|
5
5
|
#
|
|
6
6
|
# Licensed under the Apache License, Version 2.0 (the "License");
|
|
7
7
|
# you may not use this file except in compliance with the License.
|
|
@@ -294,7 +294,7 @@ module Cassandra
|
|
|
294
294
|
# its keyspace constructed yet. So allow updating @keyspace, thus
|
|
295
295
|
# allowing fetchers to create keyspace, table/view, and hook them together without
|
|
296
296
|
# worrying about chickens and eggs.
|
|
297
|
-
# rubocop:disable
|
|
297
|
+
# rubocop:disable Naming/AccessorMethodName
|
|
298
298
|
def set_keyspace(keyspace)
|
|
299
299
|
@keyspace = keyspace
|
|
300
300
|
end
|