The Visitor class is used to accumulate and
inspect state during the depth-first traversal of the JSON tree and
make the decision of how to split the JSON file. It checks if the
current object or array is the target to split. If it is, convert
the target object or array into buffered handles or
DocumentWriteOperations.
This method inspects the state of the current
object and decides whether to split it or not. This method can be
overridden to accumulate and inspect state during the depth-first
traversal of the JSON tree and make the decision of whether to
split.
Parameters:
containerKey - The key of the object which the
value contains current object
Returns:
different operations to either process current object, go down
the JSON tree or skip current object
This method inspects the state of the current
array and decides whether to split it or not. This method can be
overridden to accumulate and inspect state during the depth-first
traversal of the JSON tree and make the decision of whether to
split.
Parameters:
containerKey - The key of the object which the
value contains current array
Returns:
different operations to either process current array, go down
the JSON tree or skip current array