-
Notifications
You must be signed in to change notification settings - Fork 308
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[ADAM-1694] Add short readable descriptions for toString in subclasses of GenomicRDD. #1698
Conversation
Test PASSed. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
General approach looks good, but can't we move this all into the GenomicRDD
trait?
@@ -490,4 +490,7 @@ sealed abstract class NucleotideContigFragmentRDD extends AvroGenomicRDD[Nucleot | |||
(p._1, p._2: java.lang.Long) | |||
}).toJavaRDD() | |||
} | |||
|
|||
override def toString = "%s with %d reference sequences" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You should be able to factor this into the GenomicRDD
trait, no?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think it is possible ... but I read some odd things about toString on traits and figured the sealed abstract classes would be the best place. Then the messages are slightly different so it isn't exactly breaking DRY.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
What odd things did you see?
6ba1351
to
5078c07
Compare
Test PASSed. |
Merged! Thanks @heuermh! |
Fixes #1694