Interface MigrationStrategy
-
- All Known Implementing Classes:
InMemoryMigrationStrategy
public interface MigrationStrategyInterface to define the migration strategy for scesim files
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description default ThrowingConsumer<Document>end()Method to complete the migration.ThrowingConsumer<Document>from1_0to1_1()Method to obtain the migration function from 1.0 to 1.1ThrowingConsumer<Document>from1_1to1_2()Method to obtain the migration function from 1.1 to 1.2ThrowingConsumer<Document>from1_2to1_3()Method to obtain the migration function from 1.2 to 1.3ThrowingConsumer<Document>from1_3to1_4()Method to obtain the migration function from 1.3 to 1.4ThrowingConsumer<Document>from1_4to1_5()Method to obtain the migration function from 1.4 to 1.5ThrowingConsumer<Document>from1_5to1_6()Method to obtain the migration function from 1.5 to 1.6ThrowingConsumer<Document>from1_6to1_7()Method to obtain the migration function from 1.6 to 1.7ThrowingConsumer<Document>from1_7to1_8()Method to obtain the migration function from 1.7 to 1.8default ThrowingConsumer<Document>start()Method to initialize migration strategy compositiondefault voidupdateVersion(Document document, String newVersion)
-
-
-
Method Detail
-
start
default ThrowingConsumer<Document> start()
Method to initialize migration strategy composition- Returns:
-
from1_0to1_1
ThrowingConsumer<Document> from1_0to1_1()
Method to obtain the migration function from 1.0 to 1.1- Returns:
-
from1_1to1_2
ThrowingConsumer<Document> from1_1to1_2()
Method to obtain the migration function from 1.1 to 1.2- Returns:
-
from1_2to1_3
ThrowingConsumer<Document> from1_2to1_3()
Method to obtain the migration function from 1.2 to 1.3- Returns:
-
from1_3to1_4
ThrowingConsumer<Document> from1_3to1_4()
Method to obtain the migration function from 1.3 to 1.4- Returns:
-
from1_4to1_5
ThrowingConsumer<Document> from1_4to1_5()
Method to obtain the migration function from 1.4 to 1.5- Returns:
-
from1_5to1_6
ThrowingConsumer<Document> from1_5to1_6()
Method to obtain the migration function from 1.5 to 1.6- Returns:
-
from1_6to1_7
ThrowingConsumer<Document> from1_6to1_7()
Method to obtain the migration function from 1.6 to 1.7- Returns:
-
from1_7to1_8
ThrowingConsumer<Document> from1_7to1_8()
Method to obtain the migration function from 1.7 to 1.8- Returns:
-
end
default ThrowingConsumer<Document> end()
Method to complete the migration. For instance it can be used to store the new value- Returns:
-
-