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
da78c483
Commit
da78c483
authored
Oct 26, 2018
by
Sarath Subramanian
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ATLAS-2927: Update lineage query for Process entities #2
parent
572c5d64
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
3 deletions
+4
-3
EntityLineageService.java
...java/org/apache/atlas/discovery/EntityLineageService.java
+2
-1
AtlasGremlin3QueryProvider.java
...ava/org/apache/atlas/util/AtlasGremlin3QueryProvider.java
+2
-2
No files found.
repository/src/main/java/org/apache/atlas/discovery/EntityLineageService.java
View file @
da78c483
...
@@ -309,7 +309,8 @@ public class EntityLineageService implements AtlasLineageService {
...
@@ -309,7 +309,8 @@ public class EntityLineageService implements AtlasLineageService {
bindings
.
put
(
"guid"
,
entityGuid
);
bindings
.
put
(
"guid"
,
entityGuid
);
bindings
.
put
(
"incomingEdgeLabel"
,
incomingFrom
);
bindings
.
put
(
"incomingEdgeLabel"
,
incomingFrom
);
bindings
.
put
(
"outgoingEdgeLabel"
,
outgoingTo
);
bindings
.
put
(
"outgoingEdgeLabel"
,
outgoingTo
);
bindings
.
put
(
"depth"
,
depth
);
bindings
.
put
(
"dataSetDepth"
,
depth
);
bindings
.
put
(
"processDepth"
,
depth
-
1
);
if
(
depth
<
1
)
{
if
(
depth
<
1
)
{
ret
=
isDataSet
?
gremlinQueryProvider
.
getQuery
(
FULL_LINEAGE_DATASET
)
:
ret
=
isDataSet
?
gremlinQueryProvider
.
getQuery
(
FULL_LINEAGE_DATASET
)
:
...
...
repository/src/main/java/org/apache/atlas/util/AtlasGremlin3QueryProvider.java
View file @
da78c483
...
@@ -48,11 +48,11 @@ public class AtlasGremlin3QueryProvider extends AtlasGremlin2QueryProvider {
...
@@ -48,11 +48,11 @@ public class AtlasGremlin3QueryProvider extends AtlasGremlin2QueryProvider {
case
FULL_LINEAGE_DATASET:
case
FULL_LINEAGE_DATASET:
return
"g.V().has('__guid', guid).repeat(__.inE(incomingEdgeLabel).as('e1').outV().outE(outgoingEdgeLabel).as('e2').inV()).emit().select('e1', 'e2').toList()"
;
return
"g.V().has('__guid', guid).repeat(__.inE(incomingEdgeLabel).as('e1').outV().outE(outgoingEdgeLabel).as('e2').inV()).emit().select('e1', 'e2').toList()"
;
case
PARTIAL_LINEAGE_DATASET:
case
PARTIAL_LINEAGE_DATASET:
return
"g.V().has('__guid', guid).repeat(__.inE(incomingEdgeLabel).as('e1').outV().outE(outgoingEdgeLabel).as('e2').inV()).times(depth).emit().select('e1', 'e2').toList()"
;
return
"g.V().has('__guid', guid).repeat(__.inE(incomingEdgeLabel).as('e1').outV().outE(outgoingEdgeLabel).as('e2').inV()).times(d
ataSetD
epth).emit().select('e1', 'e2').toList()"
;
case
FULL_LINEAGE_PROCESS:
case
FULL_LINEAGE_PROCESS:
return
"g.V().has('__guid', guid).outE(outgoingEdgeLabel).store('e').inV().repeat(__.inE(incomingEdgeLabel).store('e').outV().outE(outgoingEdgeLabel).store('e').inV()).cap('e').unfold().toList()"
;
return
"g.V().has('__guid', guid).outE(outgoingEdgeLabel).store('e').inV().repeat(__.inE(incomingEdgeLabel).store('e').outV().outE(outgoingEdgeLabel).store('e').inV()).cap('e').unfold().toList()"
;
case
PARTIAL_LINEAGE_PROCESS:
case
PARTIAL_LINEAGE_PROCESS:
return
"g.V().has('__guid', guid).outE(outgoingEdgeLabel).store('e').inV().
repeat(__.inE(incomingEdgeLabel).store('e').outV().outE(outgoingEdgeLabel).store('e').inV()).times(depth
).cap('e').unfold().toList()"
;
return
"g.V().has('__guid', guid).outE(outgoingEdgeLabel).store('e').inV().
until(loops().is(eq(processDepth))).repeat(__.inE(incomingEdgeLabel).store('e').outV().outE(outgoingEdgeLabel).store('e').inV()
).cap('e').unfold().toList()"
;
case
TO_RANGE_LIST:
case
TO_RANGE_LIST:
return
".range(startIdx, endIdx).toList()"
;
return
".range(startIdx, endIdx).toList()"
;
case
RELATIONSHIP_SEARCH:
case
RELATIONSHIP_SEARCH:
...
...
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