Class OGraphRepair
java.lang.Object
com.orientechnologies.orient.core.db.tool.OGraphRepair
Repairs a graph. Current implementation scan the entire graph. In the future the WAL will be used
to make this repair task much faster.
- Author:
- Luca Garulli (l.garulli--(at)--orientdb.com)
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidcheck(ODatabaseSession graph, OCommandOutputListener outputListener, Map<String, List<String>> options) protected OPair<ODirection,String> getConnection(ODatabaseDocument graph, ODirection iDirection, String iFieldName, String... iClassNames) getConnectionClass(ODirection iDirection, String iFieldName) static StringgetInverseConnectionFieldName(String iFieldName, boolean useVertexFieldsForEdgeLabels) voidrepair(ODatabaseSession graph, OCommandOutputListener outputListener, Map<String, List<String>> options) protected voidrepairEdges(ODatabaseSession graph, com.orientechnologies.orient.core.db.tool.OGraphRepair.ORepairStats stats, OCommandOutputListener outputListener, Map<String, List<String>> options, boolean checkOnly) protected voidrepairVertices(ODatabaseSession graph, com.orientechnologies.orient.core.db.tool.OGraphRepair.ORepairStats stats, OCommandOutputListener outputListener, Map<String, List<String>> options, boolean checkOnly) setEventListener(OStorageRecoverEventListener eventListener)
-
Constructor Details
-
OGraphRepair
public OGraphRepair()
-
-
Method Details
-
repair
public void repair(ODatabaseSession graph, OCommandOutputListener outputListener, Map<String, List<String>> options) -
check
public void check(ODatabaseSession graph, OCommandOutputListener outputListener, Map<String, List<String>> options) -
repairEdges
protected void repairEdges(ODatabaseSession graph, com.orientechnologies.orient.core.db.tool.OGraphRepair.ORepairStats stats, OCommandOutputListener outputListener, Map<String, List<String>> options, boolean checkOnly) -
repairVertices
protected void repairVertices(ODatabaseSession graph, com.orientechnologies.orient.core.db.tool.OGraphRepair.ORepairStats stats, OCommandOutputListener outputListener, Map<String, List<String>> options, boolean checkOnly) -
getConnection
protected OPair<ODirection,String> getConnection(ODatabaseDocument graph, ODirection iDirection, String iFieldName, String... iClassNames) -
getConnectionClass
-
getEventListener
-
setEventListener
-
getInverseConnectionFieldName
-