public AbstractFile newFile(final FileType fileType, final String filePath) {
        return isIndex(fileType) ? new IndexFile(filePath, this.storeOptions.getIndexFileSize()) : //
            isConf(fileType) ? new SegmentFile(filePath, this.storeOptions.getConfFileSize()) : //
                new SegmentFile(filePath, this.storeOptions.getSegmentFileSize());
    }
Create new file(index/segment/conf)
jraft-extension/java-log-storage-impl/src/main/java/com/alipay/sofa/jraft/storage/factory/LogStoreFactory.java