发明名称 Representing a tree structure on a flat structure
摘要 An apparatus and a method for accessing data at a server node of a data grid system with distributed cache is described. The server receives a request to access a logical tree structure of cache nodes at a tree structure interface module of the server. The tree structure interface operates on a flat map structure of the cache nodes corresponding to the logical tree structure, transparent to the request. Each cache node is defined and operated on using a two-dimensional coordinate including a fully qualified name and a type.
申请公布号 US9092335(B2) 申请公布日期 2015.07.28
申请号 US201012732530 申请日期 2010.03.26
申请人 Red Hat, Inc. 发明人 Surtani Manik
分类号 G06F12/00;G06F13/00;G06F13/28;G06F12/08;G06F17/30 主分类号 G06F12/00
代理机构 Lowenstein Sandler LLP 代理人 Lowenstein Sandler LLP
主权项 1. A method comprising: storing a flat map structure that corresponds to a plurality of cache nodes in a logical tree structure distributed in a data grid system, wherein the data grid system comprises a plurality of storage devices at a plurality of servers, wherein each of the plurality of cache nodes below a root node in the logical tree structure has one parent node and is configurable to have zero or more child nodes, wherein each of the plurality of cache nodes stores multiple attributes, wherein the flat map structure comprises a plurality of pairs of entries, wherein each cache node in the plurality of cache nodes corresponds to a pair of entries in the plurality of pairs of entries, wherein each entry in the pair of entries comprises a type and a fully qualified name, wherein the fully qualified name comprises a path to the cache node within the logical tree structure, wherein the type identifies a first one of the pair of entries as a data entry and a second one of the pair of entries as a structural entry, wherein the data entry stores a key and value pair for each of the multiple attributes of the cache node, and wherein the structural entry stores one or more pointers to the parent node and the zero or more child nodes of the cache node; receiving a request to access at least one cache node in the plurality of cache nodes using the logical tree structure; and in response to receiving the request and transparent to the logical tree structure of the request, accessing, by a processing device, at least one pair of entries in the plurality of pairs of entries in the flat map structure corresponding to the at least one cache node in the logical tree structure of the request using a hash value of the fully qualified name of the at least one cache node corresponding to the at least one pair of entries.
地址 Raleigh NC US
您可能感兴趣的专利