org.exist.xquery
Class CachedResult
java.lang.Object
org.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.
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
cachedResult
protected final Sequence cachedResult
cachedContext
protected final Sequence cachedContext
cachedItem
protected final Item cachedItem
timestamp
protected final int timestamp
CachedResult
public CachedResult(Sequence context,
Item contextItem,
Sequence result)
getResult
public Sequence getResult()
isValid
public boolean isValid(Sequence context,
Item contextItem)