public interface SizeAwareVisitor extends Visitor
| Modifier and Type | Method and Description | 
|---|---|
| void | visitArray(String name,
          List<Element> elements,
          long totalSize)Visits an array of elements. | 
| void | visitDocument(String name,
             List<Element> elements,
             long totalSize)Visits a sub-document element. | 
visit, visitArray, visitBinary, visitBoolean, visitDBPointer, visitDocument, visitDouble, visitInteger, visitJavaScript, visitJavaScript, visitLong, visitMaxKey, visitMinKey, visitMongoTimestamp, visitNull, visitObjectId, visitRegularExpression, visitString, visitSymbol, visitTimestampvoid visitArray(String name, List<Element> elements, long totalSize)
 The ArrayElement
 implementation ensures that the list of elements is always the same list.
 Visitors may use this fact to cache intermediate results.
 
name - The name of the element.elements - The elements in the array.totalSize - The total size of the
            ArrayElement.void visitDocument(String name, List<Element> elements, long totalSize)
 The DocumentElement
 implementation ensures that the list of elements is always the same list.
 Visitors may use this fact to cache intermediate results.
 
name - The name of the element.elements - The sub elements of the document.totalSize - The total size of the
            DocumentElement.Copyright © 2011–2014 Allanbank Consulting, Inc.. All rights reserved.