org.exist.xquery
Class CachedResult

java.lang.Object
  extended byorg.exist.xquery.CachedResult

public class CachedResult
extends java.lang.Object

This class is used to hold an intermediate result that can be cached. Caching results is effective if a subexpression is executed more than once and the current evaluation context doesn't change between invocations.

Author:
wolf

Field Summary
protected  Sequence cachedContext
           
protected  Sequence cachedResult
           
protected  int timestamp
           
 
Constructor Summary
CachedResult(NodeSet context, Sequence result)
           
 
Method Summary
 Sequence getResult()
           
 boolean isValid(Sequence context)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

cachedResult

protected final Sequence cachedResult

cachedContext

protected final Sequence cachedContext

timestamp

protected final int timestamp
Constructor Detail

CachedResult

public CachedResult(NodeSet context,
                    Sequence result)
Method Detail

getResult

public Sequence getResult()

isValid

public boolean isValid(Sequence context)


<oXygen/> XML Editor provides support for editing and debugging XQuery expressions against the eXist XML Database.