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
a6c0793f
Commit
a6c0793f
authored
Aug 21, 2017
by
Richard Ding
Committed by
Madhan Neethiraj
Aug 25, 2017
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ATLAS-2076: update type-search to support filter by RELATIONSHIP type
Signed-off-by:
Madhan Neethiraj
<
madhan@apache.org
>
parent
b445a1d2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
0 deletions
+5
-0
AtlasTypeDefGraphStore.java
.../atlas/repository/store/graph/AtlasTypeDefGraphStore.java
+3
-0
FilterUtil.java
...ain/java/org/apache/atlas/repository/util/FilterUtil.java
+2
-0
No files found.
repository/src/main/java/org/apache/atlas/repository/store/graph/AtlasTypeDefGraphStore.java
View file @
a6c0793f
...
...
@@ -668,6 +668,9 @@ public abstract class AtlasTypeDefGraphStore implements AtlasTypeDefStore {
case
ENTITY:
ret
=
((
AtlasEntityType
)
type
).
getEntityDef
();
break
;
case
RELATIONSHIP:
ret
=
((
AtlasRelationshipType
)
type
).
getRelationshipDef
();
break
;
case
PRIMITIVE:
case
OBJECT_ID_TYPE:
case
ARRAY:
...
...
repository/src/main/java/org/apache/atlas/repository/util/FilterUtil.java
View file @
a6c0793f
...
...
@@ -115,6 +115,8 @@ public class FilterUtil {
return
atlasType
.
getTypeCategory
()
==
TypeCategory
.
STRUCT
;
case
"ENUM"
:
return
atlasType
.
getTypeCategory
()
==
TypeCategory
.
ENUM
;
case
"RELATIONSHIP"
:
return
atlasType
.
getTypeCategory
()
==
TypeCategory
.
RELATIONSHIP
;
default
:
// This shouldn't have happened
return
false
;
...
...
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