Package ac.simons.neo4j.migrations.core
Class CleanResult
java.lang.Object
ac.simons.neo4j.migrations.core.CleanResult
- All Implemented Interfaces:
DatabaseOperationResult
,OperationResult
Result of a clean operation. The result is immutable.
- Since:
- 1.1.0
- Author:
- Michael J. Simons
-
Method Summary
Modifier and TypeMethodDescriptionThe list of chains deleted.long
long
long
long
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface ac.simons.neo4j.migrations.core.OperationResult
getWarnings
-
Method Details
-
getAffectedDatabase
- Specified by:
getAffectedDatabase
in interfaceDatabaseOperationResult
- Returns:
- the optional name of the database clean, an empty optional indicates the default database
-
getChainsDeleted
The list of chains deleted.- Returns:
- the name of the chains' migration targets
-
getNodesDeleted
public long getNodesDeleted()- Returns:
- how many nodes have been deleted.
-
getRelationshipsDeleted
public long getRelationshipsDeleted()- Returns:
- how many relationships have been deleted
-
getConstraintsRemoved
public long getConstraintsRemoved()- Returns:
- how many constraints have been removed
-
getIndexesRemoved
public long getIndexesRemoved()- Returns:
- how many indexes have been removed
-
prettyPrint
- Specified by:
prettyPrint
in interfaceOperationResult
- Returns:
- a sensible string applicable in a log or info message
-