Accessing a data structure
AssigneeInternational Business Machines Corporation
InventorsAndrew D. Reynolds, Martin J. Rowe, Christopher E. Sharp
Life of this patent
Estimating the term…
Abstract
There is disclosed a method, apparatus, computer program and computer program product for facilitating access by an application to a data structure comprising a plurality of objects. A request is received from the application which initiates the return of the data structure. A handle is assigned to each of at least some of the plurality of objects. Objects in the data structure are retrieved and the application is informed of assigned handles thereby enabling the application to access retrieved objects.
Claims24
A method for facilitating access by an application to a data structure comprising a plurality of objects, the method comprising the steps of:
- receiving, at a processor, a request from the application initiating a return of the data structure, wherein the request is received within an application programming interface, and wherein the application programming interface performs a process of resolving the data structure;
- assigning a respective handle to each of a set of objects, wherein the set comprises one or more objects selected from the plurality of objects, wherein assigning is performed by the application programming interface, and wherein at least one of the set comprises an object having an unresolved handle, and wherein the unresolved handle indicates that the object is unresolved;
- retrieving the object from the set of objects using the respective handle to reference the object, wherein until retrieved the object of the data structure remains in the data structure and remains unresolved;
- storing the object retrieved in a memory location;
- and
- providing access to the object retrieved to the application.
A method for accessing an object in a data structure comprising a plurality of objects wherein the object is included in the plurality of objects, the method comprising:
- providing a request to an asynchronous application programming interface initiating the return of a data structure, wherein the asynchronous application programming interface is executed by a processor;
- receiving a notification of a handle assigned to the object, wherein the handle is unresolved;
- and
- using the handle of the notification to access the object retrieved into a memory location, wherein the handle is now resolved.
Apparatus for facilitating access by an application to a data structure comprising a plurality of objects, the apparatus comprising:
- a memory, having computer program code stored thereon and a data structure stored within the memory;
- a processor in communication with the memory, wherein the processor executes the computer program code stored in the memory to direct the apparatus to;
- receive from the application a request initiating a return of the data structure;
- assign a respective handle to each of a set of objects, wherein the set comprises one or more objects selected from the plurality of objects, wherein the assigning is performed by the application programming interface, and wherein at least one of the set comprises an object having an unresolved handle, and wherein the unresolved handle indicates that the object is unresolved;
- retrieve the object from the set of objects using the respective handle to reference the object, wherein until retrieved the object of the data structure remains in the data structure and remains unresolved;
- store the object retrieved in a memory location of the memory;
- and
- provide access to the object retrieved to the application.
Apparatus for accessing objects in a data structure comprising a plurality of objects, the apparatus comprising:
- a memory, having computer program code stored thereon and a data structure stored within the memory;
- a processor in communication with the memory, wherein the processor executes the computer program code stored in the memory to direct the apparatus to;
- provide a request to an asynchronous application programming interface initiating the return of a data structure, wherein the asynchronous application programming interface is executed by the processor;
- receive a notification of a handle assigned to an object in the data structure wherein the handle is unresolved;
- and
- use the handle of the notification to access the object retrieved into a memory location, wherein the handle is now resolved.
A computer program product for accessing an object in a data structure comprising a plurality of objects wherein the object is included in the plurality of objects, the computer program product comprising computer executable instructions stored on a non-transitory computer readable storage medium, the computer executable instructions stored on the computer readable storage medium comprising:
- computer executable instructions for providing a request to an asynchronous application programming interface initiating the return of a data structure, wherein the asynchronous application programming interface is executed by a processor;
- computer executable instructions for receiving a notification of a handle assigned to the object, wherein the handle is unresolved;
- and
- computer executable instructions for using the handle of the notification to access the object retrieved into a memory location, wherein the handle is now resolved.
A computer program product for accessing objects in a data structure comprising a plurality of objects the computer program product comprising computer executable instructions stored on a non-transitory computer readable storage medium, the computer executable instructions stored on the computer readable storage medium comprising:
- computer executable instructions for receiving, at a processor, a request from the application initiating a return of the data structure, wherein the request is received within an application programming interface, and wherein the application programming interface performs a process of resolving the data structure;
- computer executable instructions for assigning a respective handle to each of a set of objects, wherein the set comprises one or more objects selected from the plurality of objects, wherein assigning is performed by the application programming interface, and wherein at least one of the set comprises an object having an unresolved handle, and wherein the unresolved handle indicates that the object is unresolved;
- computer executable instructions for retrieving the object from the set of objects using the respective handle to reference the object, wherein until retrieved the object of the data structure remains in the data structure and remains unresolved;
- computer executable instructions for storing the object retrieved in a memory location;
- and
- computer executable instructions for providing access to the object retrieved to the application.
Dependencies are inferred from the claim text.