XmlQueryContext::setEvaluationType

API Ref

#include <DbXml.hpp>

void XmlQueryContext::setEvaluationType(EvaluationType type); EvaluationType XmlQueryContext::getEvaluationType();


Description: XmlQueryContext::setEvaluationType

The XmlQueryContext::setEvaluationType method allows the application to set the query evaluation type to "eager" or "lazy". Eager evaluation means that the whole query is executed and its resultant values derived and stored in-memory before the call to XmlContainer::queryWithXPath returns. Lazy evaluation means that minimal processing is performed before XmlContainer::queryWithXPath returns, and the remaining processing is deferred until the result set is enumerated. As each call to XmlResults::next is called the next resultant value is determined.

Parameters

type
The evaluation type must be specified as either:

XmlQueryContext::Eager
The query is executed and its resultant values are derived and stored in-memory before a call to XmlContainer::queryWithXPath returns.

XmlQueryContext::Lazy
Minimal processing is performed before XmlContainer::queryWithXPath returns, and the remaining processing is deferred until the result set is enumerated.

Description: XmlQueryContext::getEvaluationType

Discover the evaluation type defined for this XmlQueryContext.

Returns the evaluation type defined for this XmlQueryContext.


Class

XmlContainer, XmlDocument, XmlException, XmlIndexSpecification, XmlQueryContext, XmlQueryExpression, XmlResults, XmlUpdateContext, XmlValue

APIRef

Copyright (c) 1996-2003 Sleepycat Software, Inc. - All rights reserved.