Class ODatabaseRepair
java.lang.Object
com.orientechnologies.orient.core.db.tool.ODatabaseTool
com.orientechnologies.orient.core.db.tool.ODatabaseRepair
- All Implemented Interfaces:
Runnable
Repair database tool.
- Since:
- v2.2.0
- Author:
- Luca Garulli (l.garulli--(at)--orientdb.com)
-
Field Summary
Fields inherited from class com.orientechnologies.orient.core.db.tool.ODatabaseTool
database, output, verbose -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected booleanChecks if the link must be fixed.protected voidparseSetting(String option, List<String> items) protected longvoidrun()Methods inherited from class com.orientechnologies.orient.core.db.tool.ODatabaseTool
message, setDatabase, setOptions, setOutputListener, setVerbose
-
Constructor Details
-
ODatabaseRepair
public ODatabaseRepair()
-
-
Method Details
-
parseSetting
- Specified by:
parseSettingin classODatabaseTool
-
run
public void run() -
removeBrokenLinks
protected long removeBrokenLinks() -
fixLink
Checks if the link must be fixed.- Parameters:
fieldValue- Field containing the OIdentifiable (RID or Record)- Returns:
- true to fix it, otherwise false
-