public static class JSONSplitter.ArrayVisitor extends JSONSplitter.Visitor<StringHandle>
| Constructor and Description |
|---|
ArrayVisitor() |
| Modifier and Type | Method and Description |
|---|---|
void |
decrementArrayDepth()
Decrement array depth by 1 while traversing the
JSON tree.
|
void |
endArray(java.lang.String containerKey)
Receives a notification when hitting end of
array, and decreases arrayDepth.
|
int |
getArrayDepth()
Get the current array depth in the JSON
tree.
|
void |
incrementArrayDepth()
Increment array depth by 1 while traversing the
JSON tree.
|
StringHandle |
makeBufferedHandle(com.fasterxml.jackson.core.JsonParser containerParser)
Construct buffered StringHandles from
JsonParser.
|
NodeOperation |
startArray(java.lang.String containerKey)
Use the arrayDepth and containerKey to check if
the current array is the target to split.
|
NodeOperation |
startObject(java.lang.String containerKey)
Use the arrayDepth and containerKey to check if
the current object is the target to split.
|
endObject,
makeDocumentWriteOperation,
serializepublic NodeOperation startObject(java.lang.String containerKey)
startObject in class JSONSplitter.Visitor<StringHandle>containerKey - The key of the object which the
value contains current objectpublic NodeOperation startArray(java.lang.String containerKey)
startArray in class JSONSplitter.Visitor<StringHandle>containerKey - The key of the object which the
value contains current arraypublic void endArray(java.lang.String containerKey)
endArray in class JSONSplitter.Visitor<StringHandle>containerKey - The key of the object which the
value contains current arraypublic int getArrayDepth()
public void incrementArrayDepth()
public void decrementArrayDepth()
public StringHandle makeBufferedHandle(com.fasterxml.jackson.core.JsonParser containerParser)
makeBufferedHandle in class JSONSplitter.Visitor<StringHandle>containerParser - the JsonParser with target
object or arrayCopyright © 2024 MarkLogic Corporation. All Rights Reserved.