test_class.declarator: isUpdate
test_class.modifier: private final
test_class.original_string: private final boolean isUpdate;
test_class.type: boolean
test_class.var_name: isUpdate
test_class.declarator: queryStr
test_class.modifier: private
test_class.original_string: private String[] queryStr;
test_class.type: String[]
test_class.var_name: queryStr
test_class.declarator: dir = UUID.randomUUID().toString()
test_class.modifier: private
test_class.original_string: private String dir = UUID.randomUUID().toString();
test_class.type: String
test_class.var_name: dir
test_class.declarator: queriesFile
test_class.modifier: private
test_class.original_string: private File queriesFile;
test_class.type: File
test_class.var_name: queriesFile
test_class.file: iguana.corecontroller/src/test/java/org/aksw/iguana/cc/query/impl/InstancesQueryHandlerTest.java
test_class.identifier: InstancesQueryHandlerTest
test_case.body: @Test
      public void testCaching() throws IOException {
          //Get queries file
          Connection con = new Connection();
          con.setName("a");
          con.setEndpoint("http://test.com");
          Worker worker = getWorker(con, 1, "1");
          InstancesQueryHandler qh = new InstancesQueryHandler(Lists.newArrayList(worker));
          qh.setOutputFolder(this.dir);
  
          Map<String, File[]> queries1 = qh.generate();
          //check if folder exist this.dir/hashCode/ with |queries| files
          int hashcode = org.aksw.iguana.cc.utils.FileUtils.getHashcodeFromFileContent(this.queriesFile.getAbsolutePath());
          File f = new File(this.dir+File.separator+hashcode);
  
          worker = getWorker(con, 12, "2");
          qh = new InstancesQueryHandler(Lists.newArrayList(worker));
          qh.setOutputFolder(this.dir);
          Map<String, File[]> queries2 = qh.generate();
  
          HashSet<String> files = new HashSet<String>();
          for(File queryFile : queries1.get(this.queriesFile.getAbsolutePath())){
              files.add(queryFile.getAbsolutePath());
          }
          for(File queryFile : queries2.get(this.queriesFile.getAbsolutePath())){
              assertTrue(files.contains(queryFile.getAbsolutePath()));
          }
          assertEquals(files.size(), queries2.get(this.queriesFile.getAbsolutePath()).length);
          FileUtils.deleteDirectory(f);
      }
