Please take our Survey
logo       

Choosing A Webhost:
A web hosting service is a type of Internet hosting service that allows individuals and organizations to provide their own website accessible via the World Wide Web. Web hosts are companies that provide space on a server they own for use by their clients as well as providing Internet connectivity, typically in a data center. Web hosts can also provide data center space and connectivity to the Internet for servers they do not own to be located in their data center, called colocation. more...

Re: some simple questions: msg#00045

text.xml.exist

Subject: Re: some simple questions

Hi René,

when are the maxDepth and treeLevelOrder increased? Is this done by checkTree() (ElementImpl.class) Or bij the nativeElementIndexer?
My quess is that this is done when reading the input stream (when a
xml file is being stored)

There are two places: 1) in Indexer.java when scanning the input stream, 2) in ElementImpl during an XUpdate operation.

When storing a document, does eXist first convert the input stream to a
temporary
DOM object to analyse it?

No, storing is SAX based. Indexer.java uses two passes through the doc: one to analyse the doc (and catch possible validation problems), another one to actually store the nodes.

eXist uses documentobjects, within these objects values like "the first child
id at a certain level" and "the max number of children nodes at a certain
level" are stored. Is this correct? Are these object stored?

We only store the max depth of the tree and the "max number of children at a certain level", i.e. the tree level order. The first child ids are calculated when the document is reloaded. Check org.exist.dom.DocumentImpl.write()/read().

The creation of the node id's and the spare ID's: which class has the method
for this action?

ElementImpl.appendChildInternal() does:

child.setGID(firstChildID() + children);

The treeLevelOrder in DocumentImpl.java represents the max number of children
@ a certain level: right?

yes.

What is a datapage? (the pages that are stored in dom.dbx) How can this be
described, is it an object? Where is it created?

Each of the .dbx files stores two types of pages: 1) btree pages, 2) data pages. The btree just maps keys to storage addresses, which point to the storage location of the value within the data page section. The storage address has two components: a) the page number of the data page, b) an in-page id to identify the record within the data page (see StorageAddress.java). Using an in-page id (tid) instead of an absolute offset allows us to relocate records within a page without changing the storage address pointer.

dom.dbx is maintained by class DOMFile.java. The pages containing the actual node data are represented by the internal class DOMPage, which wraps around Page. The structure of the pages is described at the top of DOMFile.java.

Wolfgang


-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now.
http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click


<Prev in Thread] Current Thread [Next in Thread>
Google Custom Search

Recently Viewed:
hardware.arm.at...    cms.citadel.dev...    video.gstreamer...    java.facelets.u...    misc.basics.qna...    web.wiki.instik...    network.uip.use...    xdg.devel/2003-...    tex.bibtex.bibd...    finance.quotesp...    ietf.zeroconf/2...    redhat.blinux.g...    suse.db2/2003-0...    php.phpesp/2004...    uml.devel/2003-...    gnome.labyrinth...    qnx.openqnx.dev...    boot-loaders.gr...    db.dataperfect....    audio.audacity....    linux.uclinux.m...    editors.j.devel...    os.openbsd.tech...    kde.users.multi...   
Home | advertise | OSDir is an inevitable website. super tiny logo

Free Magazines

Cisco News
Receive a free quarterly e-newsletter with exclusive articles on how Cisco IT uses its own products and solutions to enable the business.
subscribe

Systems Management News, the newspaper for IT systems administration and data center managers! Each issue of Systems Management News is chock-full of news and analysis to help you understand what's happening in your field.
subscribe

The Enterprise Newsweekly eWeek is the essential technology information source for builders of e-business.
subscribe

Oracle Magazine Oracle Magazine contains technology strategy articles, sample code, tips, Oracle and partner news, how to articles for developers and DBAs, and more. Oracle (NASDAQ: ORCL) is the world's largest enterprise software company.
subscribe

Total Telecom Total Telecom is "The Economist of the communications industry".
subscribe

Navigation