@Override public long fileModified(String name) throws IOException { return directory.fileModified(name); }
@Override public long fileModified(String name) throws IOException { return directory.fileModified(name); }
/** * Returns the time the index in the named directory was last modified. * * <p>Synchronization of IndexReader and IndexWriter instances is * no longer done via time stamps of the segments file since the time resolution * depends on the hardware platform. Instead, a version number is maintained * within the segments file, which is incremented everytime when the index is * changed.</p> * * @deprecated Replaced by {@link #getCurrentVersion(File)} * */ public static long lastModified(File directory) throws IOException { return FSDirectory.fileModified(directory, "segments"); }
public Object doBody(String segmentFileName) { return new Long(FSDirectory.fileModified(fileDirectory, segmentFileName)); } }.run()).longValue();
public Object doBody(String segmentFileName) { return new Long(FSDirectory.fileModified(fileDirectory, segmentFileName)); } }.run()).longValue();