-
Notifications
You must be signed in to change notification settings - Fork 424
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add a flattened wrapper on property graph to run apps defined on simp…
…le graph (#888) Signed-off-by: acezen <weibin.zen@gmail.com>
- Loading branch information
Showing
38 changed files
with
2,084 additions
and
800 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,43 @@ | ||
/** Copyright 2020 Alibaba Group Holding Limited. | ||
* | ||
* Licensed under the Apache License, Version 2.0 (the "License"); | ||
* you may not use this file except in compliance with the License. | ||
* You may obtain a copy of the License at | ||
* | ||
* http://www.apache.org/licenses/LICENSE-2.0 | ||
* | ||
* Unless required by applicable law or agreed to in writing, software | ||
* distributed under the License is distributed on an "AS IS" BASIS, | ||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
* See the License for the specific language governing permissions and | ||
* limitations under the License. | ||
*/ | ||
|
||
#ifndef ANALYTICAL_ENGINE_APPS_BOUNDARY_UTILS_H_ | ||
#define ANALYTICAL_ENGINE_APPS_BOUNDARY_UTILS_H_ | ||
|
||
#include <string> | ||
|
||
#include "folly/dynamic.h" | ||
|
||
namespace gs { | ||
template <typename oid_t> | ||
oid_t dynamic_to_oid(const folly::dynamic& node) {} | ||
|
||
template <> | ||
int64_t dynamic_to_oid<int64_t>(const folly::dynamic& node) { | ||
return node.asInt(); | ||
} | ||
|
||
template <> | ||
std::string dynamic_to_oid<std::string>(const folly::dynamic& node) { | ||
return node.asString(); | ||
} | ||
|
||
template <> | ||
folly::dynamic dynamic_to_oid<folly::dynamic>(const folly::dynamic& node) { | ||
return node; | ||
} | ||
} // namespace gs | ||
|
||
#endif // ANALYTICAL_ENGINE_APPS_BOUNDARY_UTILS_H_ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.