Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
N
NeoSuit
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Christian Wulf
NeoSuit
Commits
d3b2ad3e
Commit
d3b2ad3e
authored
9 years ago
by
Dean Jonas Finkes
Browse files
Options
Downloads
Plain Diff
Merge branch 'master' of
http://build.se.informatik.uni-kiel.de/gitlab/chw/integration-project
parents
7c0b2efd
351e970c
No related branches found
No related tags found
No related merge requests found
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
NeoSuit/src/main/java/controller/LazyQueryController.java
+8
-9
8 additions, 9 deletions
NeoSuit/src/main/java/controller/LazyQueryController.java
with
8 additions
and
9 deletions
NeoSuit/src/main/java/controller/LazyQueryController.java
+
8
−
9
View file @
d3b2ad3e
...
...
@@ -120,13 +120,13 @@ public class LazyQueryController {
}
}
this
.
numberOfMatches
=
patternMatches
.
get
(
activeCandidatePattern
).
size
();
System
.
out
.
println
(
"Matches : "
+
numberOfMatches
);
Logger
.
info
(
"Matches : "
+
numberOfMatches
);
return
patternMatches
.
get
(
activeCandidatePattern
);
}
public
String
getNormalCode
(
int
index
,
String
matchedClass
)
{
if
(!
patternCode
.
containsKey
(
activeCandidatePattern
))
{
System
.
out
.
println
(
"Matches : "
+
numberOfMatches
);
Logger
.
info
(
"Matches : "
+
numberOfMatches
);
patternCode
.
put
(
activeCandidatePattern
,
new
String
[
numberOfMatches
]);
}
...
...
@@ -149,10 +149,9 @@ public class LazyQueryController {
if
(
patternCodeOptimized
.
get
(
activeCandidatePattern
).
get
(
activeUpdatePattern
)[
index
]
==
null
)
{
GraphDatabaseService
db
=
DatabaseController
.
getInstance
().
startDB
();
System
.
out
.
println
(
activeUpdatePattern
.
getQueries
().
size
());
for
(
Query
q
:
activeUpdatePattern
.
getQueries
())
{
String
queryString
=
q
.
generateQueryString
();
System
.
out
.
println
(
"update query string : "
+
queryString
);
Logger
.
info
(
"update query string : "
+
queryString
);
Map
<
String
,
Object
>
parameters
=
patternParameters
.
get
(
activeCandidatePattern
).
get
(
index
);
Node
node
=
patternNodes
.
get
(
activeCandidatePattern
).
get
(
index
);
...
...
@@ -176,14 +175,14 @@ public class LazyQueryController {
}
public
void
applyParallelizationPattern
(
int
index
)
{
GraphDatabaseService
d
b
=
DatabaseController
.
getInstance
().
startDB
();
GraphDatabaseService
d
atabase
=
DatabaseController
.
getInstance
().
startDB
();
for
(
Query
q
:
activeUpdatePattern
.
getQueries
())
{
String
queryString
=
q
.
generateQueryString
();
for
(
Query
q
uery
:
activeUpdatePattern
.
getQueries
())
{
String
queryString
=
q
uery
.
generateQueryString
();
Map
<
String
,
Object
>
parameters
=
patternParameters
.
get
(
activeCandidatePattern
).
get
(
index
);
try
(
Transaction
t
x
=
db
.
beginTx
();
Result
result
=
d
b
.
execute
(
queryString
,
parameters
))
{
t
x
.
success
();
try
(
Transaction
t
ransaction
=
database
.
beginTx
();
Result
result
=
d
atabase
.
execute
(
queryString
,
parameters
))
{
t
ransaction
.
success
();
}
}
}
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment