T - The type of the handle used for each
split
public abstract static class XMLSplitter.Visitor<T extends XMLWriteHandle>
extends java.lang.Object
| Constructor and Description |
|---|
Visitor() |
| Modifier and Type | Method and Description |
|---|---|
void |
endElement(java.lang.String nsUri,
java.lang.String localName)
Receives a notification when hitting end
element.
|
abstract T |
makeBufferedHandle(javax.xml.stream.XMLStreamReader xmlStreamReader)
Construct buffered content handles with proper
types from XMLStreamReader.
|
DocumentWriteOperation |
makeDocumentWriteOperation(XMLSplitter.UriMaker uriMaker,
long count, T handle)
Construct buffered DocumentWriteOperations from
XMLStreamReader
|
java.lang.String |
serialize(javax.xml.stream.XMLStreamReader reader)
Serialize the target elements in XMLStreamReader
to Strings.
|
abstract NodeOperation |
startElement(XMLSplitter.StartElementReader startElementReader)
Use the methods in StartElementReader to check
if the current element is the one to split.
|
public abstract NodeOperation startElement(XMLSplitter.StartElementReader startElementReader)
startElementReader - inspects the start element
state
public void endElement(java.lang.String nsUri,
java.lang.String localName)
nsUri - the namespace URI of the target
elementlocalName - the local name of the target
elementpublic abstract T makeBufferedHandle(javax.xml.stream.XMLStreamReader xmlStreamReader)
xmlStreamReader - the XMLStreamReader with target
element as start element in the current statepublic DocumentWriteOperation makeDocumentWriteOperation(XMLSplitter.UriMaker uriMaker, long count, T handle)
uriMaker - the UriMake to construct the URI for
each documentcount - the count of each splithandle - the handle contains target elements as
contentpublic java.lang.String serialize(javax.xml.stream.XMLStreamReader reader)
reader - the XMLStreamReader with target element
as start element in the current stateCopyright © 2024 MarkLogic Corporation. All Rights Reserved.