介绍了DBF表的文件格式和基于自索引的全文查询算法FM-index。针对DBF文件同时包含二进制文件头和纯文本数据记录的特点,以及对查询结果的特定要求,扩充了现有的FM-index算法,使其支持对DBF文件的压缩查询。测试结果表明,虽然FM-index在压缩/解压时间上与WinRAR仍有一段差距,但是FM-index对压缩查询功能的支持大大提高了文件的查询性能。
Based on the discussion of DBF table format and FM-index algorithm,extended the compressing and searching functions of FM-index for DBF tables.Considering the features of DBF tables,developed a tool to search DBF tables on compressed status.Experimental data shows that although the tool spends more time to compress and uncompress than WinRar,it can search DBF tables much more quickly.