mirror of https://gitee.com/bigwinds/arangodb
Add SmartVertexCollection.
This commit is contained in:
parent
68ddd845bf
commit
1df17afcaf
|
@ -44,6 +44,7 @@
|
|||
|
||||
#ifdef USE_ENTERPRISE
|
||||
#include "Enterprise/VocBase/VirtualCollection.h"
|
||||
#include "Enterprise/VocBase/SmartVertexCollection.h"
|
||||
#endif
|
||||
|
||||
#ifdef _WIN32
|
||||
|
@ -462,7 +463,14 @@ void ClusterInfo::loadPlan() {
|
|||
#else
|
||||
VPackSlice isSmart = collectionSlice.get("isSmart");
|
||||
if (isSmart.isBoolean() && isSmart.getBool()) {
|
||||
newCollection = std::make_shared<VirtualSmartEdgeCollection>(vocbase, collectionSlice);
|
||||
VPackSlice type = collectionSlice.get("type");
|
||||
if (type.isInteger() && type.getUInt() == TRI_COL_TYPE_EDGE) {
|
||||
newCollection = std::make_shared<VirtualSmartEdgeCollection>(
|
||||
vocbase, collectionSlice);
|
||||
} else {
|
||||
newCollection = std::make_shared<SmartVertexCollection>(
|
||||
vocbase, collectionSlice);
|
||||
}
|
||||
} else {
|
||||
newCollection = std::make_shared<LogicalCollection>(vocbase, collectionSlice, false);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue