@API(value=EXPERIMENTAL) public interface RecordCursorVisitor
RecordCursor
interface.
Note that the "ordering" of children of each RecordCursor
is determined by individual implementors.Modifier and Type | Method and Description |
---|---|
boolean |
visitEnter(RecordCursor<?> cursor)
Called on nodes in the record cursor tree in visit pre-order of the depth-first traversal of the tree.
|
boolean |
visitLeave(RecordCursor<?> cursor)
Called on nodes in the record cursor tree in visit post-order of the depth-first traversal of the tree.
|
boolean visitEnter(RecordCursor<?> cursor)
visitEnter()
is called on that node.cursor
- the cursor to visittrue
if the children of cursor
should be visited, and false
if they should not be visitedboolean visitLeave(RecordCursor<?> cursor)
visitLeave()
is called on that node.cursor
- the cursor to visittrue
if the subsequent siblings of the cursor
should be visited, and false
otherwise