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
b10f93a2
Commit
b10f93a2
authored
Jan 27, 2015
by
TJBChris
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Moved a comment that should have been moved to
GraphBackendDiscoveryService as it relates to the graph directly. The code was inactive but remains commented as a reminder for future work.
parent
b3d8e037
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
14 additions
and
14 deletions
+14
-14
GraphBackedMetadataRepository.java
...adata/repository/graph/GraphBackedMetadataRepository.java
+13
-0
MetadataDiscoveryResource.java
...oop/metadata/web/resources/MetadataDiscoveryResource.java
+1
-14
No files found.
repository/src/main/java/org/apache/hadoop/metadata/repository/graph/GraphBackedMetadataRepository.java
View file @
b10f93a2
...
@@ -272,6 +272,19 @@ public class GraphBackedMetadataRepository implements MetadataRepository {
...
@@ -272,6 +272,19 @@ public class GraphBackedMetadataRepository implements MetadataRepository {
HashMap
<
String
,
Map
<
String
,
String
>>
vertices
=
new
HashMap
<
String
,
Map
<
String
,
String
>>();
HashMap
<
String
,
Map
<
String
,
String
>>
vertices
=
new
HashMap
<
String
,
Map
<
String
,
String
>>();
HashMap
<
String
,
Map
<
String
,
String
>>
edges
=
new
HashMap
<
String
,
Map
<
String
,
String
>>();
HashMap
<
String
,
Map
<
String
,
String
>>
edges
=
new
HashMap
<
String
,
Map
<
String
,
String
>>();
/* Later - when we allow search limitation by "type".
ArrayList<String> typesList = new ArrayList<String>();
for (String s: types.split(",")) {
// Types validity check.
if (typesList.contains(s)) {
LOG.error("Specifyed type is not a member of the Type System= {}", s);
throw new WebApplicationException(
Servlets.getErrorResponse("Invalid type specified in query.", Response.Status.INTERNAL_SERVER_ERROR));
}
typesList.add(s);
}*/
int
resultCount
=
0
;
int
resultCount
=
0
;
for
(
Vertex
v:
graphService
.
getBlueprintsGraph
().
query
().
has
(
prop
,
searchText
).
vertices
())
{
for
(
Vertex
v:
graphService
.
getBlueprintsGraph
().
query
().
has
(
prop
,
searchText
).
vertices
())
{
...
...
webapp/src/main/java/org/apache/hadoop/metadata/web/resources/MetadataDiscoveryResource.java
View file @
b10f93a2
...
@@ -165,20 +165,7 @@ public class MetadataDiscoveryResource {
...
@@ -165,20 +165,7 @@ public class MetadataDiscoveryResource {
LOG
.
info
(
"Performing full text search for vertices with property {} matching= {}"
,
prop
,
searchText
);
LOG
.
info
(
"Performing full text search for vertices with property {} matching= {}"
,
prop
,
searchText
);
Preconditions
.
checkNotNull
(
searchText
,
"Invalid argument: \"text\" cannot be null."
);
Preconditions
.
checkNotNull
(
searchText
,
"Invalid argument: \"text\" cannot be null."
);
Preconditions
.
checkNotNull
(
prop
,
"Invalid argument: \"prop\" cannot be null."
);
Preconditions
.
checkNotNull
(
prop
,
"Invalid argument: \"prop\" cannot be null."
);
/* Later - when we allow search limitation by "type".
ArrayList<String> typesList = new ArrayList<String>();
for (String s: types.split(",")) {
// Types validity check.
if (typesList.contains(s)) {
LOG.error("Specifyed type is not a member of the Type System= {}", s);
throw new WebApplicationException(
Servlets.getErrorResponse("Invalid type specified in query.", Response.Status.INTERNAL_SERVER_ERROR));
}
typesList.add(s);
}*/
// Parent JSON Object
// Parent JSON Object
JSONObject
response
=
new
JSONObject
();
JSONObject
response
=
new
JSONObject
();
...
...
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