test_class.declarator: query
test_class.modifier: private final
test_class.original_string: private final String query;
test_class.type: String
test_class.var_name: query
test_class.declarator: size
test_class.modifier: private final
test_class.original_string: private final double size;
test_class.type: double
test_class.var_name: size
test_class.declarator: stats
test_class.modifier: private final
test_class.original_string: private final int[] stats;
test_class.type: int[]
test_class.var_name: stats
test_class.file: iguana.corecontroller/src/test/java/org/aksw/iguana/cc/utils/SPARQLQueryStatisticsTest.java
test_class.identifier: SPARQLQueryStatisticsTest
test_case.body: @Test
      public void checkCorrectStats(){
          SPARQLQueryStatistics qs = new SPARQLQueryStatistics();
          Query q = QueryFactory.create(this.query);
          qs.getStatistics(q);
          assertEquals(stats[0], qs.aggr);
          assertEquals(stats[1], qs.filter);
          assertEquals(stats[2], qs.optional);
          assertEquals(stats[3], qs.union);
          assertEquals(stats[4], qs.having);
          assertEquals(stats[5], qs.groupBy);
          assertEquals(stats[6], qs.offset);
          assertEquals(size, qs.size, 0);
          assertEquals(stats[7], qs.orderBy);
          assertEquals(stats[8], qs.triples);
      }
test_case.class_method_signature: SPARQLQueryStatisticsTest.checkCorrectStats()
test_case.full_signature: @Test public void checkCorrectStats()
test_case.identifier: checkCorrectStats
test_case.invocations: create getStatistics assertEquals assertEquals assertEquals assertEquals assertEquals assertEquals assertEquals assertEquals assertEquals assertEquals
test_case.modifiers: @Test public
test_case.parameters: ()
test_case.return: void
test_case.signature: void checkCorrectStats()
focal_class.declarator: aggr=0
focal_class.modifier: public
focal_class.original_string: public int aggr=0;
focal_class.type: int
focal_class.var_name: aggr
focal_class.declarator: filter=0
focal_class.modifier: public
focal_class.original_string: public int filter=0;
focal_class.type: int
focal_class.var_name: filter
focal_class.declarator: optional=0
focal_class.modifier: public
focal_class.original_string: public int optional=0;
focal_class.type: int
focal_class.var_name: optional
focal_class.declarator: union=0
focal_class.modifier: public
focal_class.original_string: public int union=0;
focal_class.type: int
focal_class.var_name: union
focal_class.declarator: having=0
focal_class.modifier: public
focal_class.original_string: public int having=0;
focal_class.type: int
focal_class.var_name: having
focal_class.declarator: groupBy=0
focal_class.modifier: public
focal_class.original_string: public int groupBy=0;
focal_class.type: int
focal_class.var_name: groupBy
focal_class.declarator: offset=0
focal_class.modifier: public
focal_class.original_string: public int offset=0;
focal_class.type: int
focal_class.var_name: offset
focal_class.declarator: size=0.0
focal_class.modifier: public
focal_class.original_string: public double size=0.0;
focal_class.type: double
focal_class.var_name: size
focal_class.declarator: orderBy=0
focal_class.modifier: public
focal_class.original_string: public int orderBy=0;
focal_class.type: int
focal_class.var_name: orderBy
focal_class.declarator: triples=0
focal_class.modifier: public
focal_class.original_string: public int triples=0;
focal_class.type: int
focal_class.var_name: triples
focal_class.file: iguana.corecontroller/src/main/java/org/aksw/iguana/cc/utils/SPARQLQueryStatistics.java
focal_class.identifier: SPARQLQueryStatistics
focal_class.class_method_signature: SPARQLQueryStatistics.getStatistics(Query q)
focal_class.full_signature: public void getStatistics(Query q)
focal_class.identifier: getStatistics
focal_class.modifiers: public
focal_class.parameters: (Query q)
focal_class.return: void
focal_class.signature: void getStatistics(Query q)
focal_method.body: public void getStatistics(Query q) {
  		if(q.isSelectType()) {
  			
  			size++;
  			offset+=q.hasOffset()?1:0;
  			aggr+=q.hasAggregators()?1:0;
  			groupBy+=q.hasGroupBy()?1:0;
  			having+=q.hasHaving()?1:0;
  			orderBy+=q.hasOrderBy()?1:0;
  
  			StatisticsVisitor visitor = new StatisticsVisitor();
  			visitor.setElementWhere(q.getQueryPattern());
  			ElementWalker.walk(q.getQueryPattern(), visitor);
  			
  			union+=visitor.union?1:0;
  			optional+=visitor.optional?1:0;
  			filter+=visitor.filter?1:0;
  			triples += visitor.bgps;
  			
  		}
  	}
focal_method.class_method_signature: SPARQLQueryStatistics.getStatistics(Query q)
focal_method.full_signature: public void getStatistics(Query q)
focal_method.identifier: getStatistics
focal_method.invocations: isSelectType hasOffset hasAggregators hasGroupBy hasHaving hasOrderBy setElementWhere getQueryPattern walk getQueryPattern
focal_method.modifiers: public
focal_method.parameters: (Query q)
focal_method.return: void
focal_method.signature: void getStatistics(Query q)