cassandra-driver 3.2.0 → 3.2.5.rc.1

Sign up to get free protection for your applications and to get access to all the features.

Potentially problematic release.


This version of cassandra-driver might be problematic. Click here for more details.

Files changed (143) hide show
  1. checksums.yaml +5 -13
  2. data/README.md +30 -30
  3. data/ext/cassandra_murmur3/cassandra_murmur3.c +1 -1
  4. data/lib/cassandra.rb +3 -2
  5. data/lib/cassandra/address_resolution.rb +1 -1
  6. data/lib/cassandra/address_resolution/policies/ec2_multi_region.rb +1 -1
  7. data/lib/cassandra/address_resolution/policies/none.rb +1 -1
  8. data/lib/cassandra/aggregate.rb +1 -1
  9. data/lib/cassandra/argument.rb +1 -1
  10. data/lib/cassandra/attr_boolean.rb +1 -1
  11. data/lib/cassandra/auth.rb +1 -1
  12. data/lib/cassandra/auth/providers.rb +1 -1
  13. data/lib/cassandra/auth/providers/password.rb +1 -1
  14. data/lib/cassandra/cassandra_logger.rb +1 -1
  15. data/lib/cassandra/cluster.rb +1 -1
  16. data/lib/cassandra/cluster/client.rb +1 -1
  17. data/lib/cassandra/cluster/connection_pool.rb +1 -1
  18. data/lib/cassandra/cluster/connector.rb +1 -1
  19. data/lib/cassandra/cluster/control_connection.rb +1 -1
  20. data/lib/cassandra/cluster/failed_connection.rb +1 -1
  21. data/lib/cassandra/cluster/metadata.rb +1 -1
  22. data/lib/cassandra/cluster/options.rb +1 -1
  23. data/lib/cassandra/cluster/registry.rb +5 -5
  24. data/lib/cassandra/cluster/schema.rb +1 -1
  25. data/lib/cassandra/cluster/schema/cql_type_parser.rb +4 -3
  26. data/lib/cassandra/cluster/schema/fetchers.rb +2 -2
  27. data/lib/cassandra/cluster/schema/fqcn_type_parser.rb +4 -5
  28. data/lib/cassandra/cluster/schema/partitioners.rb +1 -1
  29. data/lib/cassandra/cluster/schema/partitioners/murmur3.rb +1 -1
  30. data/lib/cassandra/cluster/schema/partitioners/ordered.rb +1 -1
  31. data/lib/cassandra/cluster/schema/partitioners/random.rb +1 -1
  32. data/lib/cassandra/cluster/schema/replication_strategies.rb +1 -1
  33. data/lib/cassandra/cluster/schema/replication_strategies/network_topology.rb +1 -1
  34. data/lib/cassandra/cluster/schema/replication_strategies/none.rb +1 -1
  35. data/lib/cassandra/cluster/schema/replication_strategies/simple.rb +1 -1
  36. data/lib/cassandra/column.rb +1 -1
  37. data/lib/cassandra/column_container.rb +2 -2
  38. data/lib/cassandra/compression.rb +1 -1
  39. data/lib/cassandra/compression/compressors/lz4.rb +1 -1
  40. data/lib/cassandra/compression/compressors/snappy.rb +1 -1
  41. data/lib/cassandra/custom_data.rb +1 -1
  42. data/lib/cassandra/driver.rb +1 -1
  43. data/lib/cassandra/duration.rb +100 -0
  44. data/lib/cassandra/errors.rb +1 -1
  45. data/lib/cassandra/execution/info.rb +1 -1
  46. data/lib/cassandra/execution/options.rb +1 -1
  47. data/lib/cassandra/execution/profile.rb +5 -2
  48. data/lib/cassandra/execution/profile_manager.rb +1 -1
  49. data/lib/cassandra/execution/trace.rb +1 -1
  50. data/lib/cassandra/executors.rb +1 -1
  51. data/lib/cassandra/function.rb +1 -1
  52. data/lib/cassandra/function_collection.rb +1 -1
  53. data/lib/cassandra/future.rb +9 -3
  54. data/lib/cassandra/host.rb +1 -1
  55. data/lib/cassandra/index.rb +1 -1
  56. data/lib/cassandra/keyspace.rb +1 -1
  57. data/lib/cassandra/listener.rb +1 -1
  58. data/lib/cassandra/load_balancing.rb +1 -1
  59. data/lib/cassandra/load_balancing/policies.rb +1 -1
  60. data/lib/cassandra/load_balancing/policies/dc_aware_round_robin.rb +1 -1
  61. data/lib/cassandra/load_balancing/policies/round_robin.rb +1 -1
  62. data/lib/cassandra/load_balancing/policies/token_aware.rb +1 -1
  63. data/lib/cassandra/load_balancing/policies/white_list.rb +1 -1
  64. data/lib/cassandra/materialized_view.rb +1 -1
  65. data/lib/cassandra/null_logger.rb +1 -1
  66. data/lib/cassandra/protocol.rb +1 -1
  67. data/lib/cassandra/protocol/coder.rb +1 -1
  68. data/lib/cassandra/protocol/cql_byte_buffer.rb +63 -15
  69. data/lib/cassandra/protocol/cql_protocol_handler.rb +58 -10
  70. data/lib/cassandra/protocol/request.rb +1 -1
  71. data/lib/cassandra/protocol/requests/auth_response_request.rb +1 -1
  72. data/lib/cassandra/protocol/requests/batch_request.rb +1 -1
  73. data/lib/cassandra/protocol/requests/credentials_request.rb +1 -1
  74. data/lib/cassandra/protocol/requests/execute_request.rb +1 -1
  75. data/lib/cassandra/protocol/requests/options_request.rb +1 -1
  76. data/lib/cassandra/protocol/requests/prepare_request.rb +1 -1
  77. data/lib/cassandra/protocol/requests/query_request.rb +1 -1
  78. data/lib/cassandra/protocol/requests/register_request.rb +1 -1
  79. data/lib/cassandra/protocol/requests/startup_request.rb +1 -1
  80. data/lib/cassandra/protocol/requests/void_query_request.rb +1 -1
  81. data/lib/cassandra/protocol/response.rb +1 -1
  82. data/lib/cassandra/protocol/responses/already_exists_error_response.rb +1 -1
  83. data/lib/cassandra/protocol/responses/auth_challenge_response.rb +1 -1
  84. data/lib/cassandra/protocol/responses/auth_success_response.rb +1 -1
  85. data/lib/cassandra/protocol/responses/authenticate_response.rb +1 -1
  86. data/lib/cassandra/protocol/responses/error_response.rb +1 -1
  87. data/lib/cassandra/protocol/responses/event_response.rb +1 -1
  88. data/lib/cassandra/protocol/responses/function_failure_error_response.rb +1 -1
  89. data/lib/cassandra/protocol/responses/prepared_result_response.rb +1 -1
  90. data/lib/cassandra/protocol/responses/raw_rows_result_response.rb +1 -1
  91. data/lib/cassandra/protocol/responses/read_failure_error_response.rb +1 -1
  92. data/lib/cassandra/protocol/responses/read_timeout_error_response.rb +1 -1
  93. data/lib/cassandra/protocol/responses/ready_response.rb +1 -1
  94. data/lib/cassandra/protocol/responses/result_response.rb +1 -1
  95. data/lib/cassandra/protocol/responses/rows_result_response.rb +1 -1
  96. data/lib/cassandra/protocol/responses/schema_change_event_response.rb +1 -1
  97. data/lib/cassandra/protocol/responses/schema_change_result_response.rb +1 -1
  98. data/lib/cassandra/protocol/responses/set_keyspace_result_response.rb +1 -1
  99. data/lib/cassandra/protocol/responses/status_change_event_response.rb +1 -1
  100. data/lib/cassandra/protocol/responses/supported_response.rb +1 -1
  101. data/lib/cassandra/protocol/responses/topology_change_event_response.rb +1 -1
  102. data/lib/cassandra/protocol/responses/unavailable_error_response.rb +1 -1
  103. data/lib/cassandra/protocol/responses/unprepared_error_response.rb +1 -1
  104. data/lib/cassandra/protocol/responses/void_result_response.rb +1 -1
  105. data/lib/cassandra/protocol/responses/write_failure_error_response.rb +1 -1
  106. data/lib/cassandra/protocol/responses/write_timeout_error_response.rb +1 -1
  107. data/lib/cassandra/protocol/v1.rb +1 -1
  108. data/lib/cassandra/protocol/v3.rb +1 -1
  109. data/lib/cassandra/protocol/v4.rb +4 -1
  110. data/lib/cassandra/reconnection.rb +1 -1
  111. data/lib/cassandra/reconnection/policies.rb +1 -1
  112. data/lib/cassandra/reconnection/policies/constant.rb +1 -1
  113. data/lib/cassandra/reconnection/policies/exponential.rb +1 -1
  114. data/lib/cassandra/result.rb +1 -1
  115. data/lib/cassandra/retry.rb +1 -1
  116. data/lib/cassandra/retry/policies.rb +1 -1
  117. data/lib/cassandra/retry/policies/default.rb +1 -1
  118. data/lib/cassandra/retry/policies/downgrading_consistency.rb +1 -1
  119. data/lib/cassandra/retry/policies/fallthrough.rb +1 -1
  120. data/lib/cassandra/session.rb +8 -4
  121. data/lib/cassandra/statement.rb +1 -1
  122. data/lib/cassandra/statements.rb +1 -1
  123. data/lib/cassandra/statements/batch.rb +1 -1
  124. data/lib/cassandra/statements/bound.rb +1 -1
  125. data/lib/cassandra/statements/prepared.rb +1 -1
  126. data/lib/cassandra/statements/simple.rb +1 -1
  127. data/lib/cassandra/statements/void.rb +1 -1
  128. data/lib/cassandra/table.rb +2 -2
  129. data/lib/cassandra/time.rb +1 -1
  130. data/lib/cassandra/time_uuid.rb +1 -1
  131. data/lib/cassandra/timestamp_generator.rb +1 -1
  132. data/lib/cassandra/timestamp_generator/simple.rb +1 -1
  133. data/lib/cassandra/timestamp_generator/ticking_on_duplicate.rb +1 -1
  134. data/lib/cassandra/trigger.rb +1 -1
  135. data/lib/cassandra/tuple.rb +1 -1
  136. data/lib/cassandra/types.rb +73 -2
  137. data/lib/cassandra/udt.rb +1 -1
  138. data/lib/cassandra/util.rb +21 -1
  139. data/lib/cassandra/uuid.rb +1 -1
  140. data/lib/cassandra/uuid/generator.rb +1 -1
  141. data/lib/cassandra/version.rb +2 -2
  142. data/lib/datastax/cassandra.rb +1 -1
  143. metadata +20 -20
checksums.yaml CHANGED
@@ -1,15 +1,7 @@
1
1
  ---
2
- !binary "U0hBMQ==":
3
- metadata.gz: !binary |-
4
- MDY1NzlkZTRjOTYwNzU1ODA4NjQ5OGM4M2IwMmMzODlhMzAyMDIzOQ==
5
- data.tar.gz: !binary |-
6
- ZWMzZjcxOTQyN2Y3NjdlMjg5ZDJhYmM1NzVkOWRlMzJmOTA0MTcwZQ==
2
+ SHA256:
3
+ metadata.gz: 5e84c6e322c00130b3af80cf4ad92931080af26db94bf2332d459bc589f13cb6
4
+ data.tar.gz: de5d1ac78549db9ad5a35516967c8b9439abc7b885ad6691e89b8f8dcc8d2a14
7
5
  SHA512:
8
- metadata.gz: !binary |-
9
- ODNiOWE0NTg5YTVjZGUzZDI1Y2EyZTkxNDBhMGUyM2M2YTQ4MzliNWM1MDM0
10
- YjMxMjU2YjRlMjA5ODU3MjRjZDY0ZDgyZWI5YjE5ZTA2OTQ0ZmQ3MjEyMmY0
11
- NDc3ZjJiMjZlMGI5MTk2N2I1NWJiNDA3MWIxODRlZGU1MjdlNWE=
12
- data.tar.gz: !binary |-
13
- NWYzMDU0NmQ3OTU4NDJiZTI4M2Y1ODNhMTQyMmU2NjUxNTU0YjA4M2Q1ZTZl
14
- ZDNlYjg5NWY3NDBiMDAzMzE4ZWVlMTg0YTUyNzE0NDNlYzUxNGZiNDM1MTQ1
15
- NGQ0ZmZjMGIwZGEyZjk4OGZmNmE4ZTNkNjFiOWIyYTMyMDE1NzU=
6
+ metadata.gz: c69be637dc24ed91ea3f3459e78ebad88eb62ae017d3f463eace6141e95dc7932fb923345a8a1a8f08ffcd80f757bdfca48b785ecaf4790cefae371c114147ef
7
+ data.tar.gz: e6bbf233a0343f26f4abb078efe031bf08d6a12a8d383f618229728deff65dbe87d7687516a2a35bd6cc67108224fa8de9897ba9bb5c44ccc280aa1ea98c6597
data/README.md CHANGED
@@ -1,3 +1,5 @@
1
+ :warning: **The Ruby driver is in maintenance mode. We are still accepting pull-requests and we will occasionally release critical bug fixes, but no ongoing active development is being done currently.**
2
+
1
3
  # Datastax Ruby Driver for Apache Cassandra
