Examples of touchFile()


Examples of com.alimama.mdrill.hdfsDirectory.FileSystemDirectory.touchFile()

        Configuration conf = getConf();
        Path p=this.hdfsLinks.get(name);
       
        try {
        FileSystemDirectory dir=new FileSystemDirectory(FileSystem.get(conf), p.getParent(), false, conf);
        dir.touchFile(p.getName());
      } catch (IOException e) {
        SolrCore.log.error("hdfs",e);
      }
      }
      if(!this.links.containsKey(name))
View Full Code Here

Examples of org.apache.lucene.store.Directory.touchFile()

         long lastModifiedDate = dir.fileModified(fileName);

         Thread.sleep(1);

         dir.touchFile(fileName);
         assert lastModifiedDate != dir.fileModified(fileName);
      } finally {
         if (dir != null) dir.close();
      }
   }
View Full Code Here

Examples of org.apache.lucene.store.Directory.touchFile()

         dir = DirectoryBuilder.newDirectoryInstance(cache, cache, cache, INDEX_NAME).chunkSize(BUFFER_SIZE).create();
         long lastModifiedDate = dir.fileModified(fileName);
         AssertJUnit.assertEquals(0L, lastModifiedDate);
         Thread.sleep(1);

         dir.touchFile(fileName);
         AssertJUnit.assertEquals(lastModifiedDate, dir.fileModified(fileName));
      } finally {
         if (dir != null) dir.close();
      }
   }
View Full Code Here

Examples of org.apache.lucene.store.Directory.touchFile()

         long lastModifiedDate = dir.fileModified(fileName);

         Thread.sleep(100);

         dir.touchFile(fileName);
         assert lastModifiedDate != dir.fileModified(fileName);
      } finally {
         if (dir != null) dir.close();
      }
   }
View Full Code Here

Examples of org.apache.lucene.store.Directory.touchFile()

         dir = new InfinispanDirectory(cache, "index");

         long lastModifiedDate = dir.fileModified(fileName);
         Thread.sleep(100);

         dir.touchFile(fileName);
         AssertJUnit.assertEquals(lastModifiedDate, dir.fileModified(fileName));
      } finally {
         dir.close();
      }
   }
View Full Code Here

Examples of org.apache.lucene.store.Directory.touchFile()

         long lastModifiedDate = dir.fileModified(fileName);

         Thread.sleep(100);

         dir.touchFile(fileName);
         assert lastModifiedDate != dir.fileModified(fileName);
      } finally {
         if (dir != null) dir.close();
      }
   }
View Full Code Here

Examples of org.apache.lucene.store.Directory.touchFile()

         dir = DirectoryBuilder.newDirectoryInstance(cache, cache, cache, "indexName").create();

         long lastModifiedDate = dir.fileModified(fileName);
         Thread.sleep(100);

         dir.touchFile(fileName);
         AssertJUnit.assertEquals(lastModifiedDate, dir.fileModified(fileName));
      } finally {
         dir.close();
      }
   }
View Full Code Here

Examples of org.apache.lucene.store.Directory.touchFile()

         long lastModifiedDate = dir.fileModified(fileName);

         Thread.sleep(100);

         dir.touchFile(fileName);
         assert lastModifiedDate != dir.fileModified(fileName);
      } finally {
         if (dir != null) dir.close();
      }
   }
View Full Code Here

Examples of org.apache.lucene.store.Directory.touchFile()

         dir = new InfinispanDirectory(cache, "index");

         long lastModifiedDate = dir.fileModified(fileName);
         Thread.sleep(100);

         dir.touchFile(fileName);
         AssertJUnit.assertEquals(lastModifiedDate, dir.fileModified(fileName));
      } finally {
         dir.close();
      }
   }
View Full Code Here

Examples of org.apache.lucene.store.Directory.touchFile()

         long lastModifiedDate = dir.fileModified(fileName);

         Thread.sleep(1);

         dir.touchFile(fileName);
         assert lastModifiedDate != dir.fileModified(fileName);
      } finally {
         if (dir != null) dir.close();
      }
   }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.