Class OLinksRewriter
java.lang.Object
com.orientechnologies.orient.core.db.tool.importer.OLinksRewriter
- All Implemented Interfaces:
ODocumentFieldVisitor
Created by tglman on 28/07/17.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanIf currently processed value is collection or map of embedded documents or embedded document itself then current method is called if it returns false then this collection will not be visited.booleanIndicates whether we continue to visit document fields after current one or should stop fields processing.booleanvisitField(OType type, OType linkedType, Object value) Visits currently processed field.
-
Constructor Details
-
OLinksRewriter
-
-
Method Details
-
visitField
Description copied from interface:ODocumentFieldVisitorVisits currently processed field.- Specified by:
visitFieldin interfaceODocumentFieldVisitor- Parameters:
type- Filed type. May be null if absent in DB schema.linkedType- Linked type in case collection is processed. May be null if absent in DB schema.value- Field value.- Returns:
- New value of this field. If the same value is returned document content will not be changed.
-
goFurther
Description copied from interface:ODocumentFieldVisitorIndicates whether we continue to visit document fields after current one or should stop fields processing.- Specified by:
goFurtherin interfaceODocumentFieldVisitor- Parameters:
type- Filed type. May be null if absent in DB schema.linkedType- Linked type in case collection is processed. May be null if absent in DB schema.value- Field value.newValue- New value returned byODocumentFieldVisitor.visitField(OType, OType, Object)method.- Returns:
- If false document processing will be stopped.
-
goDeeper
Description copied from interface:ODocumentFieldVisitorIf currently processed value is collection or map of embedded documents or embedded document itself then current method is called if it returns false then this collection will not be visited.- Specified by:
goDeeperin interfaceODocumentFieldVisitor- Parameters:
type- Filed type. May be null if absent in DB schema.linkedType- Linked type in case collection is processed. May be null if absent in DB schema.value- Field value.- Returns:
- If false currently processed collection of embedded documents will not be visited.
-
updateMode
public boolean updateMode()- Specified by:
updateModein interfaceODocumentFieldVisitor- Returns:
- If false value returned by method
ODocumentFieldVisitor.visitField(OType, OType, Object)will not be taken in account and field value will not be updated.
-