forked from hail-is/hail
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Eliminate some but not all uses of RVD.rdd (hail-is#3186)
* Eliminate some but not all uses of RVD.rdd This change anticipates the ContextRDD change wherein `RVD.rdd` will not be an RDD. Moreover, enforcing an abstraction barrier at the level of `RVD` will ease changes to the implementation of `RVD`. There are two remaining types of calls that I cannot eliminate: - uses in BlockMatrix and OrderedRDD2: these two classes are building new RDDs based on the RVD's rdd, these classes should be considered within the implementation of the RVD abstraction. Because these two classes are outside of `is.hail.rvd`, I cannot enforce an access modifier on `RVD.rdd`. - uses by methods: - LDPrune: it seems we need a "GeneralRVD" - Skat: it seems like some of this could be moved to python actually; but there is some matrix math that cannot be moved until the expr lang has efficient small-matrix ops - MatrixTable.same: I could probably move this if I re-implemented forall in terms of RVD.aggregate? - MatrixTable.annotateRowsIntervalTable: really not sure about this one, this seems like a performance optimization that purposely reaches through the abstraction to do Smart Things * clean up * formatting * more formatting * use assertOrdered instead of old apply * fixes * improve use of assertions * rename toUnsafeRows to toRows * rename unsafeChangeType to updateType * wip zip not sure what to do * finish renames * fix invalid assertions * remove coerceOrdered, remove OrderedRVD.apply * fixes and eliminate coerceOrdered * actually remove coerceOrdered * fix * clean up zipPartitions definitions and uses * name error * fix name * Update OrderedRVD.scala * Update OrderedRVD.scala * fix filteralleles shuffle and friends * formatting * rebase errors * harmonize formatting * remove rebase cruft
- Loading branch information
1 parent
aff619c
commit 8b39e6a
Showing
12 changed files
with
188 additions
and
123 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.