test_case.class_method_signature: InstancesQueryHandlerTest.testCaching()
test_case.full_signature: @Test public void testCaching()
test_case.identifier: testCaching
test_case.invocations: setName setEndpoint getWorker newArrayList setOutputFolder generate getHashcodeFromFileContent getAbsolutePath getWorker newArrayList setOutputFolder generate get getAbsolutePath add getAbsolutePath get getAbsolutePath assertTrue contains getAbsolutePath assertEquals size get getAbsolutePath deleteDirectory
test_case.modifiers: @Test public
test_case.parameters: ()
test_case.return: void
test_case.signature: void testCaching()
focal_class.declarator: LOGGER = LoggerFactory.getLogger(InstancesQueryHandler.class)
focal_class.modifier: private static final
focal_class.original_string: private static final Logger LOGGER = LoggerFactory.getLogger(InstancesQueryHandler.class);
focal_class.type: Logger
focal_class.var_name: LOGGER
focal_class.declarator: outputFolder = "queryCache"
focal_class.modifier: protected
focal_class.original_string: protected  String outputFolder = "queryCache";
focal_class.type: String
focal_class.var_name: outputFolder
focal_class.declarator: type2IDcounter = new HashMap<String, Integer>()
focal_class.modifier: protected
focal_class.original_string: protected HashMap<String, Integer> type2IDcounter = new HashMap<String, Integer>();
focal_class.type: HashMap<String, Integer>
focal_class.var_name: type2IDcounter
focal_class.declarator: qs = new SPARQLQueryStatistics()
focal_class.modifier: protected
focal_class.original_string: protected SPARQLQueryStatistics qs = new SPARQLQueryStatistics();
focal_class.type: SPARQLQueryStatistics
focal_class.var_name: qs
focal_class.declarator: queryFiles
focal_class.modifier: private
focal_class.original_string: private File[] queryFiles;
focal_class.type: File[]
focal_class.var_name: queryFiles
focal_class.declarator: langProcessor = new SPARQLLanguageProcessor()
focal_class.modifier: protected
focal_class.original_string: protected LanguageProcessor langProcessor = new SPARQLLanguageProcessor();
focal_class.type: LanguageProcessor
focal_class.var_name: langProcessor
focal_class.declarator: hashcode
focal_class.modifier: protected
focal_class.original_string: protected int hashcode;
focal_class.type: int
focal_class.var_name: hashcode
focal_class.file: iguana.corecontroller/src/main/java/org/aksw/iguana/cc/query/impl/InstancesQueryHandler.java
focal_class.identifier: InstancesQueryHandler
focal_class.class_method_signature: InstancesQueryHandler.InstancesQueryHandler(List<Worker> workers)
focal_class.full_signature: public  InstancesQueryHandler(List<Worker> workers)
focal_class.identifier: InstancesQueryHandler
focal_class.modifiers: public
focal_class.parameters: (List<Worker> workers)
focal_class.signature:  InstancesQueryHandler(List<Worker> workers)
focal_class.class_method_signature: InstancesQueryHandler.InstancesQueryHandler(List<Worker> workers, String lang)
focal_class.full_signature: public  InstancesQueryHandler(List<Worker> workers, String lang)
focal_class.identifier: InstancesQueryHandler
focal_class.modifiers: public
focal_class.parameters: (List<Worker> workers, String lang)
focal_class.signature:  InstancesQueryHandler(List<Worker> workers, String lang)
focal_class.class_method_signature: InstancesQueryHandler.generateQueries(String queryFileName)
focal_class.full_signature: @Override protected File[] generateQueries(String queryFileName)
focal_class.identifier: generateQueries
focal_class.modifiers: @Override protected
focal_class.parameters: (String queryFileName)
focal_class.return: File[]
focal_class.signature: File[] generateQueries(String queryFileName)
focal_class.class_method_signature: InstancesQueryHandler.generateQueryPerLine(String queryFileName, String idPrefix, int hashcode)
focal_class.full_signature: protected File[] generateQueryPerLine(String queryFileName, String idPrefix, int hashcode)
focal_class.identifier: generateQueryPerLine
focal_class.modifiers: protected
focal_class.parameters: (String queryFileName, String idPrefix, int hashcode)
focal_class.return: File[]
focal_class.signature: File[] generateQueryPerLine(String queryFileName, String idPrefix, int hashcode)
focal_class.class_method_signature: InstancesQueryHandler.getInstances(String queryStr)
focal_class.full_signature: protected List<String> getInstances(String queryStr)
focal_class.identifier: getInstances
focal_class.modifiers: protected
focal_class.parameters: (String queryStr)
focal_class.return: List<String>
focal_class.signature: List<String> getInstances(String queryStr)
focal_class.class_method_signature: InstancesQueryHandler.createFileWithID(File rootFolder, String idPrefix)
focal_class.full_signature: protected File createFileWithID(File rootFolder, String idPrefix)
focal_class.identifier: createFileWithID
focal_class.modifiers: protected
focal_class.parameters: (File rootFolder, String idPrefix)
focal_class.return: File
focal_class.signature: File createFileWithID(File rootFolder, String idPrefix)
focal_class.class_method_signature: InstancesQueryHandler.generateUPDATE(String updatePath)
focal_class.full_signature: @Override protected File[] generateUPDATE(String updatePath)
focal_class.identifier: generateUPDATE
focal_class.modifiers: @Override protected
focal_class.parameters: (String updatePath)
focal_class.return: File[]
focal_class.signature: File[] generateUPDATE(String updatePath)
focal_class.class_method_signature: InstancesQueryHandler.generateTripleStats(String taskID)
focal_class.full_signature: @Override public Model generateTripleStats(String taskID)
focal_class.identifier: generateTripleStats
focal_class.modifiers: @Override public
focal_class.parameters: (String taskID)
focal_class.return: Model
focal_class.signature: Model generateTripleStats(String taskID)
focal_class.class_method_signature: InstancesQueryHandler.setOutputFolder(String outputFolder)
focal_class.full_signature: public void setOutputFolder(String outputFolder)
focal_class.identifier: setOutputFolder
focal_class.modifiers: public
focal_class.parameters: (String outputFolder)
focal_class.return: void
focal_class.signature: void setOutputFolder(String outputFolder)
focal_class.superclass: extends AbstractWorkerQueryHandler
focal_method.body: public void setOutputFolder(String outputFolder) {
  		this.outputFolder = outputFolder;
  	}
focal_method.class_method_signature: InstancesQueryHandler.setOutputFolder(String outputFolder)
focal_method.full_signature: public void setOutputFolder(String outputFolder)
focal_method.identifier: setOutputFolder
focal_method.modifiers: public
focal_method.parameters: (String outputFolder)
focal_method.return: void
focal_method.signature: void setOutputFolder(String outputFolder)