WO2005103937A1 - Systems and methods for fragment-based serialization - Google Patents
Systems and methods for fragment-based serialization Download PDFInfo
- Publication number
- WO2005103937A1 WO2005103937A1 PCT/US2004/024539 US2004024539W WO2005103937A1 WO 2005103937 A1 WO2005103937 A1 WO 2005103937A1 US 2004024539 W US2004024539 W US 2004024539W WO 2005103937 A1 WO2005103937 A1 WO 2005103937A1
- Authority
- WO
- WIPO (PCT)
- Prior art keywords
- data
- fragment
- type
- members
- byte
- Prior art date
Links
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F9/00—Arrangements for program control, e.g. control units
- G06F9/06—Arrangements 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/44—Arrangements for executing specific programs
- G06F9/448—Execution paradigms, e.g. implementations of programming paradigms
- G06F9/4488—Object-oriented
- G06F9/4493—Object persistence
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F9/00—Arrangements for program control, e.g. control units
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F16/00—Information retrieval; Database structures therefor; File system structures therefor
- G06F16/90—Details of database functions independent of the retrieved data types
- G06F16/903—Querying
- G06F16/90335—Query processing
- G06F16/90348—Query processing by searching ordered data, e.g. alpha-numerically ordered data
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F17/00—Digital computing or data processing equipment or methods, specially adapted for specific functions
Definitions
- This invention relates to computing, and more particularly to storage and transmission of data objects.
- Serialization can be defined as the process of storing the state of an object instance to a storage medium. During this process, the public and private fields of an object and the name of the class, are converted to a stream of bytes, which is then written to a data stream. When an object is subsequently deserialized, an exact clone of the original object may be created.
- an object in active computer memory for example, an object with data describing a person. The person object has a number of subcomponent members, such as name, address, social security number, phone numbers, spouse, height and weight. While the person's name may be important for a particular application, the height and weight may not be.
- the name may remain in active memory where it may be modified, while other fields such as height and weight are evicted from active memory to make room for other data.
- the person object may no longer be needed by the application, and it may be persisted or transmitted to another computer.
- the object must be serialized, which refers to formatting ⁇ an object in a useful, retrievable way.
- the members of an object such as the person object, are generally , uniform for all objects of the same class. Each person object, for example, has the name, address, social security number, phone numbers, spouse, height and weight members.
- Objects may comprise members with various types of data.
- the members may be primitive or complex. Examples of primitive members are "string” such as the name member from the person object, which is a string of letters; and "integer,” such as the social security number from the person object, which is an integer.
- Examples of complex members are "collection,” such as the phone numbers member, which comprises more than one primitive — in this case, more than one integer; “nested,” which is a member that has some structure beyond a simple primitive member, e.g., the collection of phone numbers, or the spouse member, which refers to another person object; and "subtype,” such as a hypothetical "United States address” type that would be a subtype of an address type, and therefore presumably declares additional members such as a U.S. region or U.S. Post Office Box.
- Members may be described in many different ways, and relate to each other in any number of patterns. Therefore serializing objects such as the person object involves effectively dealing with the various members and the relationships of those members that may be included in the object.
- Serialization of objects presents a number of challenges in the industry. Serialized objects should consume as little storage space as possible. If the size of an object is greatly increased when it is serialized, then the storage cost of the object may be too high. Therefore, compact representation is an important aspect of a serialization format. [0008] Serialized objects should also be efficiently instantiated into active memory. If the processing cost of finding and assimilating the various members of a serialized object is high, it will drain valuable processor resources. Likewise, serialization should allow for instantiation and updating of members of an object without the need to instantiate the entire object.
- Serialization formats should also support all data types that may be contained in an object.
- a very basic serialization format might only support primitives, but more sophisticated formats should support complex members such as the nested members, collection members, and subtype members described above. While a serialization format should be optimal for objects with few levels of nesting and inheritance, because most objects have this characteristic, it should also support many levels of nesting and inheritance to ensure that the serialization can be flexibly used for a broad range of classes.
- a serialization format should also be flexible in handling very large members.
- XML serialization provides a token for each member.
- the token comprises metadata that identifies a member, usually a member immediately following the token. Therefore, XML serialization may be visualized as follows:
- serialization format The problems with such a serialization format are, first, verbosity: the storage of metadata tokens with each and every member consumes a large amount of disk space. Second, retrieval is impaired in such a format, because in order to find a desired member, the tokens must be searched. This may involve a high active memory cost, because the most effective way to read or update an object that is serialized in this manner may be to instantiate the entire object.
- Another serialization format is in the "Storage Engine record” format, also referred to as the "SE record,” or simply “record” format. This is an a typical database system record format. In this serialization format, members for objects of a given class are stored in uniformly formatted records.
- the SE record serialization format does not require metadata with each individual member, so it is a more compact serialization technique. Instead, it requires access to metadata describing the layout of the members on disk, such as the Metadata for Person Objects table of Fig. 10.
- a weakness of the SE record format is that it is inflexible in handling members of variable length, such as many of the music files, movies, and images that are stored with objects today. More accurately, flexibility in the SE record serialization comes at a high processing cost.
- variable length can be stored in such a format, if an offset table is used to identify the locations of variable length data in the record.
- the consequence of storing an offset table is that whenever a variable length member is updated, the positions of all variable length data that follows it must be adjusted. This can be compared to inserting bytes in the middle of an array —everything to the right of an insert point must be shifted right to make space for inserted new bytes.
- various storage formats have been designed to allow users of databases to efficiently store objects within a database. These storage formats can be better supported with a more flexible serialization format. For example, should be distinguished from the serialization format provided herein. For example United States Patent Application No. 10/692,225, Attorney Docket No.
- MSFT 2852/306819.01 titled "system and method for object persistence in a database store,” is directed to allowing a user to 'import' classes and methods written in an object oriented language like C# into a database. It further allows a user to store C# objects in a database and to invoke methods on the objects. It provides multiple flavors of persistence to a user.
- a user can define his own serialization format, use Common Language Runtime (“CLR”) serialization (provided by C# language itself), or let the SQL server store an object in its own format. These options, particularly the latter, provide a performance advantage, as MICROSOFT SQL SERVER® can retrieve or update some fields of an object without actually instantiating a C# object.
- CLR Common Language Runtime
- a method and system for fragment-based serialization places one or more members in fragments.
- Fragments may comprise a header and a payload.
- a header can provide useful information about the fragment, such as an indication of fragment type and an indication of fragment length.
- a payload may comprise one or more members of an object.
- Primitive members may be stored in a fragment with a record format payload. This configuration allows for fast location and updating of primitives.
- Large Object (“LOB”) members may be stored in fragments that have a field for setting forth location types for locations of LOB and FS members.
- Collections may be stored in a series of fragments, a first fragment to indicate a start of a collection, one or more second fragments to serialize collection elements, and a terminator fragment to indicate the end of a collection. These and other fragment types may be organized according to rules that govern generating fragments, placing members in fragments, and sequencing fragments in a manner that provides additional functionality to the serialization format.
- Figure 1 is a conceptual illustration of the various fragments which may be used to serialize object members. It shows a Binary Fragment with a payload comprising primitive members in record format, a fragment with a non-record format payload, and a fragment with no payload.
- Figure 2 presents a fragment with a detailed view of the fragment header. The header shows a selection of potential fields for use in fragment headers, and many fragment headers may omit some of the fields shown.
- Figure 3 presents several exemplary object classes for which fragment sequences are provided in the description, in accordance with various embodiments of the invention.
- Figure 4 is a flowchart demonstrating steps for generating fragments for the primitive members of an object when there are no nested members in the object.
- Figure 5 is a flowchart demonstrating steps for generating fragments for the primitive members of an object when there are nested members in the object.
- Figure 6 is a flowchart demonstrating steps for generating fragments for collection members of an object.
- Figure 7 is a flowchart demonstrating steps for generating fragments for the LOB and FS members of an object.
- Figure 8 is a flowchart demonstrating steps for the process of placing an entire object, with members various types, into fragments.
- Figure 9 illustrates objects that have been serialized in accordance with various embodiments of the invention as they may be stored in a single column of a database.
- Figure 10 illustrates a prior art record serialization format in which metadata is provided for all records, and corresponding data conforms to the format specified in the metadata.
- Figures 11(A-H) illustrate various fragment types for use in serializing data in accordance with preferred embodiments of the invention.
- Figure 12 is a top-level diagram of a fragment sequence for the tPartTimeEmployee object displayed in Fig. 3. This fragment sequence may contain additional fragments for each level of nesting.
- a serialization that provides compact representation is provided.
- Objects serialized in the provided format can be efficiently instantiated into active memory, thereby reducing processing costs of finding and assimilating the various members of a serialized object.
- members of objects may be instantiated and updated without the need to instantiate an entire object.
- support for a wide range of data types, including user-defined data types (“UDTs”) is provided.
- the serialization format can be optimized for objects with few levels of nesting and inheritance but also supports many levels of nesting and inheritance. It is flexible in handling very large members.
- the invention can provide a serialization format that is suitable for storage of various types in a single column — for example, an instance of an "employee" object that is a subtype of a "person” object can be stored in a column that is provided to store only "person” objects.
- the serialization format allows for efficient addition of new members to a type, also called efficient type evolution.
- Fragment-based serialization in accordance with various embodiments of the invention can be conceptualized as a hybrid format that employs some of the elements of XML-style serialization, as described in the background, and some of the elements of SE record serialization, also described in the background, in addition to numerous aspects and advantages that are unique to fragment-based serialization itself.
- a fragment may comprise a header and in some cases a payload.
- the header can provide useful information about the fragment, such as an indication of a fragment type, and an indication of a fragment length.
- This header is somewhat similar to the tokens provided by XML serialization, because a new header is given for each fragment, just as a token is provided for each member in the XML serialization context.
- XML tokens are provided for each member
- the fragments of Fig. 1 can include more than one member. This is illustrated in fragment 1, which shows a fragment with a payload comprising several data members.
- Fragment -based methods can serialize and deserialize a variety of data structures including but not limited to: objects with simple primitive fields (integers, strings, etc), entire graphs of connected objects, and collections.
- the fragment payload can comprise a member or members of a serialized object, as well as any other data.
- This payload can employ SE record format-style serialization for the members inside, which allows for speedy retrieval of members in the payload.
- Such a record format payload is a characteristic of Fragment 1 in Fig. 1.
- the fragment-based serialization has features of SE record serialization. Metadata can be provided in a header or elsewhere that describes the fields included in a payload.
- a payload can be in record format, it need not be, as is illustrated in Fragments 2 and 3.
- the header portion of a fragment may contain various fields, as illustrated in Fig. 2.
- Fig. 2 shows a fragment with an expanded header section so the various possible fields may be illustrated. Note that the various fields provided in Fig. 2 need not be included in every fragment. Instead, the fields that provide useful information for the payload of the fragment may be included in the header.
- the various fields of Fig. 2 will be explained in greater detail below, in connection with the description of various suggested types of fragments.
- fragments utilize multiple types of fragments for additional versatility in serializing objects.
- a variety of suggested fragment types is set forth below.
- One motivating factor is to allow for better serialization of the various types of members that may make up an object.
- These members may be, for example: • Small primitive members. These are members of basic types such as integer ("int"), float, and string. • Large primitive members such as Large Object (“LOB”) and FileStream (“FS”). • Complex members, such as Collection, and Nested • Subtype members.
- Any class that supports inheritance may have instances of the class that include an inherited member, which in turn may be data of a subtype.
- fragment types In order to accommodate various types of members that may exist in an object that is serialized, the invention can be used with several fragment types. One or more fragment types may be useful for only one type of member, while other fragment types are useful for multiple member types. [0039] The various fragment types can have different formats that are tailored to the contents of the fragment. In the following discussion, a fragment type is first set forth, followed by a visual depiction of a suggested fragment format for that type. Fragment attributes in italics are optional and depend on the value of the Type column. The invention is not limited to the fragment types set forth below. In addition to the fragments provided here, new fragment types may be developed for use in accordance with the general principles of fragment-based serialization provided herein.
- Binary Fragment - Fig. 11 displays various potential embodiments of a Binary Fragment.
- This fragment can contain a Type, Length, and Payload field.
- the type field may be just one byte, or it can be any number of bytes. Additional bytes in the Type field will require additional memory overhead when using the serialization format. Therefore bytes in header fields should be used sparingly.
- a one-byte Type field can include a number of bits for use in indicating various properties of a fragment. One bit may be used to indicate that a fragment is a Binary Fragment. Another bit may be used to indicate a type of member or members contained in the fragment. For example, if all members are primitive, a bit may be set to indicate such information.
- a bit may be set to so indicate. If the Binary Fragment is the first, or the only, fragment for a serialized object, A bit in the Type field may so indicate.
- the type field may also indicate an object type contained in a fragment or fragments, as well as any additional useful information such as the number and types of fragments in the entire object.
- Objects represented with in a single binary fragment may be flagged in the Type field as "self-terminating" fragments, eliminating any need to include a Terminator Fragment at the end of a serialized object. This "self-terminator" flag may be in the form of a self-terminator bit in the Type field of a fragment.
- Such a self-terminator bit could also be located in any other field of a fragment header, or in a fragment payload. Objects that are represented by multiple fragments need not set the self-terminator bit, because a Terminator Fragment can be generated to mark the end of the serialized object.
- the Length field is optimally 2 bytes, although the length may vary as described above.
- the Length field may be used to indicate a length of a payload.
- the payload in a Binary Fragment may contain any data.
- the payload contains all primitive members of an object.
- the payload in such a fragment can be an SE record, to allow for efficient cracking and updating of the primitives or other members stored therein.
- LOB Fragment - Fig. 11(B) displays various potential embodiments of a LOB Fragment.
- This fragment may have Type, Value Type, and Length fields in the header, and a payload containing a LOB or location information for a LOB.
- the Type field as in each of the fragments, need only be one byte, indicating in this case that the fragment is a LOB Fragment.
- the Value Type field may provide additional means to describe the contents of the LOB Fragment.
- Such a Value Type field may be added to contain information about LOB attributes in implementations where it is not desirable to use up bits in the Type field for LOB attributes. This way, only LOB Fragments have the overhead (here, an additional one byte per fragment).
- Information stored in the Value Type field can describe a type of location in which a LOB is stored. Allowing additional description of the location of LOB members provides flexibility in handling large values.
- LOB data in contrast to a LOB reference
- an application or user of a computer
- LOB Inlined type fragment use an 8 byte length, and put the LOB inline.
- the LOB can be placed in the payload of the LOB Fragment.
- the Value Type field indicates a LOB Inlined type
- the length field can be, for example, 8 bytes and the payload can contain a LOB value.
- the Value Type field can indicate a LOB Pointer type, meaning that the payload of the fragment contains a pointer to a LOB location.
- the Length field can be, for example, 2 bytes, and the payload can contain a LOB reference.
- the Value Type field can also indicate a LOB Delayed type which can mean that the fragment payload contains a LOB reference to a cell in a database that presumably contains a LOB.
- the fragment length can be, for example, 2 bytes and the payload can contain a cell reference.
- a 'cell reference' is a combination of a table identifier, a row identifier, and a column identifier.
- a cell reference When combined with a 'path' (as described below) for a LOB fragment, a cell reference gives enough information to locate actual LOB data. Any other location type information can be contained in the Value Type field of a LOB or FS fragment. Providing such an additional location type field for LOB and FS Fragments gives the serialization format additional flexibility while keeping overhead low.
- any of the fragments discussed herein may be null if a particular object does not have a member that is provided for in a serialization for a particular class. If a fragment is null, this information can be set in a bit in the type field for the fragment.
- the Length field and the payload may be removed from the LOB fragment of Fig. 11(B) to form a Null LOB Fragment with any location specified in the Value Type field.
- FS (File Stream) Fragment - Fig. 11(C) displays various possible embodiments for an FS Fragment.
- the FS Fragment can have a Type field that indicates a fragment type — here, an FS Fragment.
- the FS Fragment can include a Value Type field. Once again, this field can indicate various location types for an FS.
- the FS could be serialized with the rest of the object, or Inline type (again, this can correlate to a larger length field, e.g., 8 bytes). It could be in a location that is pointed to in the fragment payload, FS Pointer type, which in the context of an FS, may indicate a length field of, for example, 2 bytes and a payload that contains a Global Unique Identifier ("GUID") for the appropriate FS file.
- the Value Type field could also indicate an FS Delayed location type, which can correlate to a length of, for example, 2 bytes, and a payload that contains a cell reference.
- Terminator Fragment - Fig. 11(D) shows various possible embodiments for a Terminator Fragment.
- This fragment may contain a Type field and a Bit field of, for example, 2 bytes.
- the Type filed may indicate that the fragment is a Collection Start Fragment.
- the Bit field may indicate properties of a collection. For example, the bit field may indicate an "unordered" collection, which can correspond to a collection that is not in any particular order. It could also indicate and "ordered” collection, indicating that a collection is in a particular order.
- This fragment when used only for the purpose of describing a collection, can omit the length field, because the Collection Start Field marks the start of a collection, and as such need not contain a payload. If there is a payload included with the Collection Start Fragment, it could have a length field to describe that payload.
- the Collection Start Fragment is used to mark and describe a collection, it does not have a payload of its own and therefore need not have a length field either.
- a Null Collection Start Fragment will look very much like the Collection Start Fragment in Fig. 11(E).
- the only difference in the situation where the Collection Start Fragment is null is the bit set in the Type field, as described above in connection with Null LOB Fragments.
- Collection Element Fragment - Fig. 11(F) displays various possible embodiments for a Collection Element Fragment.
- the Type field in such fragment can indicate that it is a Collection Element Fragment.
- the Length field can indicate a length of the payload of the Collection Element Fragment.
- Fig. 11(F) shows an exemplary Length field size of 2 bytes, which should be sufficient to indicate the length of a payload containing a collection element.
- a Locator field may also be included with Collection Element Fragments.
- the Locator field like the Value Type field from the LOB and FS fragments, can be used to indicate additional properties of a Collection Element Fragment.
- Collection Element Fragment may have a payload in SE record format, such as that of the Binary Fragment.
- the Type field may indicate whether the Collection Element Fragment is a Self-Terminator, by using a bit to indicate whether a fragment terminates itself.
- the Locator field can be used to address a particular element of a collection very much like the GUTD of a FS fragment. In the case of a Collection Element Fragment, however the locator field indicates a unique location within a collection and not necessarily a globally unique location. [0052] Regarding the Locator field, it may also be preferable to allow for some anticipation of a locator field in a collection element. A the bit in the Bit field of the Collection Start Fragment may be set to indicate an upcoming Collection Element Fragment with a Locator field. In such a configuration, the system can be configured to deduce that Locator field is present in the Collection Element Fragment.
- Null Collection Element Fragment - Fig. 11(H) displays various possible embodiments for a Null Collection Element Fragment.
- Null representation for Collection Element Fragments may contain a Type field indicating that the Fragment is a Null Collection Element Fragment. They may also contain a Locator field, but need not contain the Length or payload fields, because the existence of the Null Collection Element Fragment indicates that the particular serialized object does not have data corresponding to a particular aspect of a class that is otherwise designed to contain such data. Again, when no members or other member information are included in a payload, there may be no need for a Length field to describe the length of the payload.
- Null Fragment 11(G) displays various possible embodiments for a Null Fragment.
- the Null Fragment like the Terminator Fragment, can be represented by a single Type field. Again, this is practice may be restricted to representation of non-collection element null fragments. See below for a description of Collection Element Null Fragments.
- Annotation and Metadata Fragments may be used to describe one or more fragments to a receiver of a serialized object. Such fragments are useful in a variety of situations even though they may not be necessary to deserialize an object.
- a annotation fragment may allow a client to check information about a particular member or object, or to insert notes or information about a serialized object.
- Representation overhead refers to an amount of additional information stored with an object to allow the object to be effectively retrieved.
- the fragment-based serialization techniques do contain representation overhead, but the overhead is minimized for the corresponding flexibility and functionality of the format.
- the first field in a fragment header is the Type field. In preferred embodiments, the Type field consumes 1 byte. This minimizes the associated overhead.
- the Locator field associated with the Collection Element Fragment amounts to overhead.
- Locator field Most small unordered collections can be adequately represented in a Locator field that consumes no more than 4 bytes. Larger, ordered collections may consume more than 4 bytes, however, and in this case the Locator field may be replaced with a variable binary ("varbinary") field that may require more representation overhead.
- Varbinary variable binary
- the exact amount of overhead used by the Locator field is considered an implementation detail and is left to the judgment of those skilled in the art, who will appreciate the motivation to reduce representation overhead, but also allow for flexible serialization of collections.
- Length fields associated with several other fragment types are representation overhead. As described above, the Length field in preferred embodiments can be either 2 bytes or 8 bytes long, depending on the fragment type. The invention is not limited to the exact number of bytes for such fields, and the parameters set forth herein should be considered useful tips from an experienced practitioner and not hard and fast requirements for the invention itself.
- the various fragment types may serve a variety of fragment members.
- a decision must be made as to which fragment type to use for a particular member.
- An object containing, for example, the primitive, nested, collection, and subtype members can be decomposed into fragments according to a set of rules. While the invention is not limited to a particular correlation of fragment types and member types, a useful set of rules has been developed and is explained in this section. Note that the rules are for clarity of explanation, not to indicate that they must be carried out in a particular order.
- the operations corresponding to the rules below may be carried out simultaneously, with the generation, population, and sequencing of fragments conducted as a processor steps through the members of an object.
- the rules are as follows.
- Generate fragments Embodiments of the invention can be said to engage in type- based container relative fragment generation. In other words, there may be a fragment for each of the following: Each level of nesting in a class, even if the level is null. Each collection, even if the collection is null. Each element of a collection. Each subtype. Each LOB and FS attribute. Even if it is null.
- LOB values may be stored inline, while FS values should be stored out-of-line.
- Additional fragments may be generated to suit the needs of a particular class. Likewise, the above fragments may not be required for serialization of some classes.
- an object may be translated into a fragment-based serialization fragment using a top-to-bottom technique. First, any base type members in an object may be serialized, followed by subtypes. At every nesting level, a scan may be made of the contained members to determine if there are any nested types, subtypes or LOB/FS type members. [0062] Generating Fragments for Primitive Members. Some or all primitive members may be placed into one or more Binary Fragments.
- a preferred embodiment handles objects with no nested members differently from objects with nested members. These two scenarios are depicted in Fig. 4 and Fig. 5.
- the non-nested primitives may be placed inside a single Binary Fragment, and serialized therein using an SE record format.
- a Binary Fragment may be generated and an indication that there are no nested members can be placed in the Type field of the fragment.
- the practical difference between objects containing nested members and objects not containing nested members may be that objects with nested members can be serialized into multiple fragments, while objects without nested members may be serialized into a single binary fragment.
- a self terminator bit can be set in a field of a binary fragment.
- the Length field in the Binary Fragment may be set to correspond to the length of the combined primitive members.
- the fragment can then be emitted.
- the process for no nested members with respect to the Binary Fragment can altered somewhat to allow the nested members to be recursively serialized. In this situation, the self-terminator bit need not be set.
- the nested type members may be recursively processed into fragments of their own. On return from such a recursion, a Terminator Fragment may be generated.
- the Terminator Fragment may then be also be emitted.
- Generating Fragments for Collections A flowchart of the process for generating collection fragments is provided in Fig. 6. When a collection member is encountered, a Collection Start Fragment can be generated. If the collection is not ordered, the bit in the bit-field may be set to "unordered.” Each element of the collection may then be recursively serialized by generating Collection Element Fragments, described below. After all the elements have been serialized, a Terminator Fragment can be generated to indicate the end of the collection. [0065] A collection element can be serialized into of one or more fragments. If a collection element is represented using more than one fragment the representation may have its own Terminator Fragment.
- the first fragment of a collection element may include a Locator field.
- One purpose of such a filed can be to keep track of a number of elements processed when serializing a collection. By incrementing a counter in a Locator field to properly indicate a current element for serialization, the serialization process can return to the proper location for serializing the next element of a collection.
- Generating LOB and FS Fragments A flowchart illustrating the generation of fragments for LOB and FS members is provided in Fig. 7. As indicated in the description of various fragment types, both the LOB and FS Fragments may be configured to indicate more than one location type for the corresponding payload. This indication may be made in a Value Type field.
- the Value Type field may describe a payload as comprising pointer, inlined, or delayed location types.
- the appropriate value type can be determined from a member. For example, if a LOB is to be serialized with an object, i.e. stored inline with a fragment, then the value type for a LOB Inline can be selected and the LOB can be serialized accordingly. If instead the LOB is stored in a cell of a database an not with the serialized object, a LOB reference can be serialized with the object, and the appropriate location type can be stored in the Value Type field. The fragment can then be emitted. [0067] Generating Subtype Fragments.
- Subtype Fragments may be generated in the same manner as the fragments for any other non-primitive member.
- the Subtype comprises a collection member
- a Collection Start Fragment along with any Collection Element Fragments and a Terminator Fragment may be generated to mark the end of the serialization of the subtype member.
- the subtype member is a nested LOB member
- a LOB Fragment may be generated to contain the subtype member.
- a binary fragment is generated for the subtype, which includes all small primitive members in the subtype, such as int, float etc, in a similar manner as binary fragment is generated for the base type. [0068] Generating Other Fragments.
- Each LOB member can be stored in a LOB Fragment.
- a Collection Start Fragment can be generated for each collection member. If the collection member is not empty, the Collection Start Fragment can reference one or more Collection Element Fragments.
- a Terminator Fragment can be generated for each collection member that was decomposed into more than one fragment. The Terminator Fragment marks the end of the collection member.
- a fragment which has nested fragments doesn't terminate itself. Instead it has a Terminator Fragment which appears after all the fragments that are nested within the fragment.
- a Terminator Fragment can be generated for each object that was decomposed into more than one fragment.
- the Terminator Fragment can mark the end of a serialized object.
- a nested object can follow the same rules as above recursively.
- subtypes may be treated as nested objects.
- Sequence of Fragments are stored in a sequence that makes up a serialization for any particular class. If a class of objects contains only primitive members, the objects can be serialized into a self-terminating single fragment. Classes with complex or other non- primitive members, can be serialized into more than one fragment. If a serialization for a class comprises more than one fragment, then one or more Terminator Fragments can also be generated.
- the set of fragments from the starting fragment to the final Terminator Fragment comprises the sequence of fragments as that term is used in this description.
- Fragments corresponding to subtypes in an instance may be nested under a fragment for the base type.
- tPerson, tEmployee and tPartTimeEmployee example from Fig. 3 and presuming for the moment that at each level there are only primitive attributes described by Binary Fragments an instance of tPartTimeEmployee can be visually depicted in the diagram provided by Fig. 12. Note that fragments for tEmployee and tPartTimeEmployee in Fig. 12 can be at the same level of nesting.
- Fig. 3 provides several sample schema. Each schema represents a class of objects, each with one or more members of various types. For the purpose of this discussion, Fig. 3 provides a class of "person" objects, each with a name string (a primitive member), an age integer (also a primitive member), and a locations collection (this is a nested complex member). Fig. 3 also provides a class defining "address" objects, each such object having three primitive members: street, city, and zip. Fig.
- An instance of tEmployee with a non-empty collection of addresses can have the following fragments in the following order:
- serialization is responsible for recognizing and parsing the various fragments.
- the task of locating a member involves locating the fragment or fragments in which the member has been placed. If there is more than one such fragment, the first fragment may be located first.
- the position of a fragment relative to the first fragment of a serialization can be determined from metadata. Note that while this technique does not provide for direct addressability of fragments, the task of comparing tokens for each member to identify which aspect of the class an associated member represents is eliminated. Instead, the serialization metadata, when scanned, can quickly direct the processor to an appropriate fragment.
- serializer process may proceed in a top-down manner, from base type to subtype and containing type to nested type. At each level of nesting, the serializer process may produce one or more fragments. Such a serializer is never required to update a previously generated fragment, though it may be configured to do so if desired.
- serialization format set forth herein can be configured to support fixed, variable length and bit type primitive members; objects nested within other objects; inheritance; inline and out-of-line LOBs (including file streams); ordered collections (providing via the locator function a serialization of collection elements in the appropriate order); unordered collections; and null values. It may also support composable serializations.
- a nested object may be extracted from an existing serialization without a trace of the fragment container in which the object was serialized, i.e., without any state corresponding to its container. This property of embodiments of the invention allows insertion or updating of entire nested objects.
- the proposed serialization format supports adding members to a class without updating any other existing data.
- the addition of fields to a class is very common in the use of XML schemas, where schemas are frequently updated by adding fields.
- a fragment of any type can be altered to add new members (primitive, collections, or nested objects) as long as they have a default value of NULL and are added to the end of an existing type.
- the addition of large members to an object need not be of concern as with record format serialization, because objects stored in the proposed fragment-based format can be stored as a "bag of bytes," in a single column of a database, and can be arbitrarily large.
- Yet another advantage of the serialization format as embodied in the example serialization above is that the identity of a fragment need not be stored with the fragment. Instead, the path to a fragment can be used to reveal fragment identity.
- the path can be determined from the type metadata of any given object that is operated on.
- a path identifies a particular fragment in a serialization. Path can be, for example a set of numbers at each fragment identifying a fragment at each nesting level and subtype level. Since fields of an object reside in a pre-determined fragment, they can be located using the path. In a sense, paths are like addresses for fragments.
- a path can be stored along with a fragment or can be computed by navigating from a first serialized fragment.
- the fragment-based serialization format also allows for supporting access to members without instantiating the object.
- the a member location process or navigator, can navigate to any desired fragment. Once positioned at a fragment, such a process can allow access to the fragment itself or to an entire sequence of fragments rooted at the located fragment.
- locating a fragment can be accomplished even faster.
- Such a directory can store fragments in a table organized as a BTree.
- one fragment may be stored per row, allowing the path to the fragment to be used as part of a key for each row.
- a navigator can also efficiently skip fragments that are not of interest for a particular operation. Navigation of the fragments serialized according to the invention may comprise tracking either a number of nesting levels that are open, or a subtype number. Once the navigator arrives at a desired nesting level or subtype, the navigator may count the number of fragments at that level or subtype. Such a fragment could itself start a new level of nesting. [0083] Further to the advantages of locating members of objects which are serialized in a fragment-based format, access to primitive members can comprise the following simple operation. First, a navigator can locate a Binary Fragment.
- Primitive members are advantageously stored in such a fragment.
- the required member can be extracted using standard, optimized record cracking code. It can also be updated using standard, optimized record building code.
- This simple operation provides for high-performance location of primitive members in a serialized object that can conveniently be stored in a single database column.
- An advantage of allowing for member location in this fashion is that, as mentioned above, members may be updated without the need to instantiate an entire host object. This allows for the replacement of a fragment or sequence of fragments without instantiating an entire object.
- Each fragment can be self- contained, the invention can be configured so the identifier of a fragment sequence is the presence of a begin-nesting fragment and Terminator Fragment.
- Storage of a stream of fragments as generated according to the techniques set forth herein may be conducted by storing a stream of fragments as a LOB.
- a LOB may have a tree- structured storage format whose key is an offset location.
- This technique for storing the stream of fragments provides for a predictable insert and delete time depending on the size of the LOB. It also allow for updating only portions of the LOB.
- the on- wire format for objects serialized in fragments is the same as the on-disk format with respect to the shape of the fragment headers.
- fragments other than the LOB and FS fragments there need be no change at all for fragments that are on- wire versus on-disk.
- This aspect of the invention allows objects to be fast-copied onto a wire, providing significant gains in the speed of transporting objects from location to location. Note, however, that fragment contents may vary for LOB and FS fragments to provide for additional flexibility. This aspect of the invention is explained above with the summary of potential fragment types.
- Fig. 9 shows an assortment of objects in a single column of a database.
- the objects are serialized with a first fragment that contains primitive members in record format (this is the gray fragment with a subdivided payload), and subsequent fragments that could be any of the fragments set forth in this description.
- a first fragment that contains primitive members in record format this is the gray fragment with a subdivided payload
- subsequent fragments that could be any of the fragments set forth in this description.
- UDT User-Defined Type
- Basic algorithms for operations that may be performed on a UDT object stored as fragment stream are provided.
- Operation 1 Uniquely identifying an object using its path. When a UDT is stored as a sequence of fragments, every fragment in the sequence can be uniquely identified by a 'path'. A path is a sequence of steps, where each step can be exactly one of : 1.
- b could be stored as a single self-terminating fragment, or it could be stored as a sequence of fragments if B has non-primitive fields or is a subtype of another UDT.
- a collection member step that specifies a locator (Locator uniquely identifies a member of a collection. Members of a collection are assigned locators starting from 1. When a collection member is deleted, it causes a 'gap' in the locators, and a subsequent member insert reuses the locator. So, if no members were ever deleted, members of a collection with N members will have locators 1 thru N.) Recall that if UDT A is a collection of UDT C, the an object of type A containing two members would look as follows: [Fragment to indicate start of collection] [Fragment to indicate start of member 1] // this has locator for member 1 ...0 or more fragments if needed for nested types, subtypes of member 1 ...
- the pre-existing data starting at offset 's' is shifted by 'n' bytes and the 'gap' created is filled with the supplied 'n' bytes.
- implementations are smart enough not to actually shift huge amounts of data. They achieve it using an index structure built on top of the byte stream. 3. Variation of 1 where data being read is requested in the form of an object that supports byte stream interface. 4. Variation of 2, where new data to be inserted is provided in the form of another object that supports byte stream interface. 5. Replacing 'n' bytes starting at some specified offset 's' with the supplied data.
- the fragment corresponding to the path must be found, except when a null UDT is encountered half-way through, in which case we can not traverse further and the fragment can be considered not found. For example, when looking for 'manager' field inside a 'department' UDT, if the fragment for 'department' object itself is a null fragment, then this method returns FALSE to indicate that the fragment for 'manager' is not found. [0093] Note that schema evolution introduces another situation where the fragment corresponding to a path can be missing even if the path is valid. Here is the basic algorithm of
- LocateFragment Initially, currentPath in the FragmentStream object is an empty path, and the current fragment is the first fragment.
- BOOLEAN FragmentStream :LocateFragment(Path targetPath)
- FragmentStream :AdvanceTillStep(). Further to locating a fragment, the "advance till step" operation may also be used. This method compares two steps according to the following rules. First, a 'nesting step' is less than another 'nesting step' if fragment ID in the former is less than that in the later. Second, an 'inheritance step' is less than another 'inheritance step' if depth in the former is less than that in the latter. Third, a 'locator step' is less than another 'locator step' if the locator in the former is less than that in the latter.
- a 'nesting step' is always less than 'inheritance step' (as we store all nested fields before the fields from subtypes).
- a 'locator step' is incomparable with 'nesting step' or an 'inheritance step' and it is an error to attempt such a comparison. For example, refer to the following algorithm:
- FragmentStream : AdvanceTillStep(Step# I, Path targetPath)
- FragmentStream :GefNextFragment()
- Selection of a primitive field involves first locating the fragment containing the primitive field using its path.
- the payload of this fragment is in record format and has the primitive field.
- Operation 5 Updating a primitive field. Updating a primitive field can be accomplished in three steps: First, locate the fragment containing the primitive field using its path in the same way as selecting a primitive field. Next, make a copy of the payload of the fragment and use standard optimized record manipulation code to replace the old value of the primitive field that needs to be updated with the new value. This gives a new payload, which could be longer or shorter than the original payload. Third, update the fragment by replacing old payload with the new payload.
- Operation 6 Copying an entire embedded UDT. Copying out an entire embedded UDT involves first using locateFragmentQ, set forth above, to locate the fragment that marks the beginning of the embedded UDT from a path of the embedded UDT. Second, one can use a CopyOutFragmentSequenceQ function explained below to copy out the fragments belonging to the embedded UDT. [0099] Further to copying a UDT, a FragmentStream: : CopyOutFragmentSequenceQ function may be employed, using the following basic algorithm:
- FragmentStream :CopyOutFragmentSequence(FragmentStream destination)
- FragmentStream :CanContinueNavigation(Path pathToThisUDT, BOOLEAN lastFragment // OUTPUT parameter)
- Operation 7 Removing all fragments of a embedded UDT. Similar to
- CopyOutFragmentSequenceQ a method DeleteFragmentSequenceQ is provided to delete all the fragments belonging to an embedded UDT.
- the underlying ByteSfream class can be used to remove the bytes for that fragment. Special processing is needed if the fragment is filestream fragment to actually delete the underlying file.
- FragmentStream: :ReplaceFragmentSequenceQ An algorithm referred to by the inventors as "FragmentStream: :ReplaceFragmentSequenceQ" can first locate an embedded UDT using its path, next use DeleteFragmentSequenceQ to delete all the fragments that belong to the embedded UDT, and finally read the fragments for the new UDT and insert them at the current location.
- the underlying ByteSfream class can be used to put the bytes for the new fragment. Special processing is needed to insert filestream fragment as the file needs to be created with the proper data, and pointer to that file needs to be put in the fragment.
- Operation 9 Inserting a collection member.
- FragmentStream :InsertCollectionElement(): first, locate the collection in the B using path to the collection. Next, find a locator and position of insert. As mentioned in earlier, if a collection member was deleted earlier, it results in a 'gap' in the locators. If any such gap exists, the unused locator is assigned to the new member and it is inserted such that all members are laid out in increasing order of locators.
- Operation 10 Deleting a collection member.
- An algorithm referred to by the inventors as "FragmentStream: :DeleteCollectionElementQ" can specify a member to delete is using its locator. Deletion involves first locating the collection using its path, and next locating the member to delete within the collection. Note that this is a simpler problem that locating a fragment given its path, because we are just dealing with locator step here. So similar logic as in LocateFragment method can be used for this.
- Operation 11 Updating an entire collection or a single collection member. Replacement of an entire collection with a different collection is done in the same way as replacing an embedded UDT with another UDT. Similarly, once a collection member has been located, updating it can be done in the same way as updating an embedded UDT.
- Operation 12 Selecting or updating multiple fields of a UDT. When selecting or updating multiple fields, the following optimizations are performed: First, ordering the selects/updates. Comparison and ordering of two steps has been explained above. Path can be considered as a string of steps and a 'lexicographical' ordering can be defined on paths. Refer to the following algorithm:
- Operation 14 Lazy Materialization. When sending a serialization of a UDT from server to client, sending LOB data and file data from filestream fields tend to be the most time consuming factor. So the fragment sfream manager can provide a 'lazy materialization' option. [0110] When the serialization of a UDT is requested with lazy materialization option, 'cookies' are returned in place of LOB/filestream data. Caller can subsequently ask for the full LOB/filestream data by passing the path of the LOB/filestream fragment and the 'cookie'. The path and the cookie will give enough information for the fragment stream manager to retrieve the LOB/filestream data. [0111] Operation 15: Schema evolution.
- Schema evolution refers to changing the UDT by adding, removing, or modifying fields (such as changing data type of a field) of a UDT, or changing the inheritance hierarchy by defining new UDTs etc. Such changes may impact instances of UDT that have already been persisted.
- a simple solution is to ensure that any field IDs and fragment IDs assigned to existing fields continue to remain the same when new fields are added. Then, addition of new fields to a UDT can be supported without modifying any pre-existing persisted instances of the UDT.
- the methods and apparatus of the present invention may take the form of program code (i.e., instructions) embodied in tangible media, such as floppy diskettes, CD-ROMs, hard drives, or any other machine-readable storage medium wherein, when the program code is loaded into and executed by a machine, such as a computer, the machine becomes an apparatus for practicing the invention.
- the computing device In the case of program code execution on programmable computers, the computing device generally includes a processor, a storage medium readable by the processor (including volatile and non- volatile memory and/or storage elements), at least one input device, and at least one output device.
- One or more programs that may implement or utilize the user interface techniques of the present invention are preferably implemented in a high level procedural or object oriented programming language to communicate with a computer system.
- the program(s) can be implemented in assembly or machine language, if desired.
- the language may be a compiled or interpreted language, and combined with hardware implementations.
- exemplary embodiments refer to utilizing the present invention in the context of one or more stand-alone computer systems, the invention is not so limited, but rather may be implemented in connection with any computing environment, such as a network or distributed computing environment.
- the present invention may be implemented in or across a plurality of processing chips or devices, and storage may similarly be effected across a plurality of devices.
- Such devices might include personal computers, network servers, handheld devices, supercomputers, or computers integrated into other systems such as automobiles and airplanes. Therefore, the present invention should not be limited to any single embodiment, but rather should be construed in breadth and scope in accordance with the appended claims.
- APPENDIX A FRAGMENT VALIDATION PROCESSES
- TypeMod_CollectionElement 0x8
- TypeMod_SelfTerminator 0x10
- TypeMod_NullFragment 0x20
- TypeMod_Subtype 0x40
- TypeMod_Max OxFO
- TypeMod_Mask 0xF8
- a symbol in quotes "" is a terminal.
- "self-terminating bin frag” represents a terminal.
- the various terminal symbols are defined in the previous section.
- a symbol in angle brackets ⁇ > represents a non-terminal.
- ⁇ containment frag> is a non-terminal.
- a symbol in curly braces ⁇ indicates that symbol may be repeated zero or more times.
- ⁇ ⁇ containment frag> ⁇ indicates there may be zero or more instances of ⁇ containment frag>.
- Annotation fragments can exist anywhere in the stream.
Landscapes
- Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Software Systems (AREA)
- Physics & Mathematics (AREA)
- General Engineering & Computer Science (AREA)
- General Physics & Mathematics (AREA)
- Databases & Information Systems (AREA)
- Data Mining & Analysis (AREA)
- Computational Linguistics (AREA)
- Mathematical Physics (AREA)
- Information Retrieval, Db Structures And Fs Structures Therefor (AREA)
Abstract
Description
Claims
Priority Applications (2)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
EP04779553A EP1618487A4 (en) | 2004-04-09 | 2004-07-29 | Systems and methods for fragment-based serialization |
JP2007507295A JP2007532998A (en) | 2004-04-09 | 2004-07-29 | Fragment-based serialization systems and methods |
Applications Claiming Priority (2)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
US10/821,687 | 2004-04-09 | ||
US10/821,687 US20050234986A1 (en) | 2004-04-09 | 2004-04-09 | Systems and methods for fragment-based serialization |
Publications (1)
Publication Number | Publication Date |
---|---|
WO2005103937A1 true WO2005103937A1 (en) | 2005-11-03 |
Family
ID=35097508
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
PCT/US2004/024539 WO2005103937A1 (en) | 2004-04-09 | 2004-07-29 | Systems and methods for fragment-based serialization |
Country Status (6)
Country | Link |
---|---|
US (2) | US20050234986A1 (en) |
EP (1) | EP1618487A4 (en) |
JP (1) | JP2007532998A (en) |
KR (1) | KR20070053083A (en) |
CN (1) | CN1761956A (en) |
WO (1) | WO2005103937A1 (en) |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP2006277742A (en) * | 2005-03-28 | 2006-10-12 | Microsoft Corp | System and method for performing streaming check on data format for udt |
Families Citing this family (38)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20050234986A1 (en) | 2004-04-09 | 2005-10-20 | Microsoft Corporation | Systems and methods for fragment-based serialization |
US20080040498A1 (en) * | 2006-08-10 | 2008-02-14 | Nokia Corporation | System and method of XML based content fragmentation for rich media streaming |
US7801886B1 (en) * | 2006-10-10 | 2010-09-21 | Intuit Inc. | Method and apparatus for performing database operations involving custom fields |
CN101192148B (en) * | 2006-12-01 | 2012-02-01 | 深圳迈瑞生物医疗电子股份有限公司 | New and old application program compatible data processing method and its data storage method |
US7761411B2 (en) * | 2007-07-20 | 2010-07-20 | Oracle International Corporation | Delta operations on a large object in a database |
US8626720B2 (en) | 2008-02-11 | 2014-01-07 | International Business Machines Corporation | System and method of reconstructing complex custom objects |
US20100332529A1 (en) * | 2009-06-24 | 2010-12-30 | Microsoft Corporation | Mapping Of Metadata Between A Web Service And A Line-Of-Business System |
US8417714B2 (en) * | 2010-01-22 | 2013-04-09 | Oracle International Corporation | Techniques for fast and scalable XML generation and aggregation over binary XML |
US10289636B2 (en) * | 2010-02-08 | 2019-05-14 | Here Global B.V. | Virtual table generator for analyzing geographic databases |
US8756329B2 (en) | 2010-09-15 | 2014-06-17 | Oracle International Corporation | System and method for parallel multiplexing between servers in a cluster |
US8954475B2 (en) * | 2011-11-10 | 2015-02-10 | Microsoft Technology Licensing, Llc | Deep cloning of objects using binary format |
CN104077335B (en) * | 2013-05-07 | 2017-05-03 | 腾讯科技(深圳)有限公司 | Methods, devices and system for serializing and deserializing structured data |
US9560136B2 (en) * | 2014-08-07 | 2017-01-31 | Sap Se | High speed communication protocol |
US10558495B2 (en) | 2014-11-25 | 2020-02-11 | Sap Se | Variable sized database dictionary block encoding |
US10042552B2 (en) | 2014-11-25 | 2018-08-07 | Sap Se | N-bit compressed versioned column data array for in-memory columnar stores |
US9824134B2 (en) | 2014-11-25 | 2017-11-21 | Sap Se | Database system with transaction control block index |
US10725987B2 (en) | 2014-11-25 | 2020-07-28 | Sap Se | Forced ordering of a dictionary storing row identifier values |
US10474648B2 (en) | 2014-11-25 | 2019-11-12 | Sap Se | Migration of unified table metadata graph nodes |
US10127260B2 (en) | 2014-11-25 | 2018-11-13 | Sap Se | In-memory database system providing lockless read and write operations for OLAP and OLTP transactions |
US9875024B2 (en) | 2014-11-25 | 2018-01-23 | Sap Se | Efficient block-level space allocation for multi-version concurrency control data |
US9779104B2 (en) | 2014-11-25 | 2017-10-03 | Sap Se | Efficient database undo / redo logging |
US10552402B2 (en) | 2014-11-25 | 2020-02-04 | Amarnadh Sai Eluri | Database lockless index for accessing multi-version concurrency control data |
US9798759B2 (en) | 2014-11-25 | 2017-10-24 | Sap Se | Delegation of database post-commit processing |
US9965504B2 (en) | 2014-11-25 | 2018-05-08 | Sap Se | Transient and persistent representation of a unified table metadata graph |
US9891831B2 (en) | 2014-11-25 | 2018-02-13 | Sap Se | Dual data storage using an in-memory array and an on-disk page structure |
US9898551B2 (en) | 2014-11-25 | 2018-02-20 | Sap Se | Fast row to page lookup of data table using capacity index |
US9792318B2 (en) | 2014-11-25 | 2017-10-17 | Sap Se | Supporting cursor snapshot semantics |
US9513811B2 (en) * | 2014-11-25 | 2016-12-06 | Sap Se | Materializing data from an in-memory array to an on-disk page structure |
US10255309B2 (en) | 2014-11-25 | 2019-04-09 | Sap Se | Versioned insert only hash table for in-memory columnar stores |
US10296611B2 (en) * | 2014-11-25 | 2019-05-21 | David Wein | Optimized rollover processes to accommodate a change in value identifier bit size and related system reload processes |
US10732796B2 (en) | 2017-03-29 | 2020-08-04 | Microsoft Technology Licensing, Llc | Control of displayed activity information using navigational mnemonics |
US10671245B2 (en) | 2017-03-29 | 2020-06-02 | Microsoft Technology Licensing, Llc | Collection and control of user activity set data and activity set user interface |
US10693748B2 (en) | 2017-04-12 | 2020-06-23 | Microsoft Technology Licensing, Llc | Activity feed service |
US10853220B2 (en) | 2017-04-12 | 2020-12-01 | Microsoft Technology Licensing, Llc | Determining user engagement with software applications |
US11580088B2 (en) | 2017-08-11 | 2023-02-14 | Microsoft Technology Licensing, Llc | Creation, management, and transfer of interaction representation sets |
US20190050378A1 (en) * | 2017-08-11 | 2019-02-14 | Microsoft Technology Licensing, Llc | Serializable and serialized interaction representations |
US10554591B2 (en) * | 2017-08-30 | 2020-02-04 | Facebook, Inc. | Techniques for efficient messaging client communication |
US20220398235A1 (en) * | 2021-06-11 | 2022-12-15 | Actian Corporation | Method and apparatus for storing object tokens in a database |
Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US5568639A (en) * | 1993-11-24 | 1996-10-22 | Menai Corporation | Method and apparatus for providing an object-oriented file structuring system on a computer |
US5634123A (en) * | 1993-07-08 | 1997-05-27 | Park City Group, Inc. | Data management using nested records and code points |
US20020143521A1 (en) * | 2000-12-15 | 2002-10-03 | Call Charles G. | Methods and apparatus for storing and manipulating variable length and fixed length data elements as a sequence of fixed length integers |
Family Cites Families (13)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US5600831A (en) * | 1994-02-28 | 1997-02-04 | Lucent Technologies Inc. | Apparatus and methods for retrieving information by modifying query plan based on description of information sources |
US5727203A (en) * | 1995-03-31 | 1998-03-10 | Sun Microsystems, Inc. | Methods and apparatus for managing a database in a distributed object operating environment using persistent and transient cache |
US6134558A (en) * | 1997-10-31 | 2000-10-17 | Oracle Corporation | References that indicate where global database objects reside |
US6012067A (en) * | 1998-03-02 | 2000-01-04 | Sarkar; Shyam Sundar | Method and apparatus for storing and manipulating objects in a plurality of relational data managers on the web |
GB2366926A (en) * | 2000-09-06 | 2002-03-20 | Sony Uk Ltd | Combining material and data |
US7865596B2 (en) * | 2000-11-02 | 2011-01-04 | Oracle America, Inc. | Switching system for managing storage in digital networks |
US6631130B1 (en) * | 2000-11-21 | 2003-10-07 | Transwitch Corporation | Method and apparatus for switching ATM, TDM, and packet data through a single communications switch while maintaining TDM timing |
US6904454B2 (en) * | 2001-03-21 | 2005-06-07 | Nokia Corporation | Method and apparatus for content repository with versioning and data modeling |
FR2836568A1 (en) * | 2002-02-28 | 2003-08-29 | Bull Sa | Data conversion method for smart cards, involves conversion of structured software object from software agent in embedded platform to data set arranged in linear data sequence by serialization agent |
US7152942B2 (en) * | 2002-12-02 | 2006-12-26 | Silverbrook Research Pty Ltd | Fixative compensation |
US7051042B2 (en) * | 2003-05-01 | 2006-05-23 | Oracle International Corporation | Techniques for transferring a serialized image of XML data |
US6941316B2 (en) * | 2003-10-23 | 2005-09-06 | Microsoft Corporation | System and method for object persistence in a database store |
US20050234986A1 (en) | 2004-04-09 | 2005-10-20 | Microsoft Corporation | Systems and methods for fragment-based serialization |
-
2004
- 2004-04-09 US US10/821,687 patent/US20050234986A1/en not_active Abandoned
- 2004-07-29 CN CNA2004800017149A patent/CN1761956A/en active Pending
- 2004-07-29 EP EP04779553A patent/EP1618487A4/en not_active Withdrawn
- 2004-07-29 KR KR1020057010619A patent/KR20070053083A/en not_active Application Discontinuation
- 2004-07-29 JP JP2007507295A patent/JP2007532998A/en active Pending
- 2004-07-29 WO PCT/US2004/024539 patent/WO2005103937A1/en not_active Application Discontinuation
-
2005
- 2005-06-15 US US11/154,496 patent/US7702637B2/en not_active Expired - Fee Related
Patent Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US5634123A (en) * | 1993-07-08 | 1997-05-27 | Park City Group, Inc. | Data management using nested records and code points |
US5568639A (en) * | 1993-11-24 | 1996-10-22 | Menai Corporation | Method and apparatus for providing an object-oriented file structuring system on a computer |
US20020143521A1 (en) * | 2000-12-15 | 2002-10-03 | Call Charles G. | Methods and apparatus for storing and manipulating variable length and fixed length data elements as a sequence of fixed length integers |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP2006277742A (en) * | 2005-03-28 | 2006-10-12 | Microsoft Corp | System and method for performing streaming check on data format for udt |
Also Published As
Publication number | Publication date |
---|---|
US20050234986A1 (en) | 2005-10-20 |
KR20070053083A (en) | 2007-05-23 |
US20050234868A1 (en) | 2005-10-20 |
CN1761956A (en) | 2006-04-19 |
EP1618487A1 (en) | 2006-01-25 |
EP1618487A4 (en) | 2010-02-17 |
US7702637B2 (en) | 2010-04-20 |
JP2007532998A (en) | 2007-11-15 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US7702637B2 (en) | Systems and methods for fragment-based serialization | |
EP0662228B1 (en) | Apparatus for data storage and retrieval | |
JP5506290B2 (en) | Associative memory system and method using searchable blocks | |
US8335889B2 (en) | Content addressable storage systems and methods employing searchable blocks | |
US6339777B1 (en) | Method and system for handling foreign key update in an object-oriented database environment | |
KR101119290B1 (en) | Information processing apparatus, database system, information processing method, and program | |
JP5407043B2 (en) | Efficient piecewise update of binary encoded XML data | |
EP1066570B1 (en) | Fast string searching and indexing | |
US7370270B2 (en) | XML schema evolution | |
KR101129083B1 (en) | Expression grouping and evaluation | |
US20020156811A1 (en) | System and method for converting an XML data structure into a relational database | |
KR101110988B1 (en) | Device for structured data transformation | |
JP2004038960A (en) | System and method of managing file name for file system filter driver | |
US20020188614A1 (en) | Software-based methodology for the storage and retrieval of diverse information | |
KR20060045659A (en) | Method and system for renaming consecutive keys in a b-tree | |
US20100030726A1 (en) | Mechanism For Deferred Rewrite Of Multiple Xpath Evaluations Over Binary XML | |
JPH05189490A (en) | Method and apparatus for saving and retrieving result of function | |
AU2019425530B2 (en) | Systems and methods for hash chain migrations | |
WO2002027486A1 (en) | Methods and apparatus for generating unique identifiers for software components | |
US6963865B2 (en) | Method system and program product for data searching | |
US6092092A (en) | Gap-based style-run array mechanism | |
EP2164005B1 (en) | Content addressable storage systems and methods employing searchable blocks | |
Haw et al. | Improving the support for XML dynamic updates using a hybridization labeling scheme (ORD-GAP) | |
JP4521413B2 (en) | Database management system and program | |
CN104484381B (en) | For searching for the method and system of multiple strings |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
WWE | Wipo information: entry into national phase |
Ref document number: 1020057010619 Country of ref document: KR |
|
WWE | Wipo information: entry into national phase |
Ref document number: 2560/DELNP/2005 Country of ref document: IN |
|
WWE | Wipo information: entry into national phase |
Ref document number: 2004779553 Country of ref document: EP |
|
WWE | Wipo information: entry into national phase |
Ref document number: 2007507295 Country of ref document: JP Ref document number: 20048017149 Country of ref document: CN |
|
AK | Designated states |
Kind code of ref document: A1 Designated state(s): AE AG AL AM AT AU AZ BA BB BG BR BW BY BZ CA CH CN CO CR CU CZ DE DK DM DZ EC EE EG ES FI GB GD GE GH GM HR HU ID IL IN IS JP KE KG KP KR KZ LC LK LR LS LT LU LV MA MD MG MK MN MW MX MZ NA NI NO NZ OM PG PH PL PT RO RU SC SD SE SG SK SL SY TJ TM TN TR TT TZ UA UG US UZ VC VN YU ZA ZM ZW |
|
AL | Designated countries for regional patents |
Kind code of ref document: A1 Designated state(s): BW GH GM KE LS MW MZ NA SD SL SZ TZ UG ZM ZW AM AZ BY KG KZ MD RU TJ TM AT BE BG CH CY CZ DE DK EE ES FI FR GB GR HU IE IT LU MC NL PL PT RO SE SI SK TR BF BJ CF CG CI CM GA GN GQ GW ML MR NE SN TD TG |
|
121 | Ep: the epo has been informed by wipo that ep was designated in this application | ||
WWP | Wipo information: published in national office |
Ref document number: 2004779553 Country of ref document: EP |
|
NENP | Non-entry into the national phase |
Ref country code: DE |
|
WWW | Wipo information: withdrawn in national office |
Ref document number: DE |