摘要
针对当前实验室检测报告的生成过程存在时间长和易出现偶然性差错等问题,提出基于栅栏因子的通用实验原始记录文件自动抓取技术.先通过计算文件整体hash值准确过滤当日已读取文件,再使用改进的内容可变长度分块(content-defined chunking,CDC)算法进行文本分块.该CDC算法改进之处主要体现在:设定滑动窗口下一单位为行与行间距之和的高度以及滑动窗口内字节大小的范围.待文本分块结束后,使用基于数据块索引的字符串匹配算法完成匹配.该字符串匹配算法结合数据块索引表构建模式串与数据块的映射关系,之后由模式串Pn通过数据块索引表快速匹配到相应数据块.使用海关实验室的实验原始记录文件进行测试,实验证明,该算法的内存占用量少且分块吞吐量更大.
Aiming at the problems such as long time and occasional errors in the generation process of the current laboratory test report,we present an automatic capture technology of general original experimental records based on fence factor.First,the read files of the day are accurately filtered by calculating the overall Hash value of file.Then,we use the improved content-defined chunking(CDC)algorithm for chunking.The improvement of CDC algorithm includes setting the unit of the sliding window as the spacing of between two lines and setting the range of the byte size in the sliding window.When the text block is completed,a string matching algorithm based on pattern string is used to complete the matching process.The string matching algorithm constructs the mapping relationship between the pattern string and data block in data block index table,and then quickly matches the pattern string Pn to corresponding data block through the data block index table.The original experimental record files of customs laboratory are used for testing.The algorithm occupies the least memory and has the largest chunking throughput.
作者
蔡伊娜
陈新
覃志武
王歆
包先雨
彭锦学
林泳奇
李俊霖
CAI Yina;CHEN Xin;QIN Zhiwu;WANG Xin;BAO Xianyu;PENG Jinxue;LIN Yongqi;LI Junlin(Shenzhen Academy of Inspection and Quarantine,Shenzhen 518045,Guangdong Province,P.R.China;Food Inspection and Quarantine Center,Shenzhen Customs,Shenzhen 518045,Guangdong Province,P.R.China;Information Center,Shenzhen Customs,Shenzhen 518045,Guangdong Province,P.R.China)
出处
《深圳大学学报(理工版)》
CAS
CSCD
北大核心
2022年第5期509-514,共6页
Journal of Shenzhen University(Science and Engineering)
基金
国家重点研发计划资助项目(2019YFC1605504,2018YFC1603601)。
关键词
计算机应用
数据块
模式串
字符串匹配
实验原始记录
内容可变长度分块算法
实验室检测报告
computer application
data block
pattern string
string matching
original experimental record
content-defined chunking algorithm
generation of test reports