CN109101595A - A kind of information query method, device, equipment and computer readable storage medium - Google Patents

A kind of information query method, device, equipment and computer readable storage medium Download PDF

Info

Publication number
CN109101595A
CN109101595A CN201810846114.6A CN201810846114A CN109101595A CN 109101595 A CN109101595 A CN 109101595A CN 201810846114 A CN201810846114 A CN 201810846114A CN 109101595 A CN109101595 A CN 109101595A
Authority
CN
China
Prior art keywords
attribute
resource object
value
information
inquiring request
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.)
Granted
Application number
CN201810846114.6A
Other languages
Chinese (zh)
Other versions
CN109101595B (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.)
Zhengzhou Yunhai Information Technology Co Ltd
Original Assignee
Zhengzhou Yunhai Information 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 Zhengzhou Yunhai Information Technology Co Ltd filed Critical Zhengzhou Yunhai Information Technology Co Ltd
Priority to CN201810846114.6A priority Critical patent/CN109101595B/en
Publication of CN109101595A publication Critical patent/CN109101595A/en
Application granted granted Critical
Publication of CN109101595B publication Critical patent/CN109101595B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/451Execution arrangements for user interfaces
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/448Execution paradigms, e.g. implementations of programming paradigms
    • G06F9/4488Object-oriented
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/46Multiprogramming arrangements
    • G06F9/50Allocation of resources, e.g. of the central processing unit [CPU]
    • G06F9/5005Allocation of resources, e.g. of the central processing unit [CPU] to service a request

Landscapes

  • Engineering & Computer Science (AREA)
  • Software Systems (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Human Computer Interaction (AREA)
  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)

Abstract

The invention discloses a kind of information query method, device, equipment and computer readable storage mediums, this method comprises: receiving information inquiring request;If the attribute of information inquiring request request is preset general-purpose attribute, the general-purpose attribute and corresponding attribute value for then obtaining whole resource objects in resource object class corresponding with information inquiring request, therefrom search the attribute value of attribute corresponding with information inquiring request and return;If the attribute of information inquiring request request is preset proprietary attribute, the whole attributes and corresponding attribute value for then obtaining particular resource object in resource object class corresponding with information inquiring request, therefrom search the attribute value of attribute corresponding with information inquiring request and return.To not only reach the purpose that the response time is shorter, response speed is slower;And achieved the effect that resource separation and attribute separation, on the one hand save CPU and memory overhead, loose coupling between another aspect attribute, it is easier to extension and maintenance.

Description

