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, EVENT_FEED_METHOD, INHERITED_CONTEXT, INSPECTION_CONTEXT, ITEM_FEED_METHOD, ITERATE_METHOD, locationId, MAX_SEQUENCE_LENGTH, MAX_STRING_LENGTH, NAVIGATION_CONTEXT, NODE_VALUE_CONTEXT, PROCESS_METHOD, PUSH_SELECTION, staticProperties, UNBOUNDED_LOWER, UNBOUNDED_UPPER, W3C_CONSUMING, W3C_FREE_RANGING, W3C_GROUP_CONSUMING, W3C_MOTIONLESS, 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, getControlledExpression, getControllingExpression, getInstructionNameCode, getItemType, getNumberOfThreadsExpression, getSelectExpression, getStreamability, getStreamingAdjunct, iterateSubExpressionInfo, iterateSubExpressions, map, optimize, promoteInst, replaceSubExpression, setActionExpression, setSelectExpression, simplify, toString, typeCheck
assembleParams, assembleTunnelParams, computeCardinality, dynamicError, evaluateAsString, evaluateItem, getConstructType, getExpressionName, getInstructionName, getIteratorFromProcessMethod, getSourceLocator, isXSLT, process, promote
adoptChildExpression, checkForUpdatingSubexpressions, computeStaticProperties, doPromotion, dynamicError, effectiveBooleanValue, evaluatePendingUpdates, explain, getCardinality, getColumnNumber, getColumnNumber, getContainer, getDependencies, getEvaluationMethod, getExecutable, getHostLanguage, getIntegerBounds, getIntrinsicDependencies, getLineNumber, getLineNumber, getLocationId, getLocationProvider, getObjectName, getProperties, getProperty, getPublicId, getSlotsUsed, getSpecialProperties, getSystemId, getSystemId, hasVariableBinding, implementsStaticTypeCheck, isSubtreeExpression, isUpdatingExpression, isVacuousExpression, iterateEvents, markTailFunctionCalls, resetLocalStaticProperties, setContainer, setEvaluationMethod, setFiltered, setFlattened, setLocationId, staticTypeCheck, suppressValidation, toPattern, toStreamingPattern, 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-2013 Saxonica Limited. All rights reserved.