Class ODocumentFieldWalker

java.lang.Object
com.orientechnologies.orient.core.db.document.ODocumentFieldWalker

public class ODocumentFieldWalker extends Object
This class allows to walk through all fields of single document using instance of ODocumentFieldVisitor class.

Only current document and embedded documents will be walked. Which means that all embedded collections will be visited too and all embedded documents which are contained in this collections also will be visited.

Fields values can be updated/converted too. If method ODocumentFieldVisitor.visitField(OType, OType, Object) will return new value original value will be updated but returned result will not be visited by ODocumentFieldVisitor instance.

If currently processed value is collection or map of embedded documents or embedded document itself then method ODocumentFieldVisitor.goDeeper(OType, OType, Object) is called, if it returns false then this collection will not be visited by ODocumentFieldVisitor instance.

Fields will be visited till method ODocumentFieldVisitor.goFurther(OType, OType, Object, Object) returns true.

  • Constructor Details

    • ODocumentFieldWalker

      public ODocumentFieldWalker()
  • Method Details