Skip to content

Commit c336e0b

Browse files
committed
CDM-54 reinstate DiffPartitionsFrom File
1 parent b1252f8 commit c336e0b

File tree

1 file changed

+19
-0
lines changed

1 file changed

+19
-0
lines changed
Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
package com.datastax.cdm.job
2+
3+
object DiffPartitionsFromFile extends BasePartitionJob {
4+
setup("Diff Partitions from File Job", new DiffJobSessionFactory(), "./partitions.csv")
5+
execute()
6+
finish()
7+
8+
override def execute(): Unit = {
9+
slices.foreach(slice => {
10+
originConnection.withSessionDo(sourceSession =>
11+
targetConnection.withSessionDo(destinationSession =>
12+
jobFactory.getInstance(sourceSession, destinationSession, sc)
13+
.processSlice(slice)))
14+
})
15+
}
16+
}
17+
18+
19+

0 commit comments

Comments
 (0)