A kind of information query method, device, equipment and computer readable storage medium
Technical field
The present invention relates to technical field of memory, more specifically to a kind of information query method, device, equipment and meter Calculation machine readable storage medium storing program for executing.
Background technique
In storage management software, GUI (Graphical User Interface, graphic user interface) is responsible in existing The bulk informations such as resource object, alarm event, performance indicator, the status information of storage, in the information that it needs to respond user's input Inquiry request and when exporting corresponding resource object's property value to user usually whole is belonged to by what whole resource objects included Property in search corresponding with information inquiring request attribute, and then the attribute value of the attribute inquired is returned into user, but this The mode of kind of traversal queries will lead to that inquiry velocity is slower, and then cause the response time of GUI longer, and response speed is slower.
In conclusion the information query scheme of GUI is longer, fast there are the time of response message inquiry request in the prior art Spend slower problem.
Summary of the invention
The object of the present invention is to provide a kind of information query method, device, equipment and computer readable storage mediums, can Solve the problems, such as that the time of response message inquiry request existing for the information query scheme of prior art GUI is longer, slow.
To achieve the goals above, the invention provides the following technical scheme:
A kind of information query method, comprising:
Receive information inquiring request;
If the attribute of the information inquiring request request is preset general-purpose attribute, obtains and asked with information inquiry The general-purpose attribute and corresponding attribute value for seeking whole resource objects in corresponding resource object class, therefrom search and look into the information Ask the attribute value for requesting corresponding attribute and return;If the attribute of the information inquiring request request is preset proprietary category Property, then obtain the whole attributes and corresponding category of particular resource object in resource object class corresponding with the information inquiring request Property value, therefrom search the attribute value of corresponding with information inquiring request attribute and return;Wherein, the attribute includes general Attribute and proprietary attribute.
Preferably, before obtaining attribute and corresponding attribute value, further includes:
Definition has the resource object interface of one-to-one relationship with each resource object class, and connects in the resource object Attribute value, each attribute of whole resource objects include in corresponding resource object class each attribute, each attribute are defined in mouthful The attribute element value of the attribute element and each attribute element that include, for obtaining.
Preferably, the general-purpose attribute of whole resource objects in resource object class corresponding with the information inquiring request is obtained And corresponding attribute value, comprising:
For resource object class corresponding with the information inquiring request, mcsinq Is VDisk order acquisition pair is executed The general-purpose attribute and corresponding attribute value for the whole resource objects answered, wherein the VDisk in mcsinq Is VDisk order is The title of the resource object interface of resource object class corresponding with the information inquiring request;
Obtain in corresponding with information inquiring request resource object class whole attributes of particular resource object and corresponding Attribute value, comprising:
For particular resource object in resource object class corresponding with the information inquiring request, mcsinq Is is executed VDisk id command obtains the whole attributes and corresponding attribute value of the particular resource object, wherein mcsinq Is VDisk VDisk in id command is the title of the resource object interface of resource object class corresponding with the information inquiring request, and ID is The unique identification of the particular resource object.
Preferably, general-purpose attribute and correspondence that mcsinq Is VDisk order obtains corresponding whole resource objects are executed Attribute value after, further includes:
The resulting result of mcsinq Is VDisk order will be executed to be stored in memory list by row as first information column Table, wherein each attribute of the first behavior of the first information list, the every each resource of behavior of remaining of the first information list Object corresponds to the attribute value of each attribute;
Every row includes in the first information list each attribute or attribute value are separated using separator, and will be belonged to Property and corresponding attribute value be saved in key-value pair, for the attribute value needed for searching.
Preferably, whole attributes and correspondence that mcsinq Is VDisk id command obtains the particular resource object are executed Attribute value after, further includes:
The resulting result of mcsinq Is VDisk ID will be executed to be stored in memory list by row as the second information column Table, wherein every row includes each attribute of the particular resource object in a manner of one-to-one in second information list And corresponding attribute value;
Every row includes in second information list attribute and attribute value are separated using separator, and by attribute and Corresponding attribute value is saved in key-value pair, for the attribute value needed for searching.
Preferably, the attribute value of attribute corresponding with the information inquiring request is therefrom searched, comprising:
By searching corresponding with the information inquiring request in first information list or the corresponding key-value pair of the second information list Attribute attribute value, and the attribute that the attribute value found is decoded as corresponding this attribute element of the data type of attribute is wanted Element value.
A kind of information query device, comprising:
Receiving module is used for: receiving information inquiring request;
First enquiry module, is used for: if the attribute of information inquiring request request is preset general-purpose attribute, obtaining The general-purpose attribute and corresponding attribute value for taking whole resource objects in resource object class corresponding with the information inquiring request, from The middle attribute value for searching attribute corresponding with the information inquiring request and return;
Second enquiry module, is used for: if the attribute of information inquiring request request is preset proprietary attribute, obtaining The whole attributes and corresponding attribute value for taking particular resource object in resource object class corresponding with the information inquiring request, from The middle attribute value for searching attribute corresponding with the information inquiring request and return;Wherein, the attribute include general-purpose attribute and Proprietary attribute.
Preferably, further includes:
Definition module is used for: before obtaining attribute and corresponding attribute value, definition is a pair of with one with each resource object class The resource object interface that should be related to, and whole resource object packets in corresponding resource object class are defined in the resource object interface The attribute element of attribute element and each attribute element that attribute value, each attribute of each attribute, each attribute that contain include Value, for obtaining.
A kind of information query facility, comprising:
Memory, for storing computer program;
Processor, when for executing the computer program the step of realization any one as above information query method.
A kind of computer readable storage medium is stored with computer program on the computer readable storage medium, described The step of as above any one information query method is realized when computer program is executed by processor.
The present invention provides a kind of information query method, device, equipment and computer readable storage medium, wherein this method It include: reception information inquiring request;If the attribute of information inquiring request request is preset general-purpose attribute, obtain with The general-purpose attribute and corresponding attribute value of whole resource objects, Cong Zhongcha in the corresponding resource object class of the information inquiring request Look for the attribute value of attribute corresponding with the information inquiring request and return;If the attribute of the information inquiring request request is Preset proprietary attribute then obtains the whole of particular resource object in resource object class corresponding with the information inquiring request and belongs to Property and corresponding attribute value, therefrom search the attribute value of corresponding with information inquiring request attribute and return;Wherein, described Attribute includes general-purpose attribute and proprietary attribute.In technical solution disclosed in the present application, after the information inquiring request for receiving user, When information inquiring request corresponds to general-purpose attribute, the general-purpose attribute and correspondence of whole resource objects of corresponding resource object class are obtained Attribute value, and then therefrom inquire required attribute value and return, when information inquiring request corresponds to proprietary attribute, obtain corresponding money The whole attributes and corresponding attribute value of the particular resource object of source object class, and then therefrom inquire required attribute value and return, To be different from traversing all properties of all resource objects in the prior art to obtain corresponding attribute value and return, but phase When and then corresponding to different attributes in information inquiring request in being different attribute set by the Attribute transposition of same resource object class When by first obtaining different attribute sets, and then attribute needed for inquiring in the attribute set by obtaining is searched big by two layers Query context is reduced greatly, to improve inquiry velocity, and then achievees the purpose that the response time is shorter, response speed is slower; Also, resource separation is achieved the effect that in this way and attribute separates, on the one hand saved CPU and memory overhead, separately Loose coupling between one side attribute, it is easier to extension and maintenance.
Detailed description of the invention
In order to more clearly explain the embodiment of the invention or the technical proposal in the existing technology, to embodiment or will show below There is attached drawing needed in technical description to be briefly described, it should be apparent that, the accompanying drawings in the following description is only this The embodiment of invention for those of ordinary skill in the art without creative efforts, can also basis The attached drawing of offer obtains other attached drawings.
Fig. 1 is a kind of flow chart of information query method provided in an embodiment of the present invention;
Fig. 2 is that the general-purpose attribute all rolled up and corresponding is inquired in a kind of information query method provided in an embodiment of the present invention The result schematic diagram of attribute value;
Fig. 3 is that whole attributes of certain volume and corresponding are inquired in a kind of information query method provided in an embodiment of the present invention The result schematic diagram of attribute value;
Fig. 4 is a kind of structural schematic diagram of information query device provided in an embodiment of the present invention.
Specific embodiment
Following will be combined with the drawings in the embodiments of the present invention, and technical solution in the embodiment of the present invention carries out clear, complete Site preparation description, it is clear that described embodiments are only a part of the embodiments of the present invention, instead of all the embodiments.It is based on Embodiment in the present invention, it is obtained by those of ordinary skill in the art without making creative efforts every other Embodiment shall fall within the protection scope of the present invention.
Referring to Fig. 1, can wrap it illustrates a kind of flow chart of information query method provided in an embodiment of the present invention It includes:
S11: information inquiring request is received.
It should be noted that a kind of execution subject of information query method provided in an embodiment of the present invention can be corresponding Device, and the device can be set in GUI, therefore a kind of execution subject of information query method provided in an embodiment of the present invention It can be GUI, be illustrated in the embodiment of the present invention with executing subject as GUI.Information inquiring request can be directly defeated for user Enter into computer belonging to GUI, be also possible to user by terminal and be sent to GUI, can also according to actual needs into Other settings of row;Information inquiring request can carry the title of resource object and attribute that user needs to inquire, in the application Resource object may include the resource object of multiple classifications (resource object class), such as storage volume, software for calculation, any classification It inside may include multiple generic resource objects.
S12: it if the attribute of information inquiring request request is preset general-purpose attribute, obtains and information inquiring request pair The general-purpose attribute and corresponding attribute value of whole resource objects, are therefrom searched and information inquiring request pair in the resource object class answered The attribute value of the attribute answered and return.
It should be noted that general-purpose attribute and proprietary attribute can carry out according to actual needs in the application for staff Setting, for any resource object class, a probability threshold value can be set, if any resource object Probability in class comprising any attribute is greater than probability threshold value, it is determined that any attribute is general-purpose attribute, is otherwise then proprietary category Property;It is also possible to for any resource object class, an access thresholds can be set, if in any resource object class The frequency that any attribute for including is readily accessible by the user in current time preset time period (period set according to actual needs) Rate is greater than access thresholds, it is determined that any attribute is general-purpose attribute, is otherwise then proprietary attribute;It can also be according to actual needs Carry out other settings;In simple terms, general-purpose attribute is common attribute, and proprietary attribute is fewer attribute.If information The Property Name carried in inquiry request corresponds to general-purpose attribute, then first obtains the resource object title pair that information inquiring request carries Whole general-purpose attributes of resource object and the attribute value of each general-purpose attribute in resource object class are answered, then therefrom searches and is looked into information The attribute value of the resource object title and the corresponding resource object of Property Name that carry in request is ask, and returns to user.
S13: it if the attribute of information inquiring request request is preset proprietary attribute, obtains and information inquiring request pair The whole attributes and corresponding attribute value of particular resource object in the resource object class answered therefrom are searched and information inquiring request pair The attribute value of the attribute answered and return;Wherein, attribute includes general-purpose attribute and proprietary attribute.
If the Property Name carried in information inquiring request corresponds to proprietary attribute, first obtains information inquiring request and carry Resource object title corresponding resource object class in particular resource object (usually corresponding with information inquiring request specific one A resource object) whole attributes and whole attribute in each attribute attribute value, then therefrom search in information inquiring request The attribute value of the corresponding resource object of resource object title and Property Name of carrying, and return to user.
It is corresponding in information inquiring request after the information inquiring request for receiving user in technical solution disclosed in the present application When general-purpose attribute, the general-purpose attribute and corresponding attribute value of whole resource objects of corresponding resource object class are obtained, and then therefrom Attribute value needed for inquiring simultaneously returns, and when information inquiring request corresponds to proprietary attribute, obtains the specific money of corresponding resource object class The whole attributes and corresponding attribute value of source object, and then therefrom inquire required attribute value and return, to be different from existing skill The all properties of all resource objects are traversed in art to obtain corresponding attribute value and return, and are comparable to same resource pair As class Attribute transposition be different attribute set, and then when information inquiring request correspond to different attributes by first obtain difference Attribute set, and then in the attribute set by obtaining inquire needed for attribute, query context is greatly reduced by two layers of lookup, To improve inquiry velocity, and then achieve the purpose that the response time is shorter, response speed is slower;Also, in this way Achieve the effect that resource separation and attribute separates, on the one hand saves CPU and memory overhead, loose coupling between another aspect attribute It closes, it is easier to extension and maintenance.
Specifically, information query method provided by the invention is general, suitable for looking into for related to resource object The scene ask and shown;In addition, decoupling separation mutually between each attribute of resource object, improves scalability and can safeguard Property, an attribute parsing failure does not influence the parsing of other attributes;And it only inquires attribute of interest and then obtains corresponding attribute Value reduces CPU occupancy and memory overhead.
A kind of information query method provided in an embodiment of the present invention can also wrap before obtaining attribute and corresponding attribute value It includes:
Definition has the resource object interface of one-to-one relationship with each resource object class, and in resource object interface Attribute value, each attribute for defining whole resource objects include in corresponding resource object class each attribute, each attribute include Attribute element and each attribute element attribute element value, for obtain.
It should be noted that also can be applied to high-end storage present invention could apply to low and middle-end storage, wherein with The general-purpose attribute of whole resource objects of certain the resource object class obtained and corresponding attribute value acquired results are referred to as compact view 404, And whole attributes of certain particular resource object obtained and corresponding attribute value acquired results are referred to as detail view and are illustrated.This The resource object interface that there is one-to-one relationship with each resource object class can be defined in application, to be connect by resource object The attribute of resource object in corresponding resource object class is obtained in mouthful.Specifically, it can be defined in resource object interface corresponding complete The attribute element and attribute element value that each attribute, attribute value, each attribute of portion's resource object include, wherein attribute element As to the specific descriptions of corresponding attribute, such as title, the data type of attribute of attribute, using resource object as storage volume (with Lower abbreviation volume) for be specifically described, the attribute of volume may include the ID of volume, the title of volume, the capacity of volume, affiliated MDisk Title, affiliated IO Group title etc.;The attribute element of each attribute may include the title of attribute, the data type of attribute, belong to The description information and attribute of property belong to compact view 404 or detail view etc.;For example attribute Volume Space is entitled " CAPACITY ", data type are long, and description information is " Capacity of the VDisk ", belong to compact view 404. To realize the storage of relevant information by way of defining resource object interface, information storage is facilitated, and not only convenient for system One inquiry obtains.
A kind of information query method provided in an embodiment of the present invention obtains resource object class corresponding with information inquiring request It is middle whole resource object general-purpose attribute and corresponding attribute value, may include:
For resource object class corresponding with information inquiring request, it is corresponding to execute mcsinq Is VDisk order acquisition The general-purpose attribute of whole resource objects and corresponding attribute value, wherein VDisk in mcsinq Is VDisk order is and letter Cease the title of the resource object interface of the corresponding resource object class of inquiry request;
Obtain the whole attributes and corresponding category of particular resource object in resource object class corresponding with information inquiring request Property value may include:
For particular resource object in resource object class corresponding with information inquiring request, mcsinq Is VDisk is executed The whole attributes and corresponding attribute value of id command acquisition particular resource object, wherein in mcsinq Is VDisk id command VDisk be resource object class corresponding with information inquiring request resource object interface title, ID is particular resource object Unique identification.
It should be noted that can be by calling MCS (Multiple Controller System, more controls in the application Device system processed) in include command line interface realize the calling of order, specifically, said so that resource object is volume as an example It is bright, it executes mcsinq Is VDisk order and obtains the general-purpose attribute of corresponding whole resource objects and correspond to what attribute value obtained It as a result is compact view 404, it can be as shown in Fig. 2, executing mcsinq Is VDisk id command obtains particular resource object Whole attributes and the obtained result of corresponding attribute value be detail view, can (the resource object interface name of volume as shown in Figure 3 Claim to be set as VDisk, 0) ID of particular resource object is.To can rapidly and effectively be obtained by executing mentioned order To corresponding information, facilitate the inquiry of attribute and corresponding attribute value.
It is corresponding to execute mcsinq Is VDisk order acquisition for a kind of information query method provided in an embodiment of the present invention After the general-purpose attribute of whole resource objects and corresponding attribute value, can also include:
The resulting result of mcsinq Is VDisk order will be executed to be stored in memory list by row as first information column Table, wherein each attribute of the first behavior of first information list, each resource object of the every behavior of remaining of first information list are corresponding The attribute value of each attribute;
Each attribute or attribute value that row every in first information list includes are separated using separator, and by attribute and Corresponding attribute value is saved in key-value pair, for the attribute value needed for searching.
It should be noted that the processing in the present embodiment after obtaining general-purpose attribute and corresponding attribute value to result is obtained Process is stored in memory list the step of being used as first information list extremely by attribute and correspondence by row by the result that will acquire Attribute value is saved in the step in key-value pair, can be and is executing the corresponding whole resources of mcsinq Is VDisk order acquisition After the general-purpose attribute of object and corresponding attribute value, it is also possible to obtaining corresponding whole resource objects by other means General-purpose attribute and corresponding attribute value after, in simple terms, as long as obtaining the general-purpose attribute of corresponding whole resource objects And after corresponding attribute value, it can be handled according to result of the above-mentioned steps in the present embodiment to acquisition.Obtain essence After simple view, can specifically following steps be executed:
(1) the resulting result of mcsinq Is VDisk order will be executed to be stored in memory list by row as the first letter Cease list, wherein each attribute of the first behavior of first information list, each resource object of the every behavior of remaining of first information list The attribute value of corresponding each attribute;
(2) the 1st row is obtained from first information list, string segmentation is by utility command separator (being defaulted as ", ") Substring list (the corresponding general-purpose attribute of each substring), obtains the attribute gauge outfit of first information list;
(3) (index+1) row is obtained from first information list according to the index of resource object (index), using life Enabling separator (being defaulted as ", ") by string segmentation, (each substring corresponds to a general-purpose attribute for substring list Attribute value), obtain corresponding resource object's property value list;
(4) attribute gauge outfit, and successively dependence value list value are traversed, obtained attribute and corresponding attribute value are saved in In the data type of key-value pair, the attribute of corresponding resource object and the multiple groups key-value pair of attribute value composition are obtained;
(5) basis wants the Property Name of the compact view 404 of inquiry, searches in dependence and attribute value key-value pair corresponding String value (attribute value).
To so that realizing the lookup of required attribute value based on key-value pair, conveniently cut quick by this processing mode.
It is specific to execute the acquisition of mcsinq Is VDisk id command for a kind of information query method provided in an embodiment of the present invention After the whole attributes and corresponding attribute value of resource object, can also include:
The resulting result of mcsinq Is VDisk ID will be executed to be stored in memory list by row as the second information column Table, wherein each attribute and corresponding category of every row in a manner of one-to-one comprising particular resource object in the second information list Property value;
Attribute and attribute value that row every in second information list includes are separated using separator, and by attribute and correspondence Attribute value is saved in key-value pair, for the attribute value needed for searching.
Wherein, in the present embodiment obtain particular resource object whole attributes and corresponding attribute value after to obtain institute The step of obtaining the treatment process of result, i.e., being stored in memory list by row as the second information list by the result that will acquire is extremely Attribute and corresponding attribute value are saved in the step in key-value pair, can be and executing the acquisition of mcsinq Is VDisk id command After the whole attributes and corresponding attribute value of particular resource object, it is also possible to obtaining specific resources pair by other means After the whole attributes and corresponding attribute value of elephant, in simple terms, as long as obtaining whole attributes of particular resource object and right After the attribute value answered, it can be handled according to result of the above-mentioned steps in the present embodiment to acquisition.It needs to illustrate It is also to need to obtain the ID value for the resource object that need to be inquired before executing mcsinq Is VDisk id command, specifically can be The compact view 404 for needing the affiliated resource object class of resource object inquired first is obtained, and then obtains compact view 404 according to above-mentioned steps Key-value pair, and by key-value pair based on needing the title of resource object inquired to determine corresponding ID value;Then with ID value work For parameter, re-assemblies order and be mcsinqVDisk $ { ID } and execute.
Wherein, after obtaining detail view, can specifically following steps be executed:
(1) the resulting result of mcsinq Is VDisk ID is executed to be stored in memory list by row as the second information column Table, wherein each attribute and corresponding category of every row in a manner of one-to-one comprising particular resource object in the second information list Property value;
(2) traversal obtains all rows from the second information list;
(3) every line character string is divided into substring list by utility command separator (being defaulted as ", "), the substring List includes two, and first item is Property Name, and Section 2 is corresponding attribute value;
(4) attribute and attribute value are saved in key-value pair data type, obtain the attribute and attribute of special object resource The key-value pair of value;
(5) basis wants the detail view Property Name of inquiry, searches corresponding word in dependence and attribute value key-value pair It accords with string value (attribute value).
A kind of information query method provided in an embodiment of the present invention therefrom searches attribute corresponding with information inquiring request Attribute value may include:
By searching category corresponding with information inquiring request in first information list or the corresponding key-value pair of the second information list Property attribute value, and the attribute value found is decoded as to the attribute element of corresponding this attribute element of the data type of attribute Value.
In the application the attribute element value of this attribute element of signified data type include long, integer, Boolean type, Character string is enumerated, the parsing in order to facilitate user to the attribute value of acquisition, can be found the attribute after required attribute value Value is decoded as corresponding data type.
The embodiment of the invention also provides a kind of information query devices, as shown in figure 4, may include:
Receiving module 11, is used for: receiving information inquiring request;
First enquiry module 12, is used for: if the attribute of information inquiring request request is preset general-purpose attribute, obtaining The general-purpose attribute and corresponding attribute value of whole resource objects, are therefrom searched in resource object class corresponding with information inquiring request The attribute value of attribute corresponding with information inquiring request and return;
Second enquiry module 13, is used for: if the attribute of information inquiring request request is preset proprietary attribute, obtaining The whole attributes and corresponding attribute value of particular resource object, are therefrom searched in resource object class corresponding with information inquiring request The attribute value of attribute corresponding with information inquiring request and return;Wherein, attribute includes general-purpose attribute and proprietary attribute.
A kind of information query device provided in an embodiment of the present invention can also include:
Definition module is used for: before obtaining attribute and corresponding attribute value, definition is a pair of with one with each resource object class The resource object interface that should be related to, and define whole resource objects in corresponding resource object class in resource object interface and include The attribute element value of attribute element and each attribute element that each attribute, the attribute value of each attribute, each attribute include, with For obtaining.
A kind of information query device provided in an embodiment of the present invention, the first enquiry module may include:
General-purpose attribute query unit, is used for: for resource object class corresponding with information inquiring request, executing mcsinq Is VDisk order obtains the general-purpose attribute and corresponding attribute value of corresponding whole resource objects, wherein mcsinq Is VDisk in VDisk order is the title of the resource object interface of resource object class corresponding with information inquiring request;
Second enquiry module may include:
Proprietary attribute query unit, is used for: for specific resources pair in resource object class corresponding with information inquiring request As executing whole attributes and corresponding attribute value that mcsinq Is VDisk id command obtains particular resource object, wherein VDisk in mcsinq Is VDisk id command is the resource object interface of resource object class corresponding with information inquiring request Title, ID be particular resource object unique identification.
A kind of information query device provided in an embodiment of the present invention can also include:
First result treatment module, is used for: executing mcsinq Is VDisk order and obtains corresponding whole resource objects After general-purpose attribute and corresponding attribute value, the resulting result of mcsinq Is VDisk order will be executed by row and be stored in memory First information list is used as in list, wherein each attribute of the first behavior of first information list, remaining of first information list are every The each resource object of behavior corresponds to the attribute value of each attribute;The each attribute or attribute value for including by row every in first information list It is separated using separator, and attribute and corresponding attribute value is saved in key-value pair, for the attribute value needed for searching.
A kind of information query device provided in an embodiment of the present invention can also include:
Second result treatment module, is used for: executing mcsinq Is VDisk id command and obtains the complete of particular resource object After subordinate's property and corresponding attribute value, the resulting result of mcsinq Is VDisk ID will be executed by row and be stored in memory list It is middle to be used as the second information list, wherein every row includes particular resource object in a manner of one-to-one in the second information list Each attribute and corresponding attribute value;Attribute and attribute value that row every in second information list includes are separated using separator, And attribute and corresponding attribute value are saved in key-value pair, for the attribute value needed for searching.
A kind of information query device provided in an embodiment of the present invention, the first enquiry module and the second enquiry module can wrap It includes:
Result queries unit, is used for: by first information list or the corresponding key-value pair of the second information list, searching and believing The attribute value of the corresponding attribute of inquiry request is ceased, and the attribute value found is decoded as corresponding this category of the data type of attribute The attribute element value of property element.
The embodiment of the invention also provides a kind of information query facilities, may include:
Memory, for storing computer program;
Processor, when for executing computer program realize as above any one of information query method the step of.
The embodiment of the invention also provides a kind of computer readable storage medium, it is stored on computer readable storage medium Computer program, may be implemented when computer program is executed by processor as above any one of information query method the step of.
It should be noted that a kind of information query device provided in an embodiment of the present invention, equipment and computer-readable storage The explanation of relevant portion refers to the detailed of corresponding part in a kind of information query method provided in an embodiment of the present invention in medium Illustrate, details are not described herein.In addition in above-mentioned technical proposal provided in an embodiment of the present invention with correspond to technical side in the prior art The consistent part of case realization principle is simultaneously unspecified, in order to avoid excessively repeat.
The foregoing description of the disclosed embodiments can be realized those skilled in the art or using the present invention.To this A variety of modifications of a little embodiments will be apparent for a person skilled in the art, and the general principles defined herein can Without departing from the spirit or scope of the present invention, to realize in other embodiments.Therefore, the present invention will not be limited It is formed on the embodiments shown herein, and is to fit to consistent with the principles and novel features disclosed in this article widest Range.

Claims (10)

1. a kind of information query method characterized by comprising
Receive information inquiring request;
If the attribute of the information inquiring request request is preset general-purpose attribute, obtain and the information inquiring request pair The general-purpose attribute and corresponding attribute value of whole resource objects in the resource object class answered, therefrom search and ask with information inquiry Ask the attribute value of corresponding attribute and return;If the attribute of the information inquiring request request is preset proprietary attribute, The whole attributes and corresponding attribute value of particular resource object in resource object class corresponding with the information inquiring request are obtained, Therefrom search attribute value and the return of attribute corresponding with the information inquiring request;Wherein, the attribute includes general-purpose attribute And proprietary attribute.
2. the method according to claim 1, wherein before obtaining attribute and corresponding attribute value, further includes:
Definition has the resource object interface of one-to-one relationship with each resource object class, and in the resource object interface Attribute value, each attribute for defining whole resource objects include in corresponding resource object class each attribute, each attribute include Attribute element and each attribute element attribute element value, for obtain.
3. according to the method described in claim 2, it is characterized in that, obtaining resource object corresponding with the information inquiring request The general-purpose attribute and corresponding attribute value of whole resource objects in class, comprising:
For resource object class corresponding with the information inquiring request, it is corresponding to execute mcsinq Is VDisk order acquisition The general-purpose attribute of whole resource objects and corresponding attribute value, wherein VDisk in mcsinq Is VDisk order for institute State the title of the resource object interface of the corresponding resource object class of information inquiring request;
Obtain the whole attributes and corresponding category of particular resource object in resource object class corresponding with the information inquiring request Property value, comprising:
For particular resource object in resource object class corresponding with the information inquiring request, mcsinq Is VDisk is executed Id command obtains the whole attributes and corresponding attribute value of the particular resource object, wherein mcsinq Is VDisk ID life VDisk in order is the title of the resource object interface of resource object class corresponding with the information inquiring request, and ID is described The unique identification of particular resource object.
4. according to the method described in claim 3, it is characterized in that, execution mcsinq Is VDisk order acquisition is corresponding complete After the general-purpose attribute of portion's resource object and corresponding attribute value, further includes:
The resulting result of mcsinq Is VDisk order will be executed to be stored in memory list by row as first information list, Wherein, each attribute of the first behavior of the first information list, the every each resource pair of behavior of remaining of the first information list As the attribute value of each attribute of correspondence;
Every row includes in the first information list each attribute or attribute value are separated using separator, and by attribute and Corresponding attribute value is saved in key-value pair, for the attribute value needed for searching.
5. according to the method described in claim 4, it is characterized in that, executing mcsinq Is VDisk id command obtains the spy After the whole attributes and corresponding attribute value of determining resource object, further includes:
The resulting result of mcsinq Is VDisk ID will be executed to be stored in memory list by row as the second information list, In, every row includes each attribute and correspondence of the particular resource object in a manner of one-to-one in second information list Attribute value;
Every row includes in second information list attribute and attribute value are separated using separator, and by attribute and correspondence Attribute value is saved in key-value pair, for the attribute value needed for searching.
6. according to the method described in claim 5, it is characterized in that, therefrom searching attribute corresponding with the information inquiring request Attribute value, comprising:
By searching category corresponding with the information inquiring request in first information list or the corresponding key-value pair of the second information list Property attribute value, and the attribute value found is decoded as to the attribute element of corresponding this attribute element of the data type of attribute Value.
7. a kind of information query device characterized by comprising
Receiving module is used for: receiving information inquiring request;
First enquiry module, is used for: if the information inquiring request request attribute be preset general-purpose attribute, obtain with The general-purpose attribute and corresponding attribute value of whole resource objects, Cong Zhongcha in the corresponding resource object class of the information inquiring request Look for the attribute value of attribute corresponding with the information inquiring request and return;
Second enquiry module, is used for: if the information inquiring request request attribute be preset proprietary attribute, obtain with The whole attributes and corresponding attribute value of particular resource object, Cong Zhongcha in the corresponding resource object class of the information inquiring request Look for the attribute value of attribute corresponding with the information inquiring request and return;Wherein, the attribute includes general-purpose attribute and proprietary Attribute.
8. device according to claim 7, which is characterized in that further include:
Definition module is used for: before obtaining attribute and corresponding attribute value, definition, which has to correspond with each resource object class, is closed The resource object interface of system, and define whole resource objects in corresponding resource object class in the resource object interface and include The attribute element value of attribute element and each attribute element that each attribute, the attribute value of each attribute, each attribute include, with For obtaining.
9. a kind of information query facility characterized by comprising
Memory, for storing computer program;
Processor, realizing the information query method as described in any one of claim 1 to 6 when for executing the computer program Step.
10. a kind of computer readable storage medium, which is characterized in that be stored with computer on the computer readable storage medium Program realizes the step of the information query method as described in any one of claim 1 to 6 when the computer program is executed by processor Suddenly.
CN201810846114.6A 2018-07-27 2018-07-27 Information query method, device, equipment and computer readable storage medium Active CN109101595B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201810846114.6A CN109101595B (en) 2018-07-27 2018-07-27 Information query method, device, equipment and computer readable storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201810846114.6A CN109101595B (en) 2018-07-27 2018-07-27 Information query method, device, equipment and computer readable storage medium

