lucene-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
Subject DO NOT REPLY [Bug 18931] New: - Add lastModified() method to Directory
Date Fri, 11 Apr 2003 03:14:30 GMT
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG 
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://nagoya.apache.org/bugzilla/show_bug.cgi?id=18931>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND 
INSERTED IN THE BUG DATABASE.

http://nagoya.apache.org/bugzilla/show_bug.cgi?id=18931

Add lastModified() method to Directory

           Summary: Add lastModified() method to Directory
           Product: Lucene
           Version: unspecified
          Platform: Other
        OS/Version: Other
            Status: NEW
          Severity: Enhancement
          Priority: Other
         Component: Store
        AssignedTo: lucene-dev@jakarta.apache.org
        ReportedBy: Eric.Isakson@sas.com


Moved from todo.xml:
Add lastModified() method to Directory, FSDirectory and RamDirectory, so it 
could be cached in IndexWriter/Searcher manager.

I'm not sure what is being asked for here. IndexReader implements:

  /** Returns the time the index in this directory was last modified. */
  public static long lastModified(Directory directory) throws IOException {
    return directory.fileModified("segments");
  }

This appears to just be asking to have Directory implement:

  /** Returns the time this directory was last modified. */
  public abstract long lastModified() throws IOException;

And FSDirectory something like:

  /** Returns the time this directory was last modified. */
  public long lastModified() throws IOException {
    return fileModified("segments");
  }

and something similar in RAMDirectory (although that one would be a little 
different since its fileModified implementation returns the current time).

Is there more to this that I'm missing?

---------------------------------------------------------------------
To unsubscribe, e-mail: lucene-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: lucene-dev-help@jakarta.apache.org


Mime
View raw message