Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
A
atlas
Project
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
dataplatform
atlas
Commits
2c9376f8
Commit
2c9376f8
authored
6 years ago
by
jxzhao
Committed by
Madhan Neethiraj
6 years ago
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ATLAS-3151: fix clientv2 getRelationshipByGuid bug
Signed-off-by:
Madhan Neethiraj
<
madhan@apache.org
>
parent
f234ed1d
master
No related merge requests found
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
2 deletions
+11
-2
AtlasClientV2.java
...ient-v2/src/main/java/org/apache/atlas/AtlasClientV2.java
+11
-2
No files found.
client/client-v2/src/main/java/org/apache/atlas/AtlasClientV2.java
View file @
2c9376f8
...
...
@@ -28,6 +28,7 @@ import org.apache.atlas.model.instance.AtlasClassification.AtlasClassifications;
import
org.apache.atlas.model.instance.AtlasEntity.AtlasEntitiesWithExtInfo
;
import
org.apache.atlas.model.instance.AtlasEntity.AtlasEntityWithExtInfo
;
import
org.apache.atlas.model.instance.AtlasRelationship
;
import
org.apache.atlas.model.instance.AtlasRelationship.AtlasRelationshipWithExtInfo
;
import
org.apache.atlas.model.instance.AtlasEntityHeaders
;
import
org.apache.atlas.model.instance.EntityMutationResponse
;
import
org.apache.atlas.model.lineage.AtlasLineageInfo
;
...
...
@@ -436,8 +437,16 @@ public class AtlasClientV2 extends AtlasBaseClient {
return
callAPI
(
API_V2
.
FACETED_SEARCH
,
AtlasSearchResult
.
class
,
searchParameters
);
}
public
AtlasRelationship
getRelationshipByGuid
(
String
guid
)
throws
AtlasServiceException
{
return
callAPI
(
API_V2
.
GET_RELATIONSHIP_BY_GUID
,
AtlasRelationship
.
class
,
null
,
guid
);
public
AtlasRelationshipWithExtInfo
getRelationshipByGuid
(
String
guid
)
throws
AtlasServiceException
{
return
callAPI
(
API_V2
.
GET_RELATIONSHIP_BY_GUID
,
AtlasRelationshipWithExtInfo
.
class
,
null
,
guid
);
}
public
AtlasRelationshipWithExtInfo
getRelationshipByGuid
(
String
guid
,
boolean
extendedInfo
)
throws
AtlasServiceException
{
MultivaluedMap
<
String
,
String
>
queryParams
=
new
MultivaluedMapImpl
();
queryParams
.
add
(
"extendedInfo"
,
String
.
valueOf
(
extendedInfo
));
return
callAPI
(
API_V2
.
GET_RELATIONSHIP_BY_GUID
,
AtlasRelationshipWithExtInfo
.
class
,
queryParams
,
guid
);
}
public
void
deleteRelationshipByGuid
(
String
guid
)
throws
AtlasServiceException
{
...
...
This diff is collapsed.
Click to expand it.
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment