public class SnapshotFeed extends AbsorptionFeed
AbsorptionFeed.PendingItem
Constructor and Description |
---|
SnapshotFeed(WatchManager watchManager,
Feed result,
XPathContext context) |
Modifier and Type | Method and Description |
---|---|
static Trigger |
getWatch(Feed result,
Pattern selection,
WatchManager wm,
XPathContext context)
Create a Watch whose effect is to create snapshots of the selected (streamed) nodes and pass
them to the supplied feed
|
protected AbsorptionFeed.PendingItem |
makePendingItem(int sequenceNr,
FleetingParentNode node)
Create a pending item (appropriate to the subclass) containing the data needed
to compute the result value for one node in the streamed input sequence
|
protected Sequence |
processGroundedItem(Item item)
Process a grounded item in the input sequence: either a streamed leaf node such as an attribute
or text node, or an atomic value, or a non-streamed element or document node injected into the
sequence for example by use of the comma operator.
|
endSelectedParentNode, processItem, setHasFailed, startSelectedParentNode
close, dynamicError, getContext, getExpression, getPipelineConfiguration, getReceiver, getResult, getTerminator, hasFailed, open, processItems, setExpression, setPipelineConfiguration, setTerminator
public SnapshotFeed(WatchManager watchManager, Feed result, XPathContext context)
public static Trigger getWatch(Feed result, Pattern selection, WatchManager wm, XPathContext context)
result
- The feed to which the snapshot nodes should be suppliedselection
- defines the nodes to be selectedwm
- The WatchManager that will notify the selected nodescontext
- the XPath evaluation contextprotected AbsorptionFeed.PendingItem makePendingItem(int sequenceNr, FleetingParentNode node) throws XPathException
AbsorptionFeed
makePendingItem
in class AbsorptionFeed
sequenceNr
- the sequence number of this node within a set of nested nodesnode
- the streamed input nodeXPathException
- if a dynamic error is detected at this stageprotected Sequence processGroundedItem(Item item) throws XPathException
AbsorptionFeed
processGroundedItem
in class AbsorptionFeed
item
- the grounded itemXPathException
- if a dynamic error occursCopyright (c) 2004-2018 Saxonica Limited. All rights reserved.