Interface Normalize
- All Superinterfaces:
CustomizableRefactoring<Normalize>
,Refactoring
Normalizes Graph properties
- Since:
- 1.10.0
- Author:
- Michael J. Simons
- Soundtrack
- Black Sabbath - Black Sabbath
-
Method Summary
Methods inherited from interface ac.simons.neo4j.migrations.core.refactorings.CustomizableRefactoring
inBatchesOf, withCustomQuery
Methods inherited from interface ac.simons.neo4j.migrations.core.refactorings.Refactoring
apply
-
Method Details
-
asBoolean
Normalizes respectively converts the property to a boolean or deletes it in case it is not in the lists of true or false values.If
trueValues
orfalseValues
contains the literal value null than a property with either the value true or false will be added to all matched entities.- Parameters:
property
- The name of the property to normalize. All entities that spot such a property will be matched (nodes and relationships)trueValues
- A list of values that should be treated as true. Can be a mixed content list.falseValues
- A list of values that should be treated as false. Can be a mixed content list.- Returns:
- The refactoring ready to use
-