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
85280ddf
Commit
85280ddf
authored
Nov 09, 2018
by
Sarath Subramanian
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ATLAS-2959: Update metrics query to use index query instead of graph query for faster response
parent
e272a28e
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
11 additions
and
0 deletions
+11
-0
AtlasIndexQuery.java
.../org/apache/atlas/repository/graphdb/AtlasIndexQuery.java
+6
-0
AtlasJanusIndexQuery.java
.../atlas/repository/graphdb/janus/AtlasJanusIndexQuery.java
+5
-0
MetricsService.java
...c/main/java/org/apache/atlas/services/MetricsService.java
+0
-0
MetricsServiceTest.java
...st/java/org/apache/atlas/services/MetricsServiceTest.java
+0
-0
metrics-entities-data.zip
repository/src/test/resources/metrics-entities-data.zip
+0
-0
No files found.
graphdb/api/src/main/java/org/apache/atlas/repository/graphdb/AtlasIndexQuery.java
View file @
85280ddf
...
...
@@ -44,6 +44,12 @@ public interface AtlasIndexQuery<V, E> {
Iterator
<
Result
<
V
,
E
>>
vertices
(
int
offset
,
int
limit
);
/**
* Gets the total count of query results
* @return
*/
Long
vertexTotals
();
/**
* Query result from an index query.
*
* @param <V>
...
...
graphdb/janus/src/main/java/org/apache/atlas/repository/graphdb/janus/AtlasJanusIndexQuery.java
View file @
85280ddf
...
...
@@ -77,6 +77,11 @@ public class AtlasJanusIndexQuery implements AtlasIndexQuery<AtlasJanusVertex, A
return
Iterators
.
transform
(
results
,
function
);
}
@Override
public
Long
vertexTotals
()
{
return
query
.
vertexTotals
();
}
/**
* Janus implementation of AtlasIndexQuery.Result.
*/
...
...
repository/src/main/java/org/apache/atlas/services/MetricsService.java
View file @
85280ddf
This diff is collapsed.
Click to expand it.
repository/src/test/java/org/apache/atlas/services/MetricsServiceTest.java
View file @
85280ddf
This diff is collapsed.
Click to expand it.
repository/src/test/resources/metrics-entities-data.zip
0 → 100644
View file @
85280ddf
File added
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