mirror of https://gitee.com/bigwinds/arangodb
Merge branch 'aql2' of github.com:triAGENS/ArangoDB into aql2
This commit is contained in:
commit
52710f15cd
|
@ -380,16 +380,16 @@ void SortNode::toJsonHelper (std::map<ExecutionNode*, int>& indexTab,
|
|||
}
|
||||
|
||||
// -----------------------------------------------------------------------------
|
||||
// --SECTION-- methods of AggregateOnUnSortedNode
|
||||
// --SECTION-- methods of AggregateNode
|
||||
// -----------------------------------------------------------------------------
|
||||
|
||||
////////////////////////////////////////////////////////////////////////////////
|
||||
/// @brief toJson, for AggregateOnUnSortedNode
|
||||
/// @brief toJson, for AggregateNode
|
||||
////////////////////////////////////////////////////////////////////////////////
|
||||
|
||||
void AggregateOnUnsortedNode::toJsonHelper (std::map<ExecutionNode*, int>& indexTab,
|
||||
triagens::basics::Json& nodes,
|
||||
TRI_memory_zone_t* zone) {
|
||||
void AggregateNode::toJsonHelper (std::map<ExecutionNode*, int>& indexTab,
|
||||
triagens::basics::Json& nodes,
|
||||
TRI_memory_zone_t* zone) {
|
||||
Json json(ExecutionNode::toJsonHelperGeneric(indexTab, nodes, zone)); // call base class method
|
||||
if (json.isEmpty()) {
|
||||
return;
|
||||
|
|
|
@ -1005,17 +1005,17 @@ namespace triagens {
|
|||
|
||||
|
||||
// -----------------------------------------------------------------------------
|
||||
// --SECTION-- class AggregateOnUnsortedNode
|
||||
// --SECTION-- class AggregateNode
|
||||
// -----------------------------------------------------------------------------
|
||||
|
||||
////////////////////////////////////////////////////////////////////////////////
|
||||
/// @brief class AggregateOnUnsortedNode, derived from ExecutionNode
|
||||
/// @brief class AggregateNode, derived from ExecutionNode
|
||||
////////////////////////////////////////////////////////////////////////////////
|
||||
|
||||
class AggregateOnUnsortedNode : public ExecutionNode {
|
||||
class AggregateNode : public ExecutionNode {
|
||||
|
||||
friend class ExecutionBlock;
|
||||
friend class AggregateOnUnsortedBlock;
|
||||
friend class AggregateBlock;
|
||||
|
||||
////////////////////////////////////////////////////////////////////////////////
|
||||
/// @brief constructor
|
||||
|
@ -1023,8 +1023,8 @@ namespace triagens {
|
|||
|
||||
public:
|
||||
|
||||
AggregateOnUnsortedNode (std::vector<std::pair<Variable const*, Variable const*>> aggregateVariables,
|
||||
Variable const* outVariable)
|
||||
AggregateNode (std::vector<std::pair<Variable const*, Variable const*>> aggregateVariables,
|
||||
Variable const* outVariable)
|
||||
: ExecutionNode(), _aggregateVariables(aggregateVariables), _outVariable(outVariable) {
|
||||
}
|
||||
|
||||
|
@ -1041,7 +1041,7 @@ namespace triagens {
|
|||
////////////////////////////////////////////////////////////////////////////////
|
||||
|
||||
virtual std::string getTypeString () const {
|
||||
return std::string("AggregateOnUnsortedNode");
|
||||
return std::string("AggregateNode");
|
||||
}
|
||||
|
||||
////////////////////////////////////////////////////////////////////////////////
|
||||
|
@ -1057,7 +1057,7 @@ namespace triagens {
|
|||
////////////////////////////////////////////////////////////////////////////////
|
||||
|
||||
virtual ExecutionNode* clone () const {
|
||||
auto c = new AggregateOnUnsortedNode(_aggregateVariables, _outVariable);
|
||||
auto c = new AggregateNode(_aggregateVariables, _outVariable);
|
||||
cloneDependencies(c);
|
||||
return static_cast<ExecutionNode*>(c);
|
||||
}
|
||||
|
|
|
@ -414,7 +414,7 @@ ExecutionNode* ExecutionPlan::fromNodeCollect (Ast const* ast,
|
|||
outVariable = static_cast<Variable*>(v->getData());
|
||||
}
|
||||
|
||||
auto en = addNode(new AggregateOnUnsortedNode(aggregateVariables, outVariable));
|
||||
auto en = addNode(new AggregateNode(aggregateVariables, outVariable));
|
||||
|
||||
return addDependency(previous, en);
|
||||
}
|
||||
|
|
|
@ -219,7 +219,7 @@ TRI_v8_global_s::~TRI_v8_global_s () {
|
|||
TRI_v8_global_t* TRI_CreateV8Globals(v8::Isolate* isolate) {
|
||||
TRI_v8_global_t* v8g = (TRI_v8_global_t*) isolate->GetData();
|
||||
|
||||
if (v8g == 0) {
|
||||
if (v8g == nullptr) {
|
||||
v8g = new TRI_v8_global_t(isolate);
|
||||
isolate->SetData(v8g);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue