CN102147818B - Test file compression method - Google Patents

Test file compression method Download PDF

Info

Publication number
CN102147818B
CN102147818B CN201110127104.5A CN201110127104A CN102147818B CN 102147818 B CN102147818 B CN 102147818B CN 201110127104 A CN201110127104 A CN 201110127104A CN 102147818 B CN102147818 B CN 102147818B
Authority
CN
China
Prior art keywords
data
test file
type
thumbnail
compression
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Expired - Fee Related
Application number
CN201110127104.5A
Other languages
Chinese (zh)
Other versions
CN102147818A (en
Inventor
张子枭
祁建华
张志勇
叶守银
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Sino IC Technology Co Ltd
Original Assignee
Sino IC Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Sino IC Technology Co Ltd filed Critical Sino IC Technology Co Ltd
Priority to CN201110127104.5A priority Critical patent/CN102147818B/en
Publication of CN102147818A publication Critical patent/CN102147818A/en
Application granted granted Critical
Publication of CN102147818B publication Critical patent/CN102147818B/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)

Abstract

The invention discloses a test file compression method which is used for compressing an original test file and comprises the following steps: setting a type module; searching the original test file line by line according to bytes; matching the data of the original test file and the type module so as to determine the type of the data of the original test file; and compressing the continuous data of the same type according to lines, and representing each compressed part with a thumbnail. The test file compression method is used for compressing the test file according to the type of the data andleads a browser to rapidly read the test file.

Description

The test file compression method
Technical field
The present invention relates to field tests, relate in particular to a kind of test file compression method.
Background technology
The capacity of the test file that the integrated circuit testing field produces is usually much larger than 2G, for example, VEC formatted file, WGL formatted file, ATP formatted file etc., adopt present browser (as UE) to be difficult to read the big capacity documents of this class, namely enable to read, reading speed is also very slow, and how making browser read jumbo test file fast is a urgent problem.
Summary of the invention
The object of the present invention is to provide a kind of test file compression method, by data type compression verification file, make browser read test file fast.
To achieve the above object, the invention provides a kind of test file compression method, be used for the original test file of compression, this compression method may further comprise the steps: type block is set; Search for described original test file line by line by byte, the data of described original test file and the type block of above-mentioned setting are mated, with the type of the data of determining described original test file; By row, data continuous, that type is identical are compressed, and characterized each compression section with thumbnail.
Above-mentioned test file compression method wherein, arranges type block according to the type of the data of text, the corresponding a kind of data type of type block, and described type block has defined the feature of its corresponding data type.
Above-mentioned test file compression method, wherein, described original test file is VEC formatted file, WGL formatted file or ATP formatted file etc.
Above-mentioned test file compression method wherein, when determining the type of data of described original test file, is determined according to the feature of the data type of described type block definition.
Above-mentioned test file compression method wherein, in the described original test file, if comprise polytype with the data of delegation, then compresses data continuous, that type is identical, and each compression section characterizes with a thumbnail; If all belong to same type with the data of delegation, then, characterize with a thumbnail with the data compression of this row together; If continuously the data of multirow all belong to same type, and the line number quantity of this continuous multirow is smaller or equal to a setting value, then, characterizes with a thumbnail with the data compression of this multirow together; If the data of multirow all belong to same type continuously, and the line number quantity of this continuous multirow is greater than above-mentioned setting value, then should be divided into many parts by continuous multirow, every part is compressed respectively, and each compression section characterizes with a thumbnail, wherein, every part of line number quantity that comprises is smaller or equal to above-mentioned setting value, and every part of row that comprises is continuous.
Above-mentioned test file compression method, wherein, described thumbnail comprises brief description, plus sige sign "+" and minus sign sign "-", described brief description is used for simply introducing the content of the corresponding compression section of this thumbnail, described plus sige sign "+" is used for opening the particular content of the corresponding compression section of this thumbnail, and described minus sign sign "-" is used for closing the particular content of the opened corresponding compression section of this thumbnail.
Test file compression method of the present invention according to data type, by the row original test file is compressed, and characterize each compression section with thumbnail, therefore, when using browser to read the detecting large volume file, do not need to read out the full content of test file is disposable, piecemeal reads selectively, and this will improve reading speed greatly.
Description of drawings
Test file compression method of the present invention is provided by following embodiment and accompanying drawing.
Fig. 1 is the process flow diagram of test file compression method of the present invention.
Embodiment
Below with reference to Fig. 1 test file compression method of the present invention is described in further detail.
Referring to Fig. 1, test file compression method of the present invention may further comprise the steps:
Step 1 arranges type block;
Type according to the data of general text (being the TXT file) arranges type block, normally, the content of text shows (being that text is made up of data of different types) by data of different types, for example, lteral data, character data, numerical data, time series data, name data, the programming language data, the data type that comprises according to general text arranges type block, for example, the lteral data module is set, the character data module, digital data modules, the time series data module, the name data module, the programming language data module;
The corresponding a kind of data type of type block, described type block has defined the feature of its corresponding data type;
Step 2 is searched for original test file line by line by byte, the type block that the data of original test file and step 1 arrange is mated, with the type of the data of determining described original test file;
Test file compression method of the present invention is considered as vector file with original test file, and each row of original test file all is considered as a vector, therefore, when determining the type of each data of original test file, searches for original test file line by line by byte;
Described original test file for example is VEC formatted file, WGL formatted file or ATP formatted file etc.;
Each data of original test file will be mated with described type block, to determine the type of each data, when determining the type of data of original test file, determine according to the feature of the data type of described type block definition;
Step 3 by row, is compressed data continuous, that type is identical, and is characterized each compression section with thumbnail;
In the described original test file, if the data with delegation comprise polytype, then to continuous, the data that type is identical are compressed, namely by data type and the position of arranging the data of this row are compressed, the data that are compressed together not only type are identical, and arrange continuously, each compression section characterizes with a thumbnail, for example, the data of certain delegation of one original test file are " test result of the 3rd group of specimen is 0111110011110 ", the data of this row comprise two types, first kind is lteral data, second kind is numerical data, and whole lteral datas that this row comprises are arranged continuously, the whole numerical datas that comprise are also arranged continuously, the whole lteral datas in this row " test result of the 3rd group of specimen is " are compressed together, and characterize this compression section with a thumbnail, whole numerical datas " 0111110011110 " in this row are compressed together, also characterize this compression section with a thumbnail;
If all belong to same type with the data of delegation, then, characterize with a thumbnail with the data compression of this row together;
If continuously the data of multirow all belong to same type, and the line number quantity of this continuous multirow is smaller or equal to a setting value, then, characterizes with a thumbnail with the data compression of this multirow together;
If the data of multirow all belong to same type continuously, and the line number quantity of this continuous multirow is greater than above-mentioned setting value, then should be divided into many parts by continuous multirow, every part is compressed respectively, and each compression section characterizes with a thumbnail, wherein, every part of line number quantity that comprises is smaller or equal to above-mentioned setting value, and every part of row that comprises is continuous, and for example, original test file has the numerical data of continuous 2,200,000 row, if the numerical data of these 2,200,000 row all is compressed together, capacity is bigger, and reading speed is slow, at this moment, can set each line number quantity of comprising of compression and be 500,000 row to the maximum, like this, the numerical data of these 2,200,000 row can be divided into 5 parts, and every part of line number quantity that comprises is all smaller or equal to 500,000 row, every part is compressed respectively, all use a thumbnail to characterize after every part of compression, after namely the numerical data of these 2,200,000 row is compressed through test file compression method of the present invention, be shown as 5 thumbnails.
Original test file is shown as the test file of being made up of thumbnail after adopting test file compression method compression of the present invention, that is to say, adopt the test file after test file compression method of the present invention compresses the particular content of test file not to be shown, but characterize compressed content with thumbnail one by one, because test file compression method of the present invention is considered as vector file with original test file, each row of original test file all is considered as a vector, therefore, test file compression method of the present invention compresses original test file by row, and the layout of the test file after the compression is identical with the layout of original test file;
Described thumbnail comprises brief description, plus sige sign "+" and minus sign sign "-", described brief description is used for simply introducing the content of the corresponding compression section of this thumbnail, described plus sige sign "+" is used for opening the particular content of the corresponding compression section of this thumbnail, described minus sign sign "-" is used for closing the particular content of the opened corresponding compression section of this thumbnail, because the test file after the compression does not show the particular content of test file, therefore, when using the test file after browser is read compression, can understand the content of the corresponding compression section of this thumbnail earlier by the brief description of thumbnail, the plus sige sign "+" of clicking this thumbnail again just can be opened the particular content of the corresponding compression section of this thumbnail, clicks the minus sign sign "-" of this thumbnail and just can close opened particular content.
Test file compression method of the present invention according to data type, by the row original test file is compressed, and characterize each compression section with thumbnail, therefore, the mode that can adopt part to read reads the test file after the compression, that is to say, when using browser to read the detecting large volume file, do not need to read out the full content of test file is disposable, piecemeal reads selectively, and this will improve reading speed greatly.
Test file compression method of the present invention arranges type block according to the data type of text, when using the test file after browser reads compression, the display mode of the test file after the compression is identical with the display mode of text, and can the test file after the compression be carried out and the text identical operations, for example, copy, paste, select, revise etc.

Claims (4)

1. a test file compression method is used for the original test file of compression, it is characterized in that, may further comprise the steps:
Type block is set;
Search for described original test file line by line by byte, the data of described original test file and the type block of above-mentioned setting are mated, with the type of the data of determining described original test file;
By row, data continuous, that type is identical are compressed, and characterized each compression section with thumbnail, wherein,
In the described original test file, if comprise polytype with the data of delegation, then data continuous, that type is identical are compressed, each compression section characterizes with a thumbnail; If all belong to same type with the data of delegation, then, characterize with a thumbnail with the data compression of this row together; If continuously the data of multirow all belong to same type, and the line number quantity of this continuous multirow is smaller or equal to a setting value, then, characterizes with a thumbnail with the data compression of this multirow together; If the data of multirow all belong to same type continuously, and the line number quantity of this continuous multirow is greater than above-mentioned setting value, then should be divided into many parts by continuous multirow, every part is compressed respectively, and each compression section characterizes with a thumbnail, wherein, every part of line number quantity that comprises is smaller or equal to above-mentioned setting value, and every part of row that comprises is continuous;
Described thumbnail comprises brief description, plus sige sign "+" and minus sign sign "-", described brief description is used for simply introducing the content of the corresponding compression section of this thumbnail, described plus sige sign "+" is used for opening the particular content of the corresponding compression section of this thumbnail, and described minus sign sign "-" is used for closing the particular content of the opened corresponding compression section of this thumbnail.
2. test file compression method as claimed in claim 1 is characterized in that, according to the type of the data of text type block is set, the corresponding a kind of data type of type block, and described type block has defined the feature of its corresponding data type.
3. test file compression method as claimed in claim 1 is characterized in that, described original test file is VEC formatted file, WGL formatted file or ATP formatted file.
4. test file compression method as claimed in claim 2 is characterized in that, when determining the type of data of described original test file, determines according to the feature of the data type of described type block definition.
CN201110127104.5A 2011-05-17 2011-05-17 Test file compression method Expired - Fee Related CN102147818B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201110127104.5A CN102147818B (en) 2011-05-17 2011-05-17 Test file compression method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201110127104.5A CN102147818B (en) 2011-05-17 2011-05-17 Test file compression method

Publications (2)

Publication Number Publication Date
CN102147818A CN102147818A (en) 2011-08-10
CN102147818B true CN102147818B (en) 2013-09-25

Family

ID=44422083

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201110127104.5A Expired - Fee Related CN102147818B (en) 2011-05-17 2011-05-17 Test file compression method

Country Status (1)

Country Link
CN (1) CN102147818B (en)

Families Citing this family (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102571820B (en) * 2012-02-21 2015-11-25 华为技术有限公司 For transmitting the method for data, compression service device and terminal
CN105512305B (en) * 2015-12-14 2019-04-26 北京奇虎科技有限公司 A kind of document compression, document decompressing method and device based on serializing
CN105335531B (en) * 2015-12-14 2019-06-04 北京奇虎科技有限公司 A kind of compression of document, decompressing method and device
CN107835158B (en) * 2017-10-18 2021-06-18 中国银行股份有限公司 Method and device for transmitting interactive data under SNA network system

Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1405705A (en) * 2001-08-20 2003-03-26 北京九州计算机网络有限公司 Intelligent compression method for file of computer

Patent Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1405705A (en) * 2001-08-20 2003-03-26 北京九州计算机网络有限公司 Intelligent compression method for file of computer

Also Published As

Publication number Publication date
CN102147818A (en) 2011-08-10

Similar Documents

Publication Publication Date Title
CN104504109B (en) Image searching method and device
CN101246499B (en) Network information search method and system
US20090276694A1 (en) System and Method for Document Display
CN102456054B (en) A kind of searching method and system
CN102147818B (en) Test file compression method
CN107704539A (en) The method and device of extensive text message batch structuring
CN112380838A (en) Patent file intelligent indexing method and device based on big data
CN110008309A (en) A kind of short phrase picking method and device
CN107861753A (en) APP generations index, search method and system and readable storage medium storing program for executing
CN104462268B (en) A kind of method and system of html document information extraction expression formula
CN106897289B (en) Information search optimization method and device
CN103942264A (en) Method and device for pushing webpages containing news information
Li et al. Improving relevance judgment of web search results with image excerpts
CN110275938B (en) Knowledge extraction method and system based on unstructured document
KR20040017824A (en) Information search system which it follows in the Pattern-Forecast-Analysis to use the pattern of the web document and list
CN108228802B (en) Recommendation method and device for input association
WO2015143911A1 (en) Method and device for pushing webpages containing time-relevant information
KR102081867B1 (en) Method for building inverted index, method and apparatus searching similar data using inverted index
CN114115831A (en) Data processing method, device, equipment and storage medium
CN109165297B (en) Universal entity linking device and method
CN103488643B (en) A kind of method and device browsing cloud massive data
CN113407678A (en) Knowledge graph construction method, device and equipment
CN105447194A (en) File searching method and terminal
CN109643306B (en) Semiconductor element searching method using algorithm for removing last letter
CN107463570B (en) Document retrieval/analysis method and device

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C14 Grant of patent or utility model
GR01 Patent grant
CF01 Termination of patent right due to non-payment of annual fee

Granted publication date: 20130925

CF01 Termination of patent right due to non-payment of annual fee