Repository: incubator-griffin Updated Branches: refs/heads/master c1b90c1a4 -> e8a0580ae
remove redundant keywords remote final keywords from case class. Author: William Guo <gu...@apache.org> Closes #292 from guoyuepeng/fix_final_keywords. Project: http://git-wip-us.apache.org/repos/asf/incubator-griffin/repo Commit: http://git-wip-us.apache.org/repos/asf/incubator-griffin/commit/e8a0580a Tree: http://git-wip-us.apache.org/repos/asf/incubator-griffin/tree/e8a0580a Diff: http://git-wip-us.apache.org/repos/asf/incubator-griffin/diff/e8a0580a Branch: refs/heads/master Commit: e8a0580ae1fc16e57b29325890c98698a208a719 Parents: c1b90c1 Author: William Guo <gu...@apache.org> Authored: Mon Jun 11 13:23:09 2018 +0800 Committer: Lionel Liu <bhlx3l...@163.com> Committed: Mon Jun 11 13:23:09 2018 +0800 ---------------------------------------------------------------------- .../measure/configuration/enums/DqType.scala | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/incubator-griffin/blob/e8a0580a/measure/src/main/scala/org/apache/griffin/measure/configuration/enums/DqType.scala ---------------------------------------------------------------------- diff --git a/measure/src/main/scala/org/apache/griffin/measure/configuration/enums/DqType.scala b/measure/src/main/scala/org/apache/griffin/measure/configuration/enums/DqType.scala index 154510f..d1e19ef 100644 --- a/measure/src/main/scala/org/apache/griffin/measure/configuration/enums/DqType.scala +++ b/measure/src/main/scala/org/apache/griffin/measure/configuration/enums/DqType.scala @@ -49,7 +49,7 @@ object DqType { * metric will be: { "total": 5, "miss": 1, "matched": 4 } * accuracy is 80%. */ -final case object AccuracyType extends DqType { + case object AccuracyType extends DqType { val regex = "^(?i)accuracy$".r val desc = "accuracy" } @@ -58,7 +58,7 @@ final case object AccuracyType extends DqType { * profiling: the statistic data of data source * e.g.: max, min, average, group by count, ... */ -final case object ProfilingType extends DqType { + case object ProfilingType extends DqType { val regex = "^(?i)profiling$".r val desc = "profiling" } @@ -69,7 +69,7 @@ final case object ProfilingType extends DqType { * e.g.: [1, 2, 3, 3] -> { "unique": 2, "total": 4, "dup-arr": [ "dup": 1, "num": 1 ] } * uniqueness indicates the items without any replica of data */ -final case object UniquenessType extends DqType { + case object UniquenessType extends DqType { val regex = "^(?i)uniqueness|duplicate$".r val desc = "uniqueness" } @@ -81,7 +81,7 @@ final case object UniquenessType extends DqType { * distinctness indicates the valid information of data * comparing with uniqueness, distinctness is more meaningful */ -final case object DistinctnessType extends DqType { + case object DistinctnessType extends DqType { val regex = "^(?i)distinct$".r val desc = "distinct" } @@ -92,7 +92,7 @@ final case object DistinctnessType extends DqType { * timeliness can get the statistic metric of latency, like average, max, min, percentile-value, * even more, it can record the items with latency above threshold you configured */ -final case object TimelinessType extends DqType { + case object TimelinessType extends DqType { val regex = "^(?i)timeliness$".r val desc = "timeliness" } @@ -101,12 +101,12 @@ final case object TimelinessType extends DqType { * completeness: the completeness of data source * the columns you measure is incomplete if it is null */ -final case object CompletenessType extends DqType { + case object CompletenessType extends DqType { val regex = "^(?i)completeness$".r val desc = "completeness" } -final case object UnknownType extends DqType { + case object UnknownType extends DqType { val regex = "".r val desc = "unknown" -} \ No newline at end of file +}