2
4
 
3
5
  *If you're reading this on GitHub, please note that this is the readme for the development version and that some
@@ -9,7 +11,7 @@ version [here](http://docs.datastax.com/en/developer/ruby-driver/latest).*
9
11
  A Ruby client driver for Apache Cassandra. This driver works exclusively with
10
12
  the Cassandra Query Language version 3 (CQL3) and Cassandra's native protocol.
11
13
 
12
- Use the [Ruby DSE driver](https://github.com/datastax/ruby-dse-driver.git) for
14
+ Use the [Ruby DSE driver](https://docs.datastax.com/en/developer/ruby-driver-dse/2.1/) for
13
15
  better compatibility and support for DataStax Enterprise.
14
16
 
15
17
  - Code: https://github.com/datastax/ruby-driver
@@ -21,14 +23,14 @@ better compatibility and support for DataStax Enterprise.
21
23
 
22
24
  This driver is based on [the cql-rb gem](https://github.com/iconara/cql-rb) by [Theo Hultberg](https://github.com/iconara) and we added support for:
23
25
 
24
- * [Asynchronous execution](http://docs.datastax.com/en/developer/ruby-driver/3.0/features/asynchronous_io/)
25
- * One-off, [prepared](http://docs.datastax.com/en/developer/ruby-driver/3.0/features/basics/prepared_statements/) and [batch statements](http://docs.datastax.com/en/developer/ruby-driver/3.0/features/basics/batch_statements/)
26
- * Automatic peer discovery and cluster metadata with [support for change notifications](http://docs.datastax.com/en/developer/ruby-driver/3.0/features/state_listeners/)
27
- * Various [load-balancing](http://docs.datastax.com/en/developer/ruby-driver/3.0/features/load_balancing/), [retry](http://docs.datastax.com/en/developer/ruby-driver/3.0/features/retry_policies/) and [reconnection](http://docs.datastax.com/en/developer/ruby-driver/3.0/features/reconnection/) policies with [ability to write your own](http://docs.datastax.com/en/developer/ruby-driver/3.0/features/load_balancing/implementing_a_policy/)
28
- * [SSL encryption](http://docs.datastax.com/en/developer/ruby-driver/3.0/features/security/ssl_encryption/)
29
- * [Flexible and robust error handling](http://docs.datastax.com/en/developer/ruby-driver/3.0/features/error_handling/)
30
- * [Per-request execution information and tracing](http://docs.datastax.com/en/developer/ruby-driver/3.0/features/debugging/)
31
- * [Configurable address resolution](http://docs.datastax.com/en/developer/ruby-driver/3.0/features/address_resolution/)
26
+ * [Asynchronous execution](http://docs.datastax.com/en/developer/ruby-driver/3.2/features/asynchronous_io/)
27
+ * One-off, [prepared](http://docs.datastax.com/en/developer/ruby-driver/3.2/features/basics/prepared_statements/) and [batch statements](http://docs.datastax.com/en/developer/ruby-driver/3.2/features/basics/batch_statements/)
28
+ * Automatic peer discovery and cluster metadata with [support for change notifications](http://docs.datastax.com/en/developer/ruby-driver/3.2/features/state_listeners/)
29
+ * Various [load-balancing](http://docs.datastax.com/en/developer/ruby-driver/3.2/features/load_balancing/), [retry](http://docs.datastax.com/en/developer/ruby-driver/3.2/features/retry_policies/) and [reconnection](http://docs.datastax.com/en/developer/ruby-driver/3.2/features/reconnection/) policies with [ability to write your own](http://docs.datastax.com/en/developer/ruby-driver/3.2/features/load_balancing/implementing_a_policy/)
30
+ * [SSL encryption](http://docs.datastax.com/en/developer/ruby-driver/3.2/features/security/ssl_encryption/)
31
+ * [Flexible and robust error handling](http://docs.datastax.com/en/developer/ruby-driver/3.2/features/error_handling/)
32
+ * [Per-request execution information and tracing](http://docs.datastax.com/en/developer/ruby-driver/3.2/features/debugging/)
33
+ * [Configurable address resolution](http://docs.datastax.com/en/developer/ruby-driver/3.2/features/address_resolution/)
32
34
 
33
35
  [Check out the slides from Ruby Driver Explained](https://speakerdeck.com/avalanche123/ruby-driver-explained) for a detailed overview of the Ruby Driver architecture.
34
36
 
@@ -37,16 +39,13 @@ This driver is based on [the cql-rb gem](https://github.com/iconara/cql-rb) by [
37
39
  This driver works exclusively with the Cassandra Query Language v3 (CQL3) and Cassandra's native protocol. The current version works with:
38
40
 
39
41
  * Apache Cassandra versions 2.1, 2.2, and 3.x
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.
42
+ * DataStax Enterprise 4.8 and above. However, the [Ruby DSE driver](https://docs.datastax.com/en/developer/ruby-driver-dse/2.1/) provides more features and is recommended for use with DataStax Enterprise.
41
43
  * Ruby (MRI) 2.2, 2.3, 2.4
42
- * JRuby 1.7, 9k
43
-
44
- __Note__: Rubinius is not supported. MRI 2.0, and 2.1 are not officially supported, but they should work. MRI 1.9.3 is deprecated
45
- and may break in any release after 3.0.
44
+ * JRuby 9k
46
45
 
47
- ## Feedback Requested
46
+ __Note__: Rubinius is not supported.
48
47
 
49
- *Help us focus our efforts!* [Provide your input](http://goo.gl/forms/pCs8PTpHLf) on the Ruby Driver Platform and Runtime Survey (we kept it short).
48
+ __Note__: Big-endian systems are not supported.
50
49
 
51
50
  ## Quick start
52
51
 
@@ -75,9 +74,9 @@ __Note__: The host you specify is just a seed node, the driver will automaticall
75
74
 
76
75
  Read more:
77
76
 
78
- * [`Cassandra.cluster` options](http://docs.datastax.com/en/developer/ruby-driver/3.0/api/cassandra/#cluster-class_method)
79
- * [`Session#execute_async` options](http://docs.datastax.com/en/developer/ruby-driver/3.0/api/cassandra/session/#execute_async-instance_method)
80
- * [Usage documentation](http://docs.datastax.com/en/developer/ruby-driver/3.0/features)
77
+ * [`Cassandra.cluster` options](http://docs.datastax.com/en/developer/ruby-driver/3.2/api/cassandra/#cluster-class_method)
78
+ * [`Session#execute_async` options](http://docs.datastax.com/en/developer/ruby-driver/3.2/api/cassandra/session/#execute_async-instance_method)
79
+ * [Usage documentation](http://docs.datastax.com/en/developer/ruby-driver/3.2/features)
81
80
 
82
81
  ## Installation
83
82
 
@@ -93,23 +92,24 @@ Install via Gemfile
93
92
  gem 'cassandra-driver'
94
93
  ```
95
94
 
96
- __Note__: if you want to use compression you should also install [snappy](http://rubygems.org/gems/snappy) or [lz4-ruby](http://rubygems.org/gems/lz4-ruby). [Read more about compression.](http://docs.datastax.com/en/developer/ruby-driver/3.0/features/#compression)
95
+ __Note__: if you want to use compression you should also install [snappy](http://rubygems.org/gems/snappy) or [lz4-ruby](http://rubygems.org/gems/lz4-ruby). [Read more about compression.](http://docs.datastax.com/en/developer/ruby-driver/3.2/features/#compression)
97
96
 
98
97
 
99
98
  ## Upgrading from cql-rb
100
99
 
101
100
  Some of the new features added to the driver have unfortunately led to changes in the original cql-rb API.
102
101
  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.0/examples/cql-rb-wrapper.rb)
102
+ interface parity with cql-rb](https://github.com/datastax/ruby-driver/blob/v3.2.4/examples/cql-rb-wrapper.rb)
104
103
  to assist you with gradual upgrade.
105
104
 
106
- If you are upgrading to DataStax Enterprise, use the [Ruby DSE driver](https://github.com/datastax/ruby-dse-driver.git)
107
- for more features and better compatibility.
105
+ If you are upgrading to DataStax Enterprise, use the [Ruby DSE driver](https://docs.datastax.com/en/developer/ruby-driver-dse/2.1/) for more features and better compatibility.
108
106
 
109
107
  ## 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.
108
+ This minor release adds support for MRI 2.4.x and also contains a few miscellaneous defect fixes. It also removes
109
+ support for Ruby versions prior to 2.2. This was already officially the case, but the minimum version limit is
110
+ now enforced.
111
111
 
112
- See the [changelog](https://github.com/datastax/ruby-driver/blob/v3.2.0/CHANGELOG.md) for more information on all
112
+ See the [changelog](https://github.com/datastax/ruby-driver/blob/v3.2.4/CHANGELOG.md) for more information on all
113
113
  changes in this version and past versions.
114
114
 
115
115
  ## What's new in v3.1
@@ -177,7 +177,7 @@ examples in the `features/` directory.
177
177
  ## Running tests
178
178
 
179
179
  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.0/.travis.yml).
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.4/.travis.yml).
181
181
 
182
182
  * Check out the driver codebase and install test dependencies:
183
183
 
@@ -201,7 +201,7 @@ CASSANDRA_VERSION=2.1.12 bundle exec rake test # run both as well as integration
201
201
  ## Changelog & versioning
202
202
 
203
203
  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.0/CHANGELOG.md). Version
204
+ [changelog](https://github.com/datastax/ruby-driver/blob/v3.2.4/CHANGELOG.md). Version
205
205
  numbering follows the [semantic versioning](http://semver.org/) scheme.
206
206
 
207
207
  Private and experimental APIs, defined as whatever is not in the
@@ -224,7 +224,7 @@ the release.
224
224
  * Because the driver reactor is using `IO.select`, the maximum number of tcp connections allowed is 1024.
225
225
  * Because the driver uses `IO#write_nonblock`, Windows is not supported.
226
226
 
227
- Please [refer to the usage documentation for more information on common pitfalls](http://docs.datastax.com/en/developer/ruby-driver/3.0/features/)
227
+ Please [refer to the usage documentation for more information on common pitfalls](http://docs.datastax.com/en/developer/ruby-driver/3.2/features/)
228
228
 
229
229
  ## Contributing
230
230
 
@@ -242,7 +242,7 @@ Driver for Apache Cassandra will continue on this project, while
242
242
 
243
243
  ## Copyright
244
244
 
245
- Copyright 2013-2017 DataStax, Inc.
245
+ © DataStax, Inc.
246
246
 
247
247
  Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file
248
248
  except in compliance with the License. You may obtain a copy of the License at
@@ -254,4 +254,4 @@ License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF
254
254
  either express or implied. See the License for the specific language governing permissions
255
255
  and limitations under the License.
256
256
 
257
- [1]: http://docs.datastax.com/en/developer/ruby-driver/3.0/api
257
+ [1]: http://docs.datastax.com/en/developer/ruby-driver/3.2/api
@@ -1,4 +1,4 @@
1
- // Copyright 2013-2017 DataStax, Inc.
1
+ // Copyright DataStax, Inc.
2
2
  //
3
3
  // Licensed under the Apache License, Version 2.0 (the "License");
4
4
  // you may not use this file except in compliance with the License.
@@ -1,7 +1,7 @@
1
1
  # encoding: utf-8
2
2
 
3
3
  #--
4
- # Copyright 2013-2017 DataStax, Inc.
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.
@@ -777,6 +777,8 @@ require 'cassandra/udt'
777
777
  require 'cassandra/time'
778
778
 
779
779
  require 'cassandra/types'
780
+ require 'cassandra/custom_data'
781
+ require 'cassandra/duration'
780
782
 
781
783
  require 'cassandra/errors'
782
784
  require 'cassandra/compression'
@@ -788,7 +790,6 @@ require 'cassandra/null_logger'
788
790
  require 'cassandra/executors'
789
791
  require 'cassandra/future'
790
792
  require 'cassandra/cluster'
791
- require 'cassandra/custom_data'
792
793
  require 'cassandra/driver'
793
794
  require 'cassandra/host'
794
795
  require 'cassandra/session'
@@ -1,7 +1,7 @@
1
1
  # encoding: utf-8
2
2
 
3
3
  #--
4
- # Copyright 2013-2017 DataStax, Inc.
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.
@@ -1,7 +1,7 @@
1
1
  # encoding: utf-8
2
2
 
3
3
  #--
4
- # Copyright 2013-2017 DataStax, Inc.
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.
@@ -1,7 +1,7 @@
1
1
  # encoding: utf-8
2
2
 
3
3
  #--
4
- # Copyright 2013-2017 DataStax, Inc.
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.
@@ -1,7 +1,7 @@
1
1
  # encoding: utf-8
2
2
 
3
3
  #--
4
- # Copyright 2013-2017 DataStax, Inc.
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.
@@ -1,7 +1,7 @@
1
1
  # encoding: utf-8
2
2
 
3
3
  #--
4
- # Copyright 2013-2017 DataStax, Inc.
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.
@@ -1,7 +1,7 @@
1
1
  # encoding: utf-8
2
2
 
3
3
  #--
4
- # Copyright 2013-2017 DataStax, Inc.
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.
@@ -1,7 +1,7 @@
1
1
  # encoding: utf-8
2
2
 
3
3
  #--
4
- # Copyright 2013-2017 DataStax, Inc.
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.
@@ -1,5 +1,5 @@
1
1
  #--
2
- # Copyright 2013-2017 DataStax, Inc.
2
+ # Copyright DataStax, Inc.
3
3
  #
4
4
  # Licensed under the Apache License, Version 2.0 (the "License");
5
5
  # you may not use this file except in compliance with the License.
@@ -1,7 +1,7 @@
1
1
  # encoding: utf-8
2
2
 
3
3
  #--
4
- # Copyright 2013-2017 DataStax, Inc.
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.
@@ -1,7 +1,7 @@
1
1
  # encoding: utf-8
2
2
 
3
3
  #--
4
- # Copyright 2013-2017 DataStax, Inc.
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.
@@ -1,7 +1,7 @@
1
1
  # encoding: utf-8
2
2
 
3
3
  #--
4
- # Copyright 2013-2017 DataStax, Inc.
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.
@@ -1,7 +1,7 @@
1
1
  # encoding: utf-8
2
2
 
3
3
  #--
4
- # Copyright 2013-2017 DataStax, Inc.
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.
@@ -1,7 +1,7 @@
1
1
  # encoding: utf-8
2
2
 
3
3
  #--
4
- # Copyright 2013-2017 DataStax, Inc.
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.
@@ -1,7 +1,7 @@
1
1
  # encoding: utf-8
2
2
 
3
3
  #--
4
- # Copyright 2013-2017 DataStax, Inc.
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.
@@ -1,7 +1,7 @@
1
1
  # encoding: utf-8
2
2
 
3
3
  #--
4
- # Copyright 2013-2017 DataStax, Inc.
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.
@@ -1,7 +1,7 @@
1
1
  # encoding: utf-8
2
2
 
3
3
  #--
4
- # Copyright 2013-2017 DataStax, Inc.
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.
@@ -1,7 +1,7 @@
1
1
  # encoding: utf-8
2
2
 
3
3
  #--
4
- # Copyright 2013-2017 DataStax, Inc.
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.
@@ -1,7 +1,7 @@
1
1
  # encoding: utf-8
2
2
 
3
3
  #--
4
- # Copyright 2013-2017 DataStax, Inc.
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.
@@ -1,7 +1,7 @@
1
1
  # encoding: utf-8
2
2
 
3
3
  #--
4
- # Copyright 2013-2017 DataStax, Inc.
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 ip [Host] host that is found to be up.
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 ip [Host] host that is found to be down.
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 ip [Host] host that is lost.
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 ip [Host] host that is found.
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 2013-2017 DataStax, Inc.
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.
@@ -1,7 +1,7 @@
1
1
  # encoding: utf-8
2
2
 
3
3
  #--
4
- # Copyright 2013-2017 DataStax, Inc.
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.
@@ -40,8 +40,6 @@ module Cassandra
40
40
  private
41
41
 
42
42
  def lookup_type(node, types)
43
- return lookup_type(node.children.first, types) if node.name == 'frozen'
44
-
45
43
  case node.name
46
44
  when 'text' then Cassandra::Types.text
47
45
  when 'blob' then Cassandra::Types.blob
@@ -62,6 +60,7 @@ module Cassandra
62
60
  when 'smallint' then Cassandra::Types.smallint
63
61
  when 'time' then Cassandra::Types.time
64
62
  when 'tinyint' then Cassandra::Types.tinyint
63
+ when 'duration' then Cassandra::Types.duration
65
64
  when 'map' then
66
65
  Cassandra::Types.map(*node.children.map { |t| lookup_type(t, types)})
67
66
  when 'set' then
@@ -70,6 +69,8 @@ module Cassandra
70
69
  Cassandra::Types.list(lookup_type(node.children.first, types))
71
70
  when 'tuple' then
72
71
  Cassandra::Types.tuple(*node.children.map { |t| lookup_type(t, types)})
72
+ when 'frozen' then
73
+ Cassandra::Types.frozen(lookup_type(node.children.first, types))
73
74
  when 'empty' then
74
75
  Cassandra::Types.custom('org.apache.cassandra.db.marshal.EmptyType')
75
76
  when /\A'/ then