1
0
Fork 0
Commit Graph

483 Commits

Author SHA1 Message Date
Jan Steemann 828f46c76b shut up compiler 2016-01-29 19:19:06 +01:00
Michael Hackstein 436c377cb5 Merge branch 'devel' of github.com:arangodb/arangodb into vpack 2016-01-29 14:01:53 +01:00
Michael Hackstein 0b583d756a Duplicated static helper functions in AQLFunctions to be able to hadle VPack. Added a dummy for AqlValue->VPack. We have to clarify the data responsibilites before continuing here. 2016-01-29 13:42:15 +01:00
Jan Steemann de52abbf83 added AQL function `IS_SAME_COLLECTION` 2016-01-27 19:29:01 +01:00
Jan Steemann 9046e1831b clang-format 2016-01-27 13:43:46 +01:00
Jan Steemann 7800085a9b unified behavior of `RANGE` function 2016-01-25 14:19:49 +01:00
jsteemann 842384016d namespace cleanup 2016-01-21 00:20:22 +01:00
jsteemann ef67a496e6 more checks & asserts, C API cleanup 2016-01-20 22:08:11 +01:00
jsteemann 431900f17a changed namespace from triagens to arangodb 2016-01-17 00:44:53 +01:00
Jan Steemann 7b4bf30c38 fixed differing behavior in NEIGHBORS() implementations 2016-01-15 10:22:23 +01:00
jsteemann 59a8cd13dc more aggregate functions 2016-01-13 01:36:50 +01:00
Jan Steemann 9ee2646b53 aggregators ready for hash-collect 2016-01-11 19:24:53 +01:00
Jan Steemann 3ad20c0cae auto-generated headers 2016-01-06 18:41:51 +01:00
Jan Steemann a3b026d9d1 removed useless sections from code, unified include guards 2016-01-06 14:15:22 +01:00
Jan Steemann f422576ee0 clang-format 2016-01-05 17:43:24 +01:00
Jan Steemann 5aebcbd91d Merge branch 'devel' of https://github.com/arangodb/arangodb into vpack 2015-12-22 18:05:35 +01:00
Jan Steemann 6e3878ec94 changed behavior of [*] operator, added COLLECTION_COUNT internal function 2015-12-22 18:03:59 +01:00
Max Neunhoeffer 225c8cd843 Work on TODOs. 2015-12-22 16:50:09 +01:00
Jan Steemann 2b3f3f997b Merge branch 'devel' of https://github.com/arangodb/arangodb into vpack 2015-12-17 10:59:30 +01:00
Jan Steemann a694b7ef48 make_unique 2015-12-16 11:36:35 +01:00
jsteemann 8003ea7d74 fixed undefined variable warning 2015-12-15 20:12:50 +01:00
Michael Hackstein 5e332fa4b5 Adapted CXX function AQL EDGES to work with documents / Arrays as well. Similar to the old JS version 2015-12-15 16:38:45 +01:00
Michael Hackstein cd7b249e07 Fixed Cxx implementation of EDGES to be able to handle Edges 2015-12-15 16:38:03 +01:00
jsteemann fd29ccdbc5 Merge branch 'devel' of https://github.com/arangodb/arangodb into vpack 2015-12-13 23:37:22 +01:00
jsteemann 600c48375d added optimizer rule `sort-in-values` 2015-12-13 23:33:44 +01:00
Michael Hackstein 1af985003d Merge branch 'devel' of github.com:arangodb/arangodb into vpack 2015-12-10 10:26:14 +01:00
Jan Steemann 98a5badb08 cppcheck 2015-12-09 14:49:44 +01:00
Michael Hackstein acadb089ee Merge branch 'devel' of github.com:arangodb/arangodb into vpack 2015-12-09 10:29:13 +01:00
Jan Steemann 4cd2621d06 adjusted AQL function return values 2015-12-08 19:45:32 +01:00
Jan Steemann 5c033f566b Merge branch 'devel' of https://github.com/arangodb/arangodb into vpack 2015-12-04 13:47:08 +01:00
Michael Hackstein 3ea14e66a3 Merge branch 'devel' of github.com:arangodb/arangodb into JHMH 2015-12-03 10:19:17 +01:00
Jan Steemann 61a8e4c686 issue #1593: add POW() AQL function 2015-12-02 15:41:30 +01:00
Jan Steemann 0dd207f9f5 Merge branch 'devel' of https://github.com/arangodb/arangodb into vpack 2015-12-01 11:14:12 +01:00
Michael Hackstein e9a36a3fbf Merge branch 'devel' of github.com:arangodb/arangodb into JHMH 2015-11-30 14:17:44 +01:00
Jan Steemann e3c7760262 indentation 2015-11-30 12:46:01 +01:00
Jan Steemann a66368e10c Merge branch 'devel' of https://github.com/arangodb/arangodb into vpack 2015-11-26 17:13:33 +01:00
Michael Hackstein 7bf37620bb Merge branch 'devel' of github.com:arangodb/arangodb into JHMH 2015-11-26 16:32:26 +01:00
Jan Steemann 15368d12ba added a C++ implementation for AQL function `FULLTEXT` 2015-11-26 14:12:43 +01:00
Jan Steemann db078f1554 changed some APIs of AssocMulti 2015-11-25 15:40:01 +01:00
Jan Steemann 981c578812 changed other index APIs 2015-11-25 15:05:02 +01:00
Michael Hackstein b18ce56a68 Merge branch 'devel' of github.com:arangodb/arangodb into JHMH 2015-11-20 10:49:00 +01:00
Jan Steemann bc3bbc46b5 fixed Visual Studio warnings 2015-11-19 14:29:49 +01:00
Wilfried Goesgens 5dd70c78c0 Merge branch 'devel' of github.com:arangodb/ArangoDB into JHMH 2015-11-16 15:55:33 +01:00
Michael Hackstein 8d0d921ab6 Included two Abstract classes for Traversals. Traverser and TraversalPath. Implemented both of them for Single-Server Traversals. 2015-11-12 16:25:36 +01:00
Jan Steemann 25fa71187d fixed error messages 2015-11-11 14:43:28 +01:00
Jan Steemann aa38f5d036 fixed error messages 2015-11-11 13:58:48 +01:00
Wilfried Goesgens 04b1d75d51 Improve error handling, differenciate between collection not found and collection wrong for vertex 2015-11-10 13:32:46 +01:00
Michael Hackstein 6b62d50ced Added CXX Implementation of MERGE_RECURSIVE 2015-11-05 17:35:03 +01:00
Michael Hackstein 2542ea5924 Added a CXX implementation for POSITION 2015-11-05 15:29:00 +01:00
Michael Hackstein 6cab84e972 Added CXX implementation for RANGE 2015-11-05 14:26:53 +01:00
Michael Hackstein 90aa5c858f Added CXX implementation for MEDIAN and PERCENTILE 2015-11-05 11:21:16 +01:00
Michael Hackstein dbc67518a4 Added CXX implementation for STDDEV_SAMPLE and STDDEV_POPULATION 2015-11-04 17:53:45 +01:00
Michael Hackstein 0294be6ebe Added a CXX implementation for VARIANCE_POPULATION. 2015-11-04 16:49:08 +01:00
Michael Hackstein a1f947c9bf Added a CXX implemention for VARIANCE_SAMPLE 2015-11-04 16:39:45 +01:00
Michael Hackstein a958714bcc Added a CXX implementation for CURRENT_DATABASE. 2015-11-04 14:40:16 +01:00
Michael Hackstein b43eb25135 Added CXX implementation for REMOVE_VALUES 2015-11-04 14:02:27 +01:00
Michael Hackstein 03b6a021ce Adde CXX implementation of NOT_NULL 2015-11-04 13:38:22 +01:00
Michael Hackstein 3549be5088 Added CXX implementation for REMOVE_VALUE and REMOVE_NTH 2015-11-04 12:44:30 +01:00
Michael Hackstein 1957ef668d Added CXX implementation of SHIFT 2015-11-03 17:36:28 +01:00
Michael Hackstein c74aca37ac Added CXX implementation for UNSHIFT 2015-11-03 17:07:47 +01:00
Michael Hackstein 7ace3c42e4 Added a CXX implementation of APPEND 2015-11-03 11:51:12 +01:00
Michael Hackstein 5154e4de7a Added CXX implementation of POP 2015-11-03 10:21:35 +01:00
Jan Steemann 6d04ade890 avoid Visual Studio compile warnings 2015-11-03 10:21:35 +01:00
Michael Hackstein d75bc51647 Added a CXX implementation of PUSH 2015-11-03 10:21:31 +01:00
Michael Hackstein 1848c0f1f4 Added CXX implementation for FIRST_DOCUMENT and FIRST_LIST. 2015-11-03 10:21:31 +01:00
Jan Steemann 2a2ddea576 fixed compile warning 2015-11-03 10:21:30 +01:00
jsteemann b1a95cb42c added AQL function `UNSET_RECURSIVE` 2015-11-03 10:21:30 +01:00
jsteemann cbb691410c added CXX implementations for `FIRST`, `LAST` and `NTH` 2015-11-03 10:21:28 +01:00
Michael Hackstein 11606c1f55 Added a CXX implementation of BINARY_PLUS. 2015-11-03 10:19:26 +01:00
Jan Steemann afdcc68e51 minor patches 2015-11-03 10:19:25 +01:00
Michael Hackstein ac1cf36daf Added CXX implementation for ROUND and RAND 2015-10-30 11:06:57 +01:00
Michael Hackstein 2cbfce5cc2 Added CXX implementations for ABS, CEIL, FLOOR, SQRT 2015-10-30 10:26:52 +01:00
Michael Hackstein cc35fdb7b0 Added the implementation and more tests for EDGES in CXX only 2015-10-29 15:52:46 +01:00
Michael Hackstein 82424a4623 Merge branch 'devel' of github.com:arangodb/arangodb into devel 2015-10-29 09:51:39 +01:00
Michael Hackstein 6552c73d25 Added a CXX implementation of DOCUMENT 2015-10-29 09:50:40 +01:00
jsteemann 733a3000b7 Merge branch 'devel' of https://github.com/arangodb/arangodb into devel 2015-10-28 21:43:08 +01:00
jsteemann cd745f3266 order ditches 2015-10-28 21:43:02 +01:00
Michael Hackstein 293bdf4458 Implemented a CXX version of MINUS 2015-10-28 17:29:51 +01:00
Michael Hackstein 18d72e526c Fixed memleak in ZIP 2015-10-28 16:45:47 +01:00
Michael Hackstein d8d37a3bd5 Added a CXX implementation for PARSE_IDENTIFER 2015-10-28 16:02:15 +01:00
Michael Hackstein 66ae927e3c Added a CXX implementation of ZIP. Made the CXX implementation of FLATTEN more relaxed. It now works with invalid maxDepth entries and falls-back to 1 there 2015-10-28 15:06:22 +01:00
Michael Hackstein 9e98d5b87b Added CXX implementation of FLATTEN incl tests. 2015-10-28 14:10:03 +01:00
jsteemann 5fff134c80 added CXX implementations of `WITHIN` and `NEAR` AQL functions 2015-10-27 23:24:00 +01:00
Jan Steemann 67d033c8b2 fixed segfault with string collection names 2015-10-27 11:14:52 +01:00
Jan Steemann 025e470e3b added a single-array parameter variant for the AQL MERGE function 2015-10-23 15:29:53 +02:00
Jan Steemann ffa777979c make IN values unique and sort em 2015-10-12 15:34:41 +02:00
Michael Hackstein ab23a01263 Properly react to return value 2015-10-07 17:04:56 +02:00
Michael Hackstein 1ba2efed60 Fixed GraphNeighbors as locking was not woring for include data 2015-10-07 15:50:41 +02:00
Jan Steemann 97d67e4399 use binary-safe string representations 2015-08-20 01:46:20 +02:00
Jan Steemann 57e9b55739 use TRI_CHAR_NODE_PAIR() 2015-08-14 00:54:59 +02:00
Jan Steemann 922c16dce1 fixed invocation of `LIKE` 2015-08-04 12:23:40 +02:00
Jan Steemann 857f0b8b35 next attempt to make it compile on MacOS 2015-08-04 11:38:38 +02:00
Jan Steemann 5dab23a3b7 CXX implementation of AQL `LIKE` 2015-08-04 10:30:18 +02:00
Jan Steemann 454a6c998c Merge branch 'devel' of https://github.com/arangodb/arangodb into shaper-cxx 2015-07-28 17:38:48 +02:00
Jan Steemann 6d7ccd7699 move shaper to cxx 2015-07-28 17:38:31 +02:00
Michael Hackstein 25f7b25206 Fixed failing failure-tests 2015-07-28 13:21:54 +02:00
Jan Steemann 239cc1504e cleanup 2015-07-24 13:33:09 +02:00
Michael Hackstein 1ed4143f09 Fixed a wrong error code in NEIGHBORS 2015-07-23 16:23:35 +02:00
Michael Hackstein 67463232bf Fixed Error messages in CPP Only Neighbors function 2015-07-23 16:22:12 +02:00
Michael Hackstein 89ca3f68b9 Fixed edgeExamples in CPPOnly Neighbors function 2015-07-23 16:08:32 +02:00
Michael Hackstein 84174aa99a Added edgeExamples functionality to CPPonly Neighbors. 2015-07-23 15:25:50 +02:00
Michael Hackstein a2dab04ff2 Implemented direction in CPPOnly neighbors and added some error outputs 2015-07-23 11:23:35 +02:00
Michael Hackstein 379e189b5b Quick fix for string out of scope. 2015-07-22 18:24:52 +02:00
Michael Hackstein cdf98f564f The CPP only Neighbors now allows for _key in addition to _id 2015-07-22 17:46:38 +02:00
Michael Hackstein 22ad95b987 Implemented a Neighbors CPP only function. This is not piped through V8 function calls any more. Right now it is NOT fully featured and only Experimental. 2015-07-22 17:21:59 +02:00
Jan Steemann aad327714c handle AstNodes of type collection 2015-07-22 11:59:45 +02:00
Jan Steemann 67082b15fd moved AQL TO_* functions to CXX 2015-06-18 21:30:13 +02:00
Jan Steemann a76695345d constify 2015-06-17 12:41:24 +02:00
Jan Steemann dec79dd051 pass function arguments by reference 2015-06-16 18:01:45 +02:00
Jan Steemann 529055c4ca use typedefs 2015-06-16 09:50:17 +02:00
Jan Steemann 1a18fb0282 factor out huge array/object literals when calling V8-based AQL functions 2015-06-12 11:50:22 +02:00
Jan Steemann a2d99b55ec cxxified more functions 2015-06-02 15:15:45 +02:00
Jan Steemann 093430de3a added CXX implementation for ATTRIBUTES() 2015-05-26 21:45:48 +02:00
Jan Steemann a007a867ee "privatized" TRI_vector_t internals.
This allows changing the internals of TRI_vector_t structs in order to make the struct smaller.
On 64 bits, the size of TRI_vector_t is reduced from 48 bytes to 28 bytes.
TRI_json_t does benefit from this, as its biggest component is a TRI_vector_t.
2015-05-05 10:31:02 +02:00
Jan Steemann 4a8146ed02 fixed some potential leaks 2015-05-05 00:33:12 +02:00
Jan Steemann cb0ff510d6 slightly less copying 2015-04-30 16:50:08 +02:00
Jan Steemann 128b29c8d2 cxxified more functions 2015-04-28 09:29:09 +02:00
Jan Steemann 717df15a9c cxxified more AQL functions 2015-04-27 22:12:11 +02:00
Jan Steemann 40ed49ebfa fast path for MERGE() 2015-04-23 13:45:31 +02:00
Jan Steemann 224b33cc75 moved UNSET() and KEEP() to cxx implementation 2015-04-22 13:21:05 +02:00
Jan Steemann 322b3f9c6d issue #1231: bug xor feature in AQL: LENGTH(null) == 4
This changes the behavior of the AQL `LENGTH` function as follows:

- if the single argument to `LENGTH()` is `null`, then the result will now be `0`. In previous
  versions of ArangoDB, the result of `LENGTH(null)` was `4`.

- if the single argument to `LENGTH()` is `true`, then the result will now be `1`. In previous
  versions of ArangoDB, the result of `LENGTH(true)` was `4`.

- if the single argument to `LENGTH()` is `false`, then the result will now be `0`. In previous
  versions of ArangoDB, the result of `LENGTH(false)` was `5`.

The results of `LENGTH()` with string, numeric, array object argument values do not change.
2015-04-14 19:03:29 +02:00
Jan Steemann 50b531666c optimization for AQL CONCAT()
Conflicts:
	arangod/Aql/AqlValue.cpp
	arangod/Aql/AqlValue.h
	arangod/Aql/Ast.cpp
2015-03-27 17:18:27 +01:00
Frank Celler 4c5d57f1b8 merged Exceptions.h and Exception.h 2015-03-23 14:05:19 +01:00
Jan Steemann 654d282088 added fpconv_dtoa from https://github.com/night-shift/fpconv/ 2015-02-23 22:27:02 +01:00
Jan Steemann cef1e7bffe a bit less copying 2015-02-04 00:23:17 +01:00
Jan Steemann 685d03f0d7 some cleanup 2015-01-17 19:35:11 +01:00
Jan Steemann 0768c3cb38 fixed segfault 2015-01-02 09:10:28 +01:00
Jan Steemann d92057dd03 the great rename: array => object, list => array 2014-12-18 22:33:23 +01:00
Jan Steemann 20e7fe7a7a the great rename: array => object, list => array 2014-12-18 21:07:06 +01:00
Jan Steemann 4564f13bc8 implemented LENGTH in C++ 2014-12-04 17:10:48 +01:00
Jan Steemann 2e9100619a a bit less copying 2014-10-28 18:10:23 +01:00
Jan Steemann 70c59a61fd removed macro 2014-10-16 16:28:18 +02:00
Jan Steemann b9024aeaeb basic C++ implementations for dedicated AQL functions 2014-08-28 01:24:42 +02:00