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
5da37648
Commit
5da37648
authored
6 years ago
by
nikhilbonte
Committed by
Madhan Neethiraj
6 years ago
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ATLAS-2979: added serviceType field to AtlasTypeDefHeader
Signed-off-by:
Madhan Neethiraj
<
madhan@apache.org
>
parent
618cf361
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
19 additions
and
2 deletions
+19
-2
AtlasTypeDefHeader.java
...va/org/apache/atlas/model/typedef/AtlasTypeDefHeader.java
+19
-2
No files found.
intg/src/main/java/org/apache/atlas/model/typedef/AtlasTypeDefHeader.java
View file @
5da37648
...
...
@@ -43,6 +43,7 @@ public class AtlasTypeDefHeader implements java.io.Serializable {
private
String
guid
;
private
String
name
;
private
String
serviceType
=
null
;
private
TypeCategory
category
;
public
AtlasTypeDefHeader
()
{
...
...
@@ -55,8 +56,13 @@ public class AtlasTypeDefHeader implements java.io.Serializable {
this
.
category
=
category
;
}
public
AtlasTypeDefHeader
(
String
guid
,
String
name
,
TypeCategory
category
,
String
serviceType
)
{
this
(
guid
,
name
,
category
);
this
.
serviceType
=
serviceType
;
}
public
AtlasTypeDefHeader
(
AtlasBaseTypeDef
typeDef
)
{
this
(
typeDef
.
getGuid
(),
typeDef
.
getName
(),
typeDef
.
getCategory
());
this
(
typeDef
.
getGuid
(),
typeDef
.
getName
(),
typeDef
.
getCategory
()
,
typeDef
.
getServiceType
()
);
}
public
AtlasTypeDefHeader
(
AtlasTypeDefHeader
other
)
{
...
...
@@ -65,10 +71,12 @@ public class AtlasTypeDefHeader implements java.io.Serializable {
setGuid
(
null
);
setName
(
null
);
setCategory
(
null
);
setServiceType
(
null
);
}
else
{
setGuid
(
other
.
getGuid
());
setName
(
other
.
getName
());
setCategory
(
other
.
getCategory
());
setServiceType
(
other
.
getServiceType
());
}
}
...
...
@@ -96,6 +104,13 @@ public class AtlasTypeDefHeader implements java.io.Serializable {
this
.
category
=
category
;
}
public
String
getServiceType
()
{
return
serviceType
;
}
public
void
setServiceType
(
String
serviceType
)
{
this
.
serviceType
=
serviceType
;
}
@Override
public
String
toString
()
{
...
...
@@ -110,12 +125,13 @@ public class AtlasTypeDefHeader implements java.io.Serializable {
AtlasTypeDefHeader
that
=
(
AtlasTypeDefHeader
)
o
;
return
Objects
.
equals
(
guid
,
that
.
guid
)
&&
Objects
.
equals
(
name
,
that
.
name
)
&&
Objects
.
equals
(
serviceType
,
that
.
serviceType
)
&&
category
==
that
.
category
;
}
@Override
public
int
hashCode
()
{
return
Objects
.
hash
(
guid
,
name
,
category
);
return
Objects
.
hash
(
guid
,
name
,
category
,
serviceType
);
}
public
StringBuilder
toString
(
StringBuilder
sb
)
{
...
...
@@ -127,6 +143,7 @@ public class AtlasTypeDefHeader implements java.io.Serializable {
sb
.
append
(
"guid='"
).
append
(
guid
).
append
(
'\''
);
sb
.
append
(
", name='"
).
append
(
name
).
append
(
'\''
);
sb
.
append
(
", typeCategory='"
).
append
(
category
).
append
(
'\''
);
sb
.
append
(
", serviceType='"
).
append
(
serviceType
).
append
(
'\''
);
sb
.
append
(
'}'
);
return
sb
;
...
...
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