-
Notifications
You must be signed in to change notification settings - Fork 197
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add GraphAr parser in importor (#568)
* Add vertex GraphAr column parser * Add edge GraphAr parser * Update dockerfile * Parse GraphAr graph.yml * fix cpplint & add comments for gar config * change dockerfile * change git submodule * change submodule java * update gar ut & pytest * fix pytest * fix gar config make error * improve gar ut * fix cpplint error * improve the ut * solve the comments * improve the code * check edge label * remove some test data * fix: build bug, empty file and mem error * update GraphAr * Update person_knows_person.edge.yml * fix an string error * fix import error * fix import error * fix throw code error --------- Co-authored-by: Shipeng Qi <[email protected]> Co-authored-by: Shipeng Qi <[email protected]>
- Loading branch information
1 parent
57931aa
commit 23d09fe
Showing
90 changed files
with
1,138 additions
and
407 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,30 @@ | ||
/** | ||
* Copyright 2022 AntGroup CO., Ltd. | ||
* | ||
* 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. | ||
*/ | ||
|
||
#pragma once | ||
|
||
#include "core/data_type.h" | ||
|
||
namespace lgraph { | ||
namespace import_v2 { | ||
|
||
// The base class for ColumnParser, JsonLinesParser and GraphArParser | ||
class BlockParser { | ||
public: | ||
virtual bool ReadBlock(std::vector<std::vector<FieldData>>& buf) = 0; | ||
virtual ~BlockParser() {} | ||
}; | ||
|
||
} // namespace import_v2 | ||
} // namespace lgraph |
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.