Skip to content

Commit

Permalink
updated to use released version 0.9.1
Browse files Browse the repository at this point in the history
  • Loading branch information
sunitparekh committed Feb 24, 2018
1 parent e9accfd commit 4485a2c
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/main/kotlin/com/github/dataanon/Anonymizer.kt
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,8 @@ fun main(args: Array<String>) {

Whitelist(source,dest)
.table("MOVIES") {
where("GENRE = 'Drama'")
limit(1_00_000)
whitelist("MOVIE_ID","RELEASE_DATE")
anonymize("TITLE").using(object: AnonymizationStrategy<String>{
override fun anonymize(field: Field<String>, record: Record): String = "MY MOVIE ${record.rowNum}"
Expand All @@ -26,7 +28,6 @@ fun main(args: Array<String>) {
anonymize("RATING").using(FixedDouble(4.3))
}
.execute(true)

}


0 comments on commit 4485a2c

Please sign in to comment.