public class MultithreadedForEach extends ForEach
Modifier and Type | Class and Description |
---|---|
class |
MultithreadedForEach.MyRejectedExecutionHandelerImpl
Handles exceptions thrown in the thread pool manager
|
action, containsTailCall, select, threads
EFFECTIVE_BOOLEAN_VALUE, EVALUATE_METHOD, ITEM_FEED_METHOD, ITERATE_METHOD, locationId, MAX_SEQUENCE_LENGTH, MAX_STRING_LENGTH, PROCESS_METHOD, staticProperties, UNBOUNDED_LOWER, UNBOUNDED_UPPER, WATCH_METHOD
Constructor and Description |
---|
MultithreadedForEach(Expression select,
Expression action,
boolean containsTailCall,
Expression threads) |
Modifier and Type | Method and Description |
---|---|
Expression |
copy()
Copy an expression.
|
protected void |
explainThreads(ExpressionPresenter out)
Add the value of the saxon:threads attribute to the explain output
|
ExpressionCompiler |
getExpressionCompiler()
Return the compiler of the MultithreadedForEach expression
|
int |
getImplementationMethod()
An implementation of Expression must provide at least one of the methods evaluateItem(), iterate(), or process().
|
SequenceIterator |
iterate(XPathContext context)
Return an Iterator to iterate over the values of the sequence.
|
TailCall |
processLeavingTail(XPathContext context)
ProcessLeavingTail: called to do the real work of this instruction.
|
void |
shutdown() |
addToPathMap, checkPermittedContents, computeDependencies, computeSpecialProperties, createsNewNodes, explain, getActionExpression, getExpressionName, getInstructionNameCode, getItemType, getNumberOfThreadsExpression, getSelectExpression, getStreamingAdjunct, map, operands, optimize, promoteInst, replaceOperand, setActionExpression, setSelectExpression, toShortString, toString, typeCheck, unordered
assembleParams, assembleTunnelParams, computeCardinality, dynamicError, evaluateAsString, evaluateItem, getConstructType, getInstructionName, getIteratorFromProcessMethod, getSourceLocator, isXSLT, process, promote, toStreamingPattern
adoptChildExpression, checkForUpdatingSubexpressions, clearStreamabilityData, computeStaticProperties, doPromotion, dynamicError, effectiveBooleanValue, evaluatePendingUpdates, explain, getCardinality, getColumnNumber, getConfiguration, getContainer, getDependencies, getEvaluationMethod, getHostLanguage, getIntegerBounds, getIntrinsicDependencies, getLineNumber, getLocationId, getObjectName, getPosture, getProperties, getProperty, getPublicId, getSlotsUsed, getSpecialProperties, getStreamability, getSweep, getSystemId, hasVariableBinding, identityHashCode, implementsStaticTypeCheck, isIdentical, isSubtreeExpression, isUpdatingExpression, isVacuousExpression, iterateEvents, makeStreamingAdjunct, markTailFunctionCalls, operandList, resetLocalStaticProperties, setContainer, setEvaluationMethod, setFiltered, setFlattened, setLocationId, setPostureAndSweep, simplify, staticTypeCheck, suppressValidation, toPattern, typeError
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
getColumnNumber, getLineNumber, getPublicId, getSystemId
public MultithreadedForEach(Expression select, Expression action, boolean containsTailCall, Expression threads)
public Expression copy()
public int getImplementationMethod()
getImplementationMethod
in class ForEach
Expression.ITERATE_METHOD
or Expression.EVALUATE_METHOD
or
Expression.PROCESS_METHOD
public TailCall processLeavingTail(XPathContext context) throws XPathException
Instruction
processLeavingTail
in interface TailCallReturner
processLeavingTail
in class ForEach
context
- The dynamic context of the transformation, giving access to the current node,
the current variables, etc.XPathException
- if a dynamic error occurs during the evaluation
of the instructionpublic SequenceIterator iterate(XPathContext context) throws XPathException
iterate
in class ForEach
context
- supplies the context for evaluationXPathException
- if any dynamic error occurs evaluating the
expressionpublic void shutdown()
public ExpressionCompiler getExpressionCompiler()
getExpressionCompiler
in class ForEach
protected void explainThreads(ExpressionPresenter out)
explainThreads
in class ForEach
out
- the destination for explain outputCopyright (c) 2004-2014 Saxonica Limited. All rights reserved.