public class UUIDSimpleFileStore extends AbstractSimpleFileStore
DEFAULT_STORE_NAME| 构造器和说明 |
|---|
UUIDSimpleFileStore(File rootPath) |
UUIDSimpleFileStore(String strRootPath) |
| 限定符和类型 | 方法和说明 |
|---|---|
protected String |
generateKey()
使用UUID作为文件Key
(non-Javadoc)
|
protected String |
getRelativePathByKey(String key)
基于uuid的首字母建立目录层级,方便以后用uuid定位查找文件
目前路径使用uuid的前两个字符分别建立两级目录,
即每级目录名为0~F共16个,所有文件总共分配在256个目录下存储。
|
deleteFile, exist, getFile, getFileAsStream, getFileSize, putFile, putFileAsStream, searchFullText, searchFullTextWithExcerpt, setLoginAccount, supportFullTextSearchcheckName, putFile, putFile, putFileAsStream, putFileAsStreamclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitputFile, putFile, putFileAsStream, putFileAsStreampublic UUIDSimpleFileStore(File rootPath)
public UUIDSimpleFileStore(String strRootPath)
protected String getRelativePathByKey(String key) throws FileStoreException
key - uuidFileStoreExceptionAbstractSimpleFileStore.getRelativePathByKey(java.lang.String)protected String generateKey()
Copyright © 2018. All rights reserved.