org.exist.xquery
Class CachedResult

java.lang.Object
  extended by org.exist.xquery.CachedResult

public class CachedResult
extends 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

Constructor Summary
CachedResult(Sequence context, Item contextItem, Sequence result)
           
 
Method Summary
 Sequence getResult()
           
 boolean isValid(Sequence context, Item contextItem)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CachedResult

public CachedResult(Sequence context,
                    Item contextItem,
                    Sequence result)
Method Detail

getResult

public Sequence getResult()

isValid

public boolean isValid(Sequence context,
                       Item contextItem)


Copyright (C) Wolfgang Meier. All rights reserved.