public class SnapshotFeed extends AbsorptionFeed
AbsorptionFeed.PendingItem
pipelineConfiguration, systemId
Constructor and Description |
---|
SnapshotFeed(WatchManager watchManager,
ItemFeed result,
XPathContext context) |
Modifier and Type | Method and Description |
---|---|
static Trigger |
getWatch(ItemFeed 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.
|
append, endSelectedParentNode, setHasFailed, startSelectedParentNode
attribute, characters, comment, endDocument, endElement, namespace, processingInstruction, setUnparsedEntity, startContent, startDocument, startElement, startElement
append, close, dynamicError, getContext, getExpression, getResultFeed, getTerminator, hasFailed, open, processItems, setExpression, setTerminator
getNextOutputter, open, usesTypeAnnotations
getConfiguration, getPipelineConfiguration, getStringReceiver, getSystemId, namespaces, setPipelineConfiguration, setSystemId
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
handlesAppend
public SnapshotFeed(WatchManager watchManager, ItemFeed result, XPathContext context)
public static Trigger getWatch(ItemFeed 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)
AbsorptionFeed
processGroundedItem
in class AbsorptionFeed
item
- the grounded itemCopyright (c) 2004-2022 Saxonica Limited. All rights reserved.