コード例 #1
0
ファイル: DocMaker.java プロジェクト: bpgriner01/pylucene
 /** Reset inputs so that the test run would behave, input wise, as if it just started. */
 public synchronized void resetInputs() throws IOException {
   source.printStatistics("docs");
   // re-initiate since properties by round may have changed.
   setConfig(config);
   source.resetInputs();
   numDocsCreated.set(0);
   resetLeftovers();
 }
コード例 #2
0
 @Override
 public void resetInputs() throws IOException {
   synchronized (lock) {
     super.resetInputs();
     close();
     nextFile = 0;
     iteration = 0;
   }
 }
コード例 #3
0
ファイル: LineDocSource.java プロジェクト: PATRIC3/p3_solr
 @Override
 public void resetInputs() throws IOException {
   super.resetInputs();
   openFile();
 }
コード例 #4
0
 @Override
 public synchronized void resetInputs() throws IOException {
   super.resetInputs();
   inputFiles = new Iterator(dataDir);
   iteration = 0;
 }
コード例 #5
0
 @Override
 public void resetInputs() throws IOException {
   super.resetInputs();
   is = getInputStream(file);
 }