Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
P
portal-backend
Manage
Activity
Members
Labels
Plan
Issues
0
Issue boards
Milestones
Wiki
Code
Merge requests
0
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Container Registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
HBP Medical Informatics Platform
portal-backend
Commits
ca2ac40c
Commit
ca2ac40c
authored
7 years ago
by
Mirco Nasuti
Browse files
Options
Downloads
Patches
Plain Diff
bugfix: add new variable to query
parent
622aa78d
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
src/main/java/eu/hbp/mip/controllers/VariablesApi.java
+1
-1
1 addition, 1 deletion
src/main/java/eu/hbp/mip/controllers/VariablesApi.java
src/main/java/eu/hbp/mip/model/MiningQuery.java
+2
-0
2 additions, 0 deletions
src/main/java/eu/hbp/mip/model/MiningQuery.java
with
3 additions
and
1 deletion
src/main/java/eu/hbp/mip/controllers/VariablesApi.java
+
1
−
1
View file @
ca2ac40c
...
@@ -155,7 +155,7 @@ public class VariablesApi {
...
@@ -155,7 +155,7 @@ public class VariablesApi {
String
histogramGroupings
=
data
.
getString
(
"histogram_groupings"
);
String
histogramGroupings
=
data
.
getString
(
"histogram_groupings"
);
MiningQuery
query
=
new
MiningQuery
();
MiningQuery
query
=
new
MiningQuery
();
query
.
setVariables
(
query
.
get
Variable
s
().
add
(
new
Variable
(
code
))
)
;
query
.
add
Variable
(
new
Variable
(
code
));
List
<
String
>
groupings
=
Arrays
.
asList
(
histogramGroupings
.
split
(
","
));
List
<
String
>
groupings
=
Arrays
.
asList
(
histogramGroupings
.
split
(
","
));
query
.
getGrouping
().
addAll
(
groupings
.
stream
().
map
(
Variable:
:
new
).
collect
(
Collectors
.
toList
()));
query
.
getGrouping
().
addAll
(
groupings
.
stream
().
map
(
Variable:
:
new
).
collect
(
Collectors
.
toList
()));
query
.
setAlgorithm
(
new
Algorithm
(
"histograms"
,
"Histograms"
,
false
));
query
.
setAlgorithm
(
new
Algorithm
(
"histograms"
,
"Histograms"
,
false
));
...
...
This diff is collapsed.
Click to expand it.
src/main/java/eu/hbp/mip/model/MiningQuery.java
+
2
−
0
View file @
ca2ac40c
...
@@ -27,6 +27,8 @@ public class MiningQuery {
...
@@ -27,6 +27,8 @@ public class MiningQuery {
this
.
variables
=
variables
;
this
.
variables
=
variables
;
}
}
public
void
addVariable
(
Variable
variable
)
{
this
.
variables
.
add
(
variable
);
}
public
List
<
Variable
>
getCovariables
()
{
public
List
<
Variable
>
getCovariables
()
{
return
covariables
;
return
covariables
;
}
}
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
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