Publications (2)

Publication Number Publication Date
CN109101595A true CN109101595A (en) 2018-12-28
CN109101595B CN109101595B (en) 2022-07-08

Family

ID=64847888

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201810846114.6A Active CN109101595B (en) 2018-07-27 2018-07-27 Information query method, device, equipment and computer readable storage medium

Country Status (1)

Country Link
CN (1) CN109101595B (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110213267A (en) * 2019-05-31 2019-09-06 广州华多网络科技有限公司 White List service processing method, server and computer storage medium
CN110716711A (en) * 2019-10-21 2020-01-21 深圳前海环融联易信息科技服务有限公司 Class configuration method, device, equipment and computer storage medium

Citations (14)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP1617343A1 (en) * 2004-07-15 2006-01-18 IBM Corporation A Method and system to load information in a general purpose data warehouse database
CN1862542A (en) * 2006-06-09 2006-11-15 无锡永中科技有限公司 Method of shared object attribute
CN101145163A (en) * 2007-10-30 2008-03-19 金蝶软件(中国)有限公司 Method and system for obtaining data from a plurality of data pool
US20090177301A1 (en) * 2007-12-03 2009-07-09 Codentity, Llc Scalable system and method for an integrated digital media catalog, management and reproduction system
CN104169914A (en) * 2013-12-11 2014-11-26 华为技术有限公司 Data storage method, data processing method, device and mobile terminal
CN105677840A (en) * 2016-01-06 2016-06-15 东北大学 Data query method based on multi-dimensional increasing data model
CN105787808A (en) * 2016-03-01 2016-07-20 中国电力科学研究院 IEC61968 standard document generation system and method based on generic programming and reflection mechanism
US20170031549A1 (en) * 2006-03-27 2017-02-02 Sony Corporation Content list display method, content list display apparatus, content selecting and processing method, and content selecting and processing apparatus
CN106681999A (en) * 2015-11-05 2017-05-17 阿里巴巴集团控股有限公司 Data table inquiry method and equipment
CN106682936A (en) * 2016-12-08 2017-05-17 乐视控股(北京)有限公司 Multi-service data processing method, apparatus and electronic equipment thereof
CN106776638A (en) * 2015-11-24 2017-05-31 大唐软件技术股份有限公司 Database operation method and device
CN107203548A (en) * 2016-03-17 2017-09-26 阿里巴巴集团控股有限公司 Attribute acquisition methods and device
CN108090064A (en) * 2016-11-21 2018-05-29 腾讯科技(深圳)有限公司 A kind of data query method, apparatus, data storage server and system
CN108259150A (en) * 2016-12-29 2018-07-06 华为技术有限公司 A kind of information transferring method and device

Patent Citations (14)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP1617343A1 (en) * 2004-07-15 2006-01-18 IBM Corporation A Method and system to load information in a general purpose data warehouse database
US20170031549A1 (en) * 2006-03-27 2017-02-02 Sony Corporation Content list display method, content list display apparatus, content selecting and processing method, and content selecting and processing apparatus
CN1862542A (en) * 2006-06-09 2006-11-15 无锡永中科技有限公司 Method of shared object attribute
CN101145163A (en) * 2007-10-30 2008-03-19 金蝶软件(中国)有限公司 Method and system for obtaining data from a plurality of data pool
US20090177301A1 (en) * 2007-12-03 2009-07-09 Codentity, Llc Scalable system and method for an integrated digital media catalog, management and reproduction system
CN104169914A (en) * 2013-12-11 2014-11-26 华为技术有限公司 Data storage method, data processing method, device and mobile terminal
CN106681999A (en) * 2015-11-05 2017-05-17 阿里巴巴集团控股有限公司 Data table inquiry method and equipment
CN106776638A (en) * 2015-11-24 2017-05-31 大唐软件技术股份有限公司 Database operation method and device
CN105677840A (en) * 2016-01-06 2016-06-15 东北大学 Data query method based on multi-dimensional increasing data model
CN105787808A (en) * 2016-03-01 2016-07-20 中国电力科学研究院 IEC61968 standard document generation system and method based on generic programming and reflection mechanism
CN107203548A (en) * 2016-03-17 2017-09-26 阿里巴巴集团控股有限公司 Attribute acquisition methods and device
CN108090064A (en) * 2016-11-21 2018-05-29 腾讯科技(深圳)有限公司 A kind of data query method, apparatus, data storage server and system
CN106682936A (en) * 2016-12-08 2017-05-17 乐视控股(北京)有限公司 Multi-service data processing method, apparatus and electronic equipment thereof
CN108259150A (en) * 2016-12-29 2018-07-06 华为技术有限公司 A kind of information transferring method and device

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
AMR MAGDY 等: ""Demonstration of Taghreed: A System for Querying,Analyzing, and Visualizing Geotagged Microblogs"", 《2015 IEEE 31ST INTERNATIONAL CONFERENCE ON DATA ENGINEERING》 *
李益民: ""一种基于关键词的大规模Deep Web信息检索系统"", 《图书情报工作》 *

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110213267A (en) * 2019-05-31 2019-09-06 广州华多网络科技有限公司 White List service processing method, server and computer storage medium
CN110213267B (en) * 2019-05-31 2022-10-04 广州华多网络科技有限公司 White list service processing method, server and computer storage medium
CN110716711A (en) * 2019-10-21 2020-01-21 深圳前海环融联易信息科技服务有限公司 Class configuration method, device, equipment and computer storage medium

Also Published As

Publication number Publication date
CN109101595B (en) 2022-07-08

Similar Documents

Publication Publication Date Title
EP2608075B1 (en) Dynamic hierarchical bloom filters for network data routing
KR101137147B1 (en) Query forced indexing
CN110502546A (en) A kind of data processing method and device
CN105550228A (en) Intelligent storage device and storage and take-out identification method and system based on intelligent storage device
US10984059B2 (en) Data retrieval method and system
CN106970958B (en) A kind of inquiry of stream file and storage method and device
US10372766B2 (en) Method and system for generating a virtual thing for a machine-to-machine application and a method and system for providing a result of a virtual thing to a machine-to-machine application
CN108509437A (en) A kind of ElasticSearch inquiries accelerated method
CN110201393A (en) Configuration data storage method and device and electronic equipment
CN111258978A (en) Data storage method
CN110399389A (en) Data page querying method, device, equipment and storage medium
CN109101595A (en) A kind of information query method, device, equipment and computer readable storage medium
CN110119396B (en) Data management method and related product
CN108154024A (en) A kind of data retrieval method, device and electronic equipment
CN106446289B (en) Information query method and device based on Pinpoint
CN113722600A (en) Data query method, device, equipment and product applied to big data
CN113157609A (en) Storage system, data processing method, data processing device, electronic device, and storage medium
CN114201314B (en) Contract-based routing method for realizing service dependency discovery and service access
CN110427538A (en) A kind of data query method, storage method, device and electronic equipment
CN104753972A (en) Network resource collection processing method and server
CN114969189A (en) Method and device for determining connection in database connection pool
CN115114289A (en) Data query method and device and electronic equipment
JP7133037B2 (en) Message processing method, device and system
CN114443410A (en) Service log processing method and system and Internet of things system
CN112667682A (en) Data processing method, data processing device, computer equipment and storage medium

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant