CN102479244A - Searching system and method capable of temporarily storing target data and unsearched data by container - Google Patents
Searching system and method capable of temporarily storing target data and unsearched data by container Download PDFInfo
- Publication number
- CN102479244A CN102479244A CN2010105825820A CN201010582582A CN102479244A CN 102479244 A CN102479244 A CN 102479244A CN 2010105825820 A CN2010105825820 A CN 2010105825820A CN 201010582582 A CN201010582582 A CN 201010582582A CN 102479244 A CN102479244 A CN 102479244A
- Authority
- CN
- China
- Prior art keywords
- data
- container
- target data
- search
- module
- 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.)
- Pending
Links
Images
Landscapes
- Information Retrieval, Db Structures And Fs Structures Therefor (AREA)
Abstract
The invention discloses a searching system and a method capable of temporarily storing target data and unsearched data by a container. By technical means of searching out project data while searching the target data, and storing the searched project data in the container, and then, directly obtaining the target data from the container when the container contains the searched target data, the system and the method realize the technical effects of reducing the waiting time and reducing the resource used by a search program.
Description
Technical field
The present invention relates to a kind of data searching system and method thereof, be meant a kind of especially with the temporary target data of container and the system of searching and the method thereof of not searching data.
Background technology
The scheme of data search mainly is to accomplish through database at present, and in fact, the scheme of not using database to accomplish data search is arranged also, for example uses one or more file logging data, and in those files, carries out data search.
No matter be to use database, file or other storing modes to come record data that the function of data search is provided; The function of data search has occupied the plenty of time in the program implementation process; That is to say; If application program need carry out data search, then application program is in the process of carrying out, and the part of spended time is to go out needed data at the function lookup of waiting for data search.
Some data search program, search program of the search program of words lexical or textual analysis, web data etc. for example, data search is the function that the most often is used.And these data search programs are being searched when offering the data that the user browses; Produce the demand that a plurality of related datas are searched easily simultaneously; So; The user need wait by the time the demand of all data search just can be browsed complete data after all accomplishing, and this time of often causing the user to wait for exceeds the acceptable scope.
In fact; These related datas are searched the demand data of the different field in identical data table or the file often; That is to say; The user browses in the process of partial data in wait, and the data search program can be carried out several to identical data table or file and searched, and such situation has spent the unwanted time.
In sum, can know that there has been the problem of repeatedly searching a plurality of related datas and causing waits for too long in prior art since the midium or long term always, therefore be necessary to propose improved technological means, solve this problem.
Summary of the invention
Because there is the problem of repeatedly searching a plurality of related datas and causing waits for too long in prior art, the present invention is a kind of with the temporary target data of container (container) and the system of searching and the method thereof of not searching data, wherein in providing:
Provided by the present invention with temporary target data of container and the system of searching of not searching data; At least comprise: the container judge module, when being used to target data and being searched, judge whether the container that stores target data is established; Wherein, container comprises at least one element; Container is set up module, after being used to the container judge module and judging that container is not established, sets up container; The data search module after being used to container and setting up module and set up container, is searched the project data that is stored in each element, and wherein, one of them is target data for a project data; Data storage module is in order to store projects data to each element; Data acquisition module is in order to by obtaining this target data in the container.
Provided by the present invention with the temporary target data of container with do not search the lookup method of data, its step comprises at least: when target data is searched, judge whether the container that stores target data is established, and container comprises at least one element; After judging that container has been established, by obtaining target data in the container; After judging that container is not established, carry out: set up this container, search the project data that is stored in each element, one of them be that target data, storage projects data are to each element, by obtaining step such as target data in the container for a project data.
System and method for provided by the present invention as above, and the difference between the prior art is that the present invention through when searching target data, finds out project data in the lump; And the project data that finds out is stored in the container; Afterwards, when container comprises the target data of being searched, directly by obtaining target data in the container; So as to solution existing in prior technology problem, and can reach the technological effect that reduces the stand-by period and reduce the employed resource of search program.
Description of drawings
Fig. 1 keeps in target data and does not search the system architecture diagram of data with container for what the present invention carried.
Fig. 2 keeps in target data and does not search the lookup method process flow diagram of data with container for what the present invention carried.
The data transfer sequential chart that Fig. 3 carries for the embodiment of the invention.
The procedure code synoptic diagram of the data transmission object that Fig. 4 carries for the embodiment of the invention.
[main element symbol description]
110 internal memories, 120 container judge modules
130 containers are set up module 150 data search modules
160 data storage modules, 170 data acquisition modules
300 procedure codes, 400 databases
500 search programs
Embodiment
Below will cooperate graphic and embodiment specifies characteristic of the present invention and embodiment; Content is enough to make any those skilled in the art can make much of the applied technological means of technical solution problem of the present invention easily and implements according to this, realizes the attainable effect of the present invention whereby.
The present invention can be when needs be searched target data; Find out target data and the associated data relevant with target data; And use specific container (container) to keep in target data and associated data; Make when follow-up needs are searched associated data, can be directly by obtaining in the container, and do not need to search once more.Wherein, target data and associated data are stored in the different field of the same notes records (record) in same tables of data or the same file usually, but the present invention is not as limit.
The target data that the present invention carried is the data of user's desire inquiry; For example; When the user searched the lexical or textual analysis data of words, data such as the preset diacritic that comprises, part of speech, comment, example sentence can be the target datas that the present invention carries in the lexical or textual analysis data, and for example; When the user got the field that square (checkbox) selects to tables of data, to search through pulldownmenus or nuclear, the data in the selecteed field were the target data that the present invention puies forward.
The container that the present invention carried is done so that the mode of object (object) is real usually, and for example (Data Transfer Object, DTO), or other users are from the object of ordering etc. for the data transmission object.Definition has one or more elements (elememt) in the container; Each element has an element term; And an element can store the data of a kind of data type (data type); Data of the data of word string (string) type, integer (integer) type etc. for example, but the present invention is not as limit.
What deserves to be mentioned is; Container is man-to-man corresponding relation with the tables of data or the file that store target data/associated data; That is to say; In the present invention to the tables of data that stores target data/associated data or ff target data and associated data; Target data and the associated data that can use corresponding containers store to be found out, for example, after the present invention can search target data and search associated data by " code " field down to " ID " field in the tables of data " Card "; Use " ID " element in the container " CardForm " corresponding to store the target data that is found out and use " code " element in the container " CardForm " to store the associated data that is found out, but the present invention is not as limit with tables of data " Card ".
The present invention was carried with the system architecture diagram of not searching the system of data System Operation of the present invention is described with the temporary target data of container with " Fig. 1 " in following elder generation.Shown in " Fig. 1 ", system of the present invention contains container judge module 120, container is set up module 130, data search module 150, data storage module 160 and data acquisition module 170.
Container is set up module 130 and is responsible for after container judge module 120 judges do not set up the container that stores target data as yet in the internal memory 110, in internal memory 110, setting up the container that stores target data.
What is worth mentioning is; If the stored associated data of element that container comprised and target data are in different tables of data; Data search module 150 can be according to the element term of setting up in advance and the corresponding relation of the field title in tables of data and the tables of data; Revise the query grammar originally be used for carrying out database lookup, make to find out the project data that is stored in all elements that container comprises after being performed through the query grammar of revising.For example; Comprise element of " explain " field in the storage data table " En2Ch " and the element of " explain " field in the tables of data " En2En " in the container; So; When original query grammar was " select explain from En2Ch ", data search module 150 can utilize in advance the correspondence table of setting up to find the connection relationship of tables of data " En2Ch " and tables of data " En2En ", supposed that connection relationship is that " word " in " word " field and the tables of data " En2En " in the tables of data " En2Ch " is identical; Then data search module 150 just can be revised as original query grammar " select En2Ch.explain; En2En.explain from En2Ch, En2En where En2Ch.word=En2En.word ", so; After carrying out, can find out the project data of all elements that can be stored into container through the query grammar of revising.
Data storage module 160 is responsible for that the project datas that data search module 150 is found out are stored into container and is set up in each element of the container that module 130 set up.Generally speaking, data storage module 160 can target data and the associated data that the field title is corresponding with the element term of element be stored into to element.Wherein, for example the field title is identical with element term for the corresponding relation of field title and element term, or element term comprises field title etc., but the present invention is not as limit.
Then explain orally operation system of the present invention and method, and please the present invention carried with the method flow diagram and " Fig. 3 " data transfer sequential chart that the present invention carried of the temporary target data of container with the lookup method of not searching data with reference to " Fig. 2 " with an embodiment.In the present embodiment, suppose that the present invention is applied in the search program 500 of words lexical or textual analysis, but the present invention is not as limit.
When the user did not understand the connotation of words " example ", the user can import words " example " in the user interface that comprises words lexical or textual analysis search program of the present invention, so as to searching the comment (step 220) of words " example ".In the present embodiment, the comment of words " example " is the target data that the present invention puies forward, but the target data that the present invention carried is not exceeded with the comment of words.
After the user imported words " example ", container judge module 120 can judge whether the container that stores target data has been established in internal memory 110 (step 230).In the present embodiment; The search program 500 of supposing the words lexical or textual analysis uses a data transmission object that is called " WordDTO " as container, and data transmission object " WordDTO " comprises " word ", " part_of_speech ", " pronunciation ", " explain ", " sentence ", " variation ", " synonymous_word " and elements such as " antisense_word ".So, container judge module 120 can be judged the data transmission object " WordDTO " that whether exists element " word " to store words " example " in the internal memory 110.Wherein, the procedure code 300 of data transmission object " WordDTO " is shown in " Fig. 4 ", but the present invention is not as limit.
If container judge module 120 judges that the container that stores target data has been established in internal memory 110; In the present embodiment; Just container judge module 120 is judged the data transmission object " WordDTO " that has had use element " word " storage words " example " in the internal memory 110, and then data acquisition module 170 can be directly by obtaining target data (step 280) in the container.In the present embodiment; Data acquisition module 170 can be directly stores the comment that reads out words " example " in the element " explain " of data transmission object " WordDTO " of words " example " by element " word ", makes the user interface of search program 500 of words lexical or textual analysis can demonstrate the comment of words " example ".
Otherwise; When container judge module 120 is judged the container of setting up the storage target data in the internal memory 110; In the present embodiment; Just container judge module 120 is judged the data transmission object " WordDTO " that does not have use element " word " storage words " example " in the internal memory 110, and then container is set up module 130 and can in internal memory 110, be set up container (step 250).In the present embodiment, container is set up module 130 can be set up the lexical or textual analysis data that can store words " example " in internal memory 110 data transmission object " WordDTO ".
After container was set up module 130 and set up container (step 250), data search module 150 can be searched the project data (step 260) that can be stored in the element.In the present embodiment; Tentation data is searched the database 400 that module 150 can be wired to far-end; And transmission query statement to database 400; So as in the tables of data that stores words, searching the project datas such as phonetic symbol, part of speech, comment, example sentence, change type, synonym and antonym of words " example "; Wherein, the comment of words " example " is the target data that the present invention puies forward, and phonetic symbol, part of speech, example sentence, change type, synonym and the antonym of words " example " is the associated data that the present invention carried.
After data search module 150 was searched the project data (step 260) that is stored in the element, data storage module 160 can save project data to container be set up in the element of the container that module 130 set up (step 270).In the present embodiment; Data storage module 160 can be compared the field title of the phonetic symbol, part of speech, comment, example sentence, change type, synonym and the antonym that store words " example " in the tables of data and the element term of the element that data transmission object " WordDTO " comprises; And the data in each field are stored into respectively in the field title element identical with element term; That is to say; If tables of data is called phonetic symbol, part of speech, explanation, example sentence, change type, synonym and the antonym of the field storage words " example " of " part_of_speech ", " pronunciation ", " explain ", " sentence ", " variation ", " synonymous_word " and " antisense_word " respectively with field name; Then phonetic symbol, part of speech, explanation, example sentence, change type, synonym and the antonym of words " example " be in " part_of_speech " that be stored container respectively, " pronunciation ", " explain ", " sentence ", " variation ", " synonymous_word " and the elements such as " antisense_word ", but data storage module 160 does not exceed the data storing of each field to the mode in each element with above-mentioned.
Set up in the element of the container that module 130 set up after (step 270) at data storage module 160 save project data to containers, data acquisition module 170 can be set up in the container that module 130 set up by container and obtain target data (step 280).In the present embodiment; Data acquisition module 170 can store the comment that reads out words " example " in the element " explain " of data transmission object " WordDTO " of words " example " by element " word ", makes the user interface of words lexical or textual analysis search program can demonstrate the comment of words " example ".
Then; If the user desires to search the synonym (step 220) of words " example "; Then container judge module 120 will be judged and set up the synon data transmission object " WordDTO " that stores words " example " in the internal memory 110; So; Data acquisition module 170 just can be directly obtains target data (step 280) in the element " synonymous word " by the stored data transmission object " WordDTO " of internal memory 110, and just the synonym of words " example " makes the search program 500 of words lexical or textual analysis not need to search once more the synonym that just can in the user interface, show words " example ".
In sum; But the difference between knowledge capital invention and the prior art is to have when searching target data; Find out project data in the lump, and the project data that finds out is stored in the container, afterwards; When container comprises the target data of being searched; Directly by the technological means of obtaining target data in the container, can solve by this technological means that prior art is existing repeatedly searches a plurality of related datas and cause the problem of waits for too long, and then reach the technological effect that reduces the stand-by period and reduce the employed resource of search program.
Moreover; Of the present invention with the temporary target data of container with do not search the lookup method of data; Can be implemented in the combination of hardware, software or hardware and software, the dispersing mode of also can be in computer system realizing or intersperse among with different elements the computer system of several interconnected with centralized system is realized.
Though embodiment provided by the present invention as above, described content is not in order to direct qualification scope of patent protection of the present invention.Those skilled in the art under any the present invention under the prerequisite that does not break away from disclosed spirit of the present invention and scope, do a little change retouching to reaching of enforcement of the present invention in form on the details, all belong to scope of patent protection of the present invention.Scope of patent protection of the present invention, still must with appending claims the person of being defined be as the criterion.
Claims (8)
- One kind with the temporary target data of container with do not search the lookup method of data, it is characterized in that this lookup method comprises the following step at least:When a target data is searched, judge whether a container that stores this target data is established, and this container comprises at least one element;After judging that this container has been established, by obtaining this target data in this container; AndAfter judging that this container is not established, carry out the following step:Set up this container;Search projects data that are stored in this element respectively, one of them is this target data for those project datas;Store respectively in this project data to this element respectively; AndBy obtaining this target data in this container.
- 2. as claimed in claim 1 with the temporary target data of container with do not search the lookup method of data; It is characterized in that; This searches the step that is stored in projects data in this element respectively for to file that stores this target data or tables of data, searching this target data and at least one associated data relevant with this target data, this storage respectively this project data extremely respectively the step in this element be that stored word name section this target data corresponding with the element term of those elements reaches respectively this associated data to those elements.
- 3. as claimed in claim 1 with the temporary target data of container with do not search the lookup method of data; It is characterized in that; This is searched the step that is stored in projects data in this element respectively and is those elements of detecting, and searches respectively this project data corresponding with those elements.
- 4. as claimed in claim 1 with the temporary target data of container with do not search the lookup method of data, it is characterized in that this searches the step that is stored in respectively this project data in this element respectively for to those project datas of remote data library lookup.
- 5. one kind with temporary target data of container and the system of searching of not searching data, it is characterized in that this is searched system and comprises at least:One container judge module when being used to a target data and being searched, judges whether a container that stores this target data is established, and wherein, this container comprises at least one element;One container is set up module, after being used to this container judge module and judging that this container is not established, sets up this container;One data search module after being used to this container and setting up module and set up this container, is searched projects data that are stored in this element respectively, and wherein, one of them is this target data for those project datas;One data storage module is in order to store respectively in this project data to this element respectively; AndOne data acquisition module is in order to by obtaining this target data in this container.
- 6. as claimed in claim 5 with temporary target data of container and the system of searching of not searching data; It is characterized in that; This project data comprises this target data and at least one associated data relevant with this target data; This data search module be to file that stores this target data or tables of data, search this target data and with this associated data respectively, this data storage module is that stored word name section this target data corresponding with the element term of those elements reaches respectively this associated data to those elements.
- 7. as claimed in claim 5 with temporary target data of container and the system of searching of not searching data, it is characterized in that this data search module is more in order to detect those elements that this container comprises, so as to searching respectively this project data corresponding with those elements.
- 8. as claimed in claim 5 with temporary target data of container and the system of searching of not searching data, it is characterized in that this data search module is to those project datas of remote data library lookup.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN2010105825820A CN102479244A (en) | 2010-11-30 | 2010-11-30 | Searching system and method capable of temporarily storing target data and unsearched data by container |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN2010105825820A CN102479244A (en) | 2010-11-30 | 2010-11-30 | Searching system and method capable of temporarily storing target data and unsearched data by container |
Publications (1)
Publication Number | Publication Date |
---|---|
CN102479244A true CN102479244A (en) | 2012-05-30 |
Family
ID=46091892
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN2010105825820A Pending CN102479244A (en) | 2010-11-30 | 2010-11-30 | Searching system and method capable of temporarily storing target data and unsearched data by container |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN102479244A (en) |
Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101021875A (en) * | 2007-03-22 | 2007-08-22 | 金蝶软件(中国)有限公司 | Object-oriented data bank access method and system |
CN101067820A (en) * | 2007-06-08 | 2007-11-07 | 北京大学 | Method for prefetching object |
CN101576921A (en) * | 2009-06-15 | 2009-11-11 | 用友软件股份有限公司 | Data query system and data query engine device |
CN101582079A (en) * | 2009-06-23 | 2009-11-18 | 用友软件股份有限公司 | Object query method and device |
CN101639839A (en) * | 2008-07-30 | 2010-02-03 | 中兴通讯股份有限公司 | Method for searching multi-archive file based on temporary table |
CN101819596A (en) * | 2010-04-28 | 2010-09-01 | 烽火通信科技股份有限公司 | Memory-based XML script buffer |
-
2010
- 2010-11-30 CN CN2010105825820A patent/CN102479244A/en active Pending
Patent Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101021875A (en) * | 2007-03-22 | 2007-08-22 | 金蝶软件(中国)有限公司 | Object-oriented data bank access method and system |
CN101067820A (en) * | 2007-06-08 | 2007-11-07 | 北京大学 | Method for prefetching object |
CN101639839A (en) * | 2008-07-30 | 2010-02-03 | 中兴通讯股份有限公司 | Method for searching multi-archive file based on temporary table |
CN101576921A (en) * | 2009-06-15 | 2009-11-11 | 用友软件股份有限公司 | Data query system and data query engine device |
CN101582079A (en) * | 2009-06-23 | 2009-11-18 | 用友软件股份有限公司 | Object query method and device |
CN101819596A (en) * | 2010-04-28 | 2010-09-01 | 烽火通信科技股份有限公司 | Memory-based XML script buffer |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN100565515C (en) | A kind of Chinese auto-answer method and system | |
GB2459200A (en) | Converting documents and identifying structure for automatically extracting data | |
CN109947770A (en) | A kind of data base query method, terminal device and storage medium | |
CN101398858B (en) | Web service semantic extracting method based on noumenon learning | |
CN108446115A (en) | A kind of method and device of code reuse | |
CN102760165B (en) | Full text retrieval method using bitmap index and device | |
CN108241540A (en) | A kind of method for scheduling task and device across data source query | |
CN109299101A (en) | Data retrieval method, device, server and storage medium | |
US20110066937A1 (en) | Method and system for handling non-presence of elements or attributes in semi-structured data | |
CN102902768B (en) | File content searching and displaying method and system | |
CN113704575A (en) | SQL method, device, equipment and storage medium for analyzing XML and Java files | |
CN110580255A (en) | method and system for storing and retrieving data | |
CN109656942B (en) | Method, device, computer equipment and storage medium for storing SQL (structured query language) sentences | |
CN116719843A (en) | Query method, storage medium and device for database system | |
CN106202423A (en) | A kind of file ordering method and apparatus | |
CN101446975B (en) | File location method and device | |
CN102479244A (en) | Searching system and method capable of temporarily storing target data and unsearched data by container | |
US20090234838A1 (en) | System, method, and/or apparatus for subset discovery | |
CN103136304B (en) | Article processing method and device | |
CN102214175A (en) | System and method for generating example sentence according to word relevancy | |
CN101576897A (en) | File content retrieval system and file content retrieval method | |
US7953714B2 (en) | Method for maintaining parallelism in database processing using record identifier substitution assignment | |
CN109241098A (en) | A kind of enquiring and optimizing method of distributed data base | |
Shatnawi et al. | A Digital Ecosystem-based Framework for Math Search Systems | |
CN111190917B (en) | Data processing 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 | ||
C02 | Deemed withdrawal of patent application after publication (patent law 2001) | ||
WD01 | Invention patent application deemed withdrawn after publication |
Application publication date: 20120530 |