converting log.info's to log.debug's in all the query runners
This commit is contained in:
parent
f73b521a4e
commit
8923eaf09f
6 changed files with 15 additions and 15 deletions
|
@ -188,7 +188,7 @@ public class CoPIGrantCountConstructQueryRunner {
|
||||||
|
|
||||||
before = System.currentTimeMillis();
|
before = System.currentTimeMillis();
|
||||||
|
|
||||||
log.info("CONSTRUCT query string : " + queryString);
|
log.debug("CONSTRUCT query string : " + queryString);
|
||||||
|
|
||||||
Query query = null;
|
Query query = null;
|
||||||
|
|
||||||
|
@ -209,7 +209,7 @@ public class CoPIGrantCountConstructQueryRunner {
|
||||||
}
|
}
|
||||||
|
|
||||||
after = System.currentTimeMillis();
|
after = System.currentTimeMillis();
|
||||||
log.info("Time taken to execute the CONSTRUCT query is in milliseconds: " + (after - before) );
|
log.debug("Time taken to execute the CONSTRUCT query is in milliseconds: " + (after - before) );
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -359,7 +359,7 @@ public class CoPIGrantCountQueryRunner implements QueryRunner<CoPIData> {
|
||||||
|
|
||||||
after = System.currentTimeMillis();
|
after = System.currentTimeMillis();
|
||||||
|
|
||||||
log.info("Time taken to execute the SELECT queries is in milliseconds: " + (after - before) );
|
log.debug("Time taken to execute the SELECT queries is in milliseconds: " + (after - before) );
|
||||||
|
|
||||||
return createQueryResult(resultSet);
|
return createQueryResult(resultSet);
|
||||||
}
|
}
|
||||||
|
@ -540,7 +540,7 @@ public class CoPIGrantCountQueryRunner implements QueryRunner<CoPIData> {
|
||||||
|
|
||||||
|
|
||||||
after = System.currentTimeMillis();
|
after = System.currentTimeMillis();
|
||||||
log.info("Time taken to iterate through the ResultSet of SELECT queries is in milliseconds: " + (after - before) );
|
log.debug("Time taken to iterate through the ResultSet of SELECT queries is in milliseconds: " + (after - before) );
|
||||||
|
|
||||||
return new CoPIData(egoNode, nodes, edges);
|
return new CoPIData(egoNode, nodes, edges);
|
||||||
}
|
}
|
||||||
|
|
|
@ -205,9 +205,9 @@ public class EntityPublicationCountQueryRunner implements QueryRunner<Entity> {
|
||||||
}
|
}
|
||||||
|
|
||||||
//TODO: return non-null value
|
//TODO: return non-null value
|
||||||
// log.info("Returning entity that contains the following set of subentities: "+entity.getSubEntities().toString());
|
// log.debug("Returning entity that contains the following set of subentities: "+entity.getSubEntities().toString());
|
||||||
after = System.currentTimeMillis();
|
after = System.currentTimeMillis();
|
||||||
log.info("Time taken to iterate through the ResultSet of SELECT queries is in milliseconds: " + (after - before) );
|
log.debug("Time taken to iterate through the ResultSet of SELECT queries is in milliseconds: " + (after - before) );
|
||||||
|
|
||||||
return entity;
|
return entity;
|
||||||
}
|
}
|
||||||
|
@ -296,7 +296,7 @@ public class EntityPublicationCountQueryRunner implements QueryRunner<Entity> {
|
||||||
|
|
||||||
after = System.currentTimeMillis();
|
after = System.currentTimeMillis();
|
||||||
|
|
||||||
log.info("Time taken to execute the SELECT queries is in milliseconds: " + (after - before) );
|
log.debug("Time taken to execute the SELECT queries is in milliseconds: " + (after - before) );
|
||||||
|
|
||||||
return createJavaValueObjects(resultSet);
|
return createJavaValueObjects(resultSet);
|
||||||
}
|
}
|
||||||
|
|
|
@ -99,7 +99,7 @@ public class EntitySubOrganizationTypesQueryRunner implements QueryRunner<Map<St
|
||||||
+ "}";
|
+ "}";
|
||||||
|
|
||||||
|
|
||||||
// log.info("\n SubOrganizationTypesQuery :" + sparqlQuery);
|
// log.debug("\n SubOrganizationTypesQuery :" + sparqlQuery);
|
||||||
|
|
||||||
return sparqlQuery;
|
return sparqlQuery;
|
||||||
|
|
||||||
|
@ -169,7 +169,7 @@ public class EntitySubOrganizationTypesQueryRunner implements QueryRunner<Map<St
|
||||||
// System.out.println("\n\nSub Organization Label Types Size --> " + subOrganizationLabelToTypes.size());
|
// System.out.println("\n\nSub Organization Label Types Size --> " + subOrganizationLabelToTypes.size());
|
||||||
// System.out.println("\n\nPeople Label Types Size --> " + personLabelToTypes.size());
|
// System.out.println("\n\nPeople Label Types Size --> " + personLabelToTypes.size());
|
||||||
|
|
||||||
// log.info("Sub Organization Label Types Size : " + subEntityLabelToTypes.size());
|
// log.debug("Sub Organization Label Types Size : " + subEntityLabelToTypes.size());
|
||||||
|
|
||||||
return subEntityLabelToTypes;
|
return subEntityLabelToTypes;
|
||||||
//return (subOrganizationLabelToTypes.size() != 0 )? subOrganizationLabelToTypes : personLabelToTypes ;
|
//return (subOrganizationLabelToTypes.size() != 0 )? subOrganizationLabelToTypes : personLabelToTypes ;
|
||||||
|
|
|
@ -279,7 +279,7 @@ public class EntityGrantCountConstructQueryRunner {
|
||||||
|
|
||||||
try{
|
try{
|
||||||
query = QueryFactory.create(QueryConstants.getSparqlPrefixQuery() + queryString, SYNTAX);
|
query = QueryFactory.create(QueryConstants.getSparqlPrefixQuery() + queryString, SYNTAX);
|
||||||
// log.info("query: "+ queryString);
|
// log.debug("query: "+ queryString);
|
||||||
}catch(Throwable th){
|
}catch(Throwable th){
|
||||||
log.error("Could not create CONSTRUCT SPARQL query for query " +
|
log.error("Could not create CONSTRUCT SPARQL query for query " +
|
||||||
"string. " + th.getMessage());
|
"string. " + th.getMessage());
|
||||||
|
@ -299,7 +299,7 @@ public class EntityGrantCountConstructQueryRunner {
|
||||||
after = System.currentTimeMillis();
|
after = System.currentTimeMillis();
|
||||||
|
|
||||||
// log.debug("Statements for constructed model of EntityGrantCount : "+ constructedModel.listStatements().toString());
|
// log.debug("Statements for constructed model of EntityGrantCount : "+ constructedModel.listStatements().toString());
|
||||||
log.info("Time taken to execute the CONSTRUCT queries is in milliseconds: " + (after - before) );
|
log.debug("Time taken to execute the CONSTRUCT queries is in milliseconds: " + (after - before) );
|
||||||
// constructedModel.write(System.out);
|
// constructedModel.write(System.out);
|
||||||
return constructedModel;
|
return constructedModel;
|
||||||
}
|
}
|
||||||
|
|
|
@ -114,7 +114,7 @@ public class EntityGrantCountQueryRunner implements QueryRunner<Entity> {
|
||||||
before = System.currentTimeMillis();
|
before = System.currentTimeMillis();
|
||||||
|
|
||||||
while (resultSet.hasNext()) {
|
while (resultSet.hasNext()) {
|
||||||
// log.info("Checking whether EntityGrantCount produced any resultset against the Constructed Model");
|
// log.debug("Checking whether EntityGrantCount produced any resultset against the Constructed Model");
|
||||||
QuerySolution solution = resultSet.nextSolution();
|
QuerySolution solution = resultSet.nextSolution();
|
||||||
|
|
||||||
if (entity == null) {
|
if (entity == null) {
|
||||||
|
@ -232,7 +232,7 @@ public class EntityGrantCountQueryRunner implements QueryRunner<Entity> {
|
||||||
}
|
}
|
||||||
|
|
||||||
after = System.currentTimeMillis();
|
after = System.currentTimeMillis();
|
||||||
log.info("Time taken to iterate through the ResultSet of SELECT queries is in milliseconds: " + (after - before) );
|
log.debug("Time taken to iterate through the ResultSet of SELECT queries is in milliseconds: " + (after - before) );
|
||||||
return entity;
|
return entity;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -299,7 +299,7 @@ public class EntityGrantCountQueryRunner implements QueryRunner<Entity> {
|
||||||
|
|
||||||
//System.out.println("\n\nEntity Grant Count query is: "+ sparqlQuery);
|
//System.out.println("\n\nEntity Grant Count query is: "+ sparqlQuery);
|
||||||
|
|
||||||
// log.info("\nThe sparql query is :\n" + sparqlQuery);
|
// log.debug("\nThe sparql query is :\n" + sparqlQuery);
|
||||||
|
|
||||||
return sparqlQuery;
|
return sparqlQuery;
|
||||||
|
|
||||||
|
@ -333,7 +333,7 @@ public class EntityGrantCountQueryRunner implements QueryRunner<Entity> {
|
||||||
|
|
||||||
after = System.currentTimeMillis();
|
after = System.currentTimeMillis();
|
||||||
|
|
||||||
log.info("Time taken to execute the SELECT queries is in milliseconds: " + (after - before) );
|
log.debug("Time taken to execute the SELECT queries is in milliseconds: " + (after - before) );
|
||||||
|
|
||||||
return createJavaValueObjects(resultSet);
|
return createJavaValueObjects(resultSet);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue