Examples of touchFile()


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
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.