Skip to content

Commit 6432776

Browse files
authored
Merge pull request #111 from datastax/v1.3.1
v1.3.1 - Merge duration and documentation fixes
2 parents a6d539e + d7c4541 commit 6432776

File tree

103 files changed

+1921
-2347
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

103 files changed

+1921
-2347
lines changed

behat.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ default:
77
88
contexts:
99
- FeatureContext:
10-
cassandra_version: 3.0.8
10+
cassandra_version: "3.10"
1111

1212
cassandra-version-2.2:
1313
formatters:

doxygen.rb

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,4 +25,8 @@
2525
text.gsub!(/(\/\*\*[\s\S]*?@return\s+([^\s]*)[\s\S]*?\*\/[\s\S]*?)((public|protected|private)(\s+static)?)?\s+function\s+([\S]*?)\s*?\(/, '\1 \3 \2 function \6(')
2626
text.gsub!(/\@return/, '@retval')
2727

28+
text.gsub!(/function_/, 'function')
29+
text.gsub!(/Function_/, 'Function')
30+
text.gsub!(/Float_/, 'Float')
31+
2832
puts text

ext/config.m4

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -270,8 +270,8 @@ if test "$PHP_CASSANDRA" != "no"; then
270270
AC_MSG_CHECKING([for supported DataStax C/C++ driver version])
271271
PHP_CASSANDRA_FOUND_CASSANDRA_VERSION=`$AWK '/CASS_VERSION_MAJOR/ {printf $3"."} /CASS_VERSION_MINOR/ {printf $3"."} /CASS_VERSION_PATCH/ {printf $3}' $CPP_DRIVER_DIR/include/cassandra.h`
272272
PHP_CASSANDRA_FOUND_CASSANDRA_VERSION_NUMBER=`echo "${PHP_CASSANDRA_FOUND_CASSANDRA_VERSION}" | $AWK 'BEGIN { FS = "."; } { printf "%d", ([$]1 * 100 + [$]2) * 100 + [$]3;}'`
273-
if test "$PHP_CASSANDRA_FOUND_CASSANDRA_VERSION_NUMBER" -lt "20600"; then
274-
AC_MSG_ERROR([not supported. Driver version 2.6.0+ required (found $PHP_CASSANDRA_FOUND_CASSANDRA_VERSION)])
273+
if test "$PHP_CASSANDRA_FOUND_CASSANDRA_VERSION_NUMBER" -lt "20700"; then
274+
AC_MSG_ERROR([not supported. Driver version 2.7.0+ required (found $PHP_CASSANDRA_FOUND_CASSANDRA_VERSION)])
275275
else
276276
AC_MSG_RESULT([supported ($PHP_CASSANDRA_FOUND_CASSANDRA_VERSION)])
277277
fi

ext/config.w32

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ ARG_ENABLE("cassandra", "Enable DataStax PHP Cassandra extension", "no");
44

55
// Establish the minimum Cassandra C/C++ driver and PHP version
66
var driver_minimum_major = 2;
7-
var driver_minimum_minor = 6;
7+
var driver_minimum_minor = 7;
88
var driver_minimum_patch = 0;
99
var driver_minimum_version = driver_minimum_major + "." + driver_minimum_minor + "." + driver_minimum_patch;
1010
var php_minimum_major = 5;

ext/doc/Cassandra.php

Lines changed: 15 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -29,31 +29,31 @@ final class Cassandra {
2929
* has been written on the Coordinator. Requests with this consistency level
3030
* are not guranteed to make it to Replica nodes.
3131
*
32-
* @see ExecutionOptions::__construct()
32+
* @see Session::execute()
3333
*/
3434
const CONSISTENCY_ANY = 0;
3535

3636
/**
3737
* Consistency level ONE guarantees that data has been written to at least
3838
* one Replica node.
3939
*
40-
* @see ExecutionOptions::__construct()
40+
* @see Session::execute()
4141
*/
4242
const CONSISTENCY_ONE = 1;
4343

4444
/**
4545
* Consistency level TWO guarantees that data has been written to at least
4646
* two Replica nodes.
4747
*
48-
* @see ExecutionOptions::__construct()
48+
* @see Session::execute()
4949
*/
5050
const CONSISTENCY_TWO = 2;
5151

5252
/**
5353
* Consistency level THREE guarantees that data has been written to at least
5454
* three Replica nodes.
5555
*
56-
* @see ExecutionOptions::__construct()
56+
* @see Session::execute()
5757
*/
5858
const CONSISTENCY_THREE = 3;
5959

@@ -65,23 +65,23 @@ final class Cassandra {
6565
* ceiling function and `RF` is the replication factor used. For example,
6666
* for a replication factor of `5`, the majority is `ceil(5 / 2 + 1) = 3`.
6767
*
68-
* @see ExecutionOptions::__construct()
68+
* @see Session::execute()
6969
*/
7070
const CONSISTENCY_QUORUM = 4;
7171

7272
/**
7373
* Consistency level ALL guarantees that data has been written to all
7474
* Replica nodes.
7575
*
76-
* @see ExecutionOptions::__construct()
76+
* @see Session::execute()
7777
*/
7878
const CONSISTENCY_ALL = 5;
7979

8080
/**
8181
* Same as `CONSISTENCY_QUORUM`, but confined to the local data center. This
8282
* consistency level works only with `NetworkTopologyStrategy` replication.
8383
*
84-
* @see ExecutionOptions::__construct()
84+
* @see Session::execute()
8585
*/
8686
const CONSISTENCY_LOCAL_QUORUM = 6;
8787

@@ -90,35 +90,36 @@ final class Cassandra {
9090
* least a majority Replica nodes in all datacenters. This consistency level
9191
* works only with `NetworkTopologyStrategy` replication.
9292
*
93-
* @see ExecutionOptions::__construct()
93+
* @see Session::execute()
9494
*/
9595
const CONSISTENCY_EACH_QUORUM = 7;
9696

9797
/**
9898
* This is a serial consistency level, it is used in conditional updates,
9999
* e.g. (`CREATE|INSERT ... IF NOT EXISTS`), and should be specified as the
100-
* `serial_consistency` option of the ExecutionOptions instance.
100+
* `serial_consistency` execution option when invoking `session.execute`
101+
* or `session.execute_async`.
101102
*
102103
* Consistency level SERIAL, when set, ensures that a Paxos commit fails if
103104
* any of the replicas is down.
104105
*
105-
* @see ExecutionOptions::__construct()
106+
* @see Session::execute()
106107
*/
107108
const CONSISTENCY_SERIAL = 8;
108109

109110
/**
110111
* Same as `CONSISTENCY_SERIAL`, but confined to the local data center. This
111112
* consistency level works only with `NetworkTopologyStrategy` replication.
112113
*
113-
* @see ExecutionOptions::__construct()
114+
* @see Session::execute()
114115
*/
115116
const CONSISTENCY_LOCAL_SERIAL = 9;
116117

117118
/**
118119
* Same as `CONSISTENCY_ONE`, but confined to the local data center. This
119120
* consistency level works only with `NetworkTopologyStrategy` replication.
120121
*
121-
* @see ExecutionOptions::__construct()
122+
* @see Session::execute()
122123
*/
123124
const CONSISTENCY_LOCAL_ONE = 10;
124125

@@ -378,12 +379,12 @@ final class Cassandra {
378379
/**
379380
* The current version of the extension.
380381
*/
381-
const VERSION = '1.3.0-devel';
382+
const VERSION = '1.3.0';
382383

383384
/**
384385
* The version of the cpp-driver the extension is compiled against.
385386
*/
386-
const CPP_DRIVER_VERSION = '2.6.0-dev';
387+
const CPP_DRIVER_VERSION = '2.7.0';
387388

388389
/**
389390
* Creates a new cluster builder for constructing a Cluster object.

ext/doc/Cassandra/DefaultAggregate.php

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -24,63 +24,63 @@
2424
final class DefaultAggregate implements Aggregate {
2525

2626
/**
27-
* {@inheritDoc}
27+
* Returns the full name of the aggregate
2828
*
2929
* @return string Full name of the aggregate including name and types
3030
*/
3131
public function name() { }
3232

3333
/**
34-
* {@inheritDoc}
34+
* Returns the simple name of the aggregate
3535
*
3636
* @return string Simple name of the aggregate
3737
*/
3838
public function simpleName() { }
3939

4040
/**
41-
* {@inheritDoc}
41+
* Returns the argument types of the aggregate
4242
*
4343
* @return array Argument types of the aggregate
4444
*/
4545
public function argumentTypes() { }
4646

4747
/**
48-
* {@inheritDoc}
48+
* Returns the state function of the aggregate
4949
*
5050
* @return Function State public function of the aggregate
5151
*/
5252
public function stateFunction() { }
5353

5454
/**
55-
* {@inheritDoc}
55+
* Returns the final function of the aggregate
5656
*
5757
* @return Function Final public function of the aggregate
5858
*/
5959
public function finalFunction() { }
6060

6161
/**
62-
* {@inheritDoc}
62+
* Returns the initial condition of the aggregate
6363
*
6464
* @return Value Initial condition of the aggregate
6565
*/
6666
public function initialCondition() { }
6767

6868
/**
69-
* {@inheritDoc}
69+
* Returns the state type of the aggregate
7070
*
7171
* @return Type State type of the aggregate
7272
*/
7373
public function stateType() { }
7474

7575
/**
76-
* {@inheritDoc}
76+
* Returns the return type of the aggregate
7777
*
7878
* @return Type Return type of the aggregate
7979
*/
8080
public function returnType() { }
8181

8282
/**
83-
* {@inheritDoc}
83+
* Returns the signature of the aggregate
8484
*
8585
* @return string Signature of the aggregate (same as name())
8686
*/

ext/doc/Cassandra/DefaultCluster.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@
2626
final class DefaultCluster implements Cluster {
2727

2828
/**
29-
* {@inheritDoc}
29+
* Creates a new Session instance.
3030
*
3131
* @param string $keyspace Optional keyspace name
3232
* @param int $timeout Optional timeout
@@ -36,7 +36,7 @@ final class DefaultCluster implements Cluster {
3636
public function connect($keyspace, $timeout) { }
3737

3838
/**
39-
* {@inheritDoc}
39+
* Creates a new Session instance.
4040
*
4141
* @param string $keyspace Optional keyspace name
4242
*

ext/doc/Cassandra/DefaultColumn.php

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -24,49 +24,49 @@
2424
final class DefaultColumn implements Column {
2525

2626
/**
27-
* {@inheritDoc}
27+
* Returns the name of the column.
2828
*
2929
* @return string Name of the column or null
3030
*/
3131
public function name() { }
3232

3333
/**
34-
* {@inheritDoc}
34+
* Returns the type of the column.
3535
*
3636
* @return Type Type of the column
3737
*/
3838
public function type() { }
3939

4040
/**
41-
* {@inheritDoc}
41+
* Returns whether the column is in descending or ascending order.
4242
*
4343
* @return bool Whether the column is stored in descending order.
4444
*/
4545
public function isReversed() { }
4646

4747
/**
48-
* {@inheritDoc}
48+
* Returns true for static columns.
4949
*
5050
* @return bool Whether the column is static
5151
*/
5252
public function isStatic() { }
5353

5454
/**
55-
* {@inheritDoc}
55+
* Returns true for frozen columns.
5656
*
5757
* @return bool Whether the column is frozen
5858
*/
5959
public function isFrozen() { }
6060

6161
/**
62-
* {@inheritDoc}
62+
* Returns name of the index if defined.
6363
*
6464
* @return string Name of the index if defined or null
6565
*/
6666
public function indexName() { }
6767

6868
/**
69-
* {@inheritDoc}
69+
* Returns index options if present.
7070
*
7171
* @return string Index options if present or null
7272
*/

ext/doc/Cassandra/DefaultFunction.php

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -24,58 +24,58 @@
2424
final class DefaultFunction implements Function_ {
2525

2626
/**
27-
* {@inheritDoc}
27+
* Returns the full name of the function
2828
*
2929
* @return string Full name of the function including name and types
3030
*/
3131
public function name() { }
3232

3333
/**
34-
* {@inheritDoc}
34+
* Returns the simple name of the function
3535
*
3636
* @return string Simple name of the function
3737
*/
3838
public function simpleName() { }
3939

4040
/**
41-
* {@inheritDoc}
41+
* Returns the arguments of the function
4242
*
4343
* @return array Arguments of the function
4444
*/
4545
public function arguments() { }
4646

4747
/**
48-
* {@inheritDoc}
48+
* Returns the return type of the function
4949
*
5050
* @return Type Return type of the function
5151
*/
5252
public function returnType() { }
5353

5454
/**
55-
* {@inheritDoc}
55+
* Returns the signature of the function
5656
*
5757
* @return string Signature of the function (same as name())
5858
*/
5959
public function signature() { }
6060

6161
/**
62-
* {@inheritDoc}
62+
* Returns the lanuage of the function
6363
*
6464
* @return string Language used by the function
6565
*/
6666
public function language() { }
6767

6868
/**
69-
* {@inheritDoc}
69+
* Returns the body of the function
7070
*
7171
* @return string Body of the function
7272
*/
7373
public function body() { }
7474

7575
/**
76-
* {@inheritDoc}
76+
* Determines if a function is called when the value is null.
7777
*
78-
* @return bool
78+
* @return bool Returns whether the function is called when the input columns are null
7979
*/
8080
public function isCalledOnNullInput() { }
8181

0 commit comments

Comments
 (0)