简体   繁体   中英

Purpose / importance of the file modification date methods in Lucene's Directory?

I've built a Lucene Directory implementation for jdbm , an embedded Java database. Part of the Directory API are two methods related to "file" modification dates: touchFile and fileModified ( javadoc ). My question is, what is the purpose of these methods? I've searched the entire Lucene core source tree, and found no usage of these methods at all.

FWIW, my interest is the fact that I'd like to not bother tracking mod dates, given that I'm using an embedded datastore, and such metadata isn't "free" as it is in a regular filesystem.

I confirmed via the lucene-users mailing list that the methods in question are not used by any Lucene codebase, but that it's possible (though very unlikely, it seems to me) that applications using one's Directory implementation would expect those methods to function properly. shrug

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM