-
Notifications
You must be signed in to change notification settings - Fork 361
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #1719 from lossyrob/refactor/TileRDDMethods
Moved TileRDDMethods to private in geotrellis.spark.mapalgebra.local
- Loading branch information
Showing
6 changed files
with
27 additions
and
27 deletions.
There are no files selected for viewing
10 changes: 0 additions & 10 deletions
10
spark/src/main/scala/geotrellis/spark/mapalgebra/TileCollectionMethods.scala
This file was deleted.
Oops, something went wrong.
11 changes: 0 additions & 11 deletions
11
spark/src/main/scala/geotrellis/spark/mapalgebra/TileRDDMethods.scala
This file was deleted.
Oops, something went wrong.
17 changes: 17 additions & 0 deletions
17
spark/src/main/scala/geotrellis/spark/mapalgebra/local/TileRDDMethods.scala
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
package geotrellis.spark.mapalgebra.local | ||
|
||
import scala.reflect.ClassTag | ||
import geotrellis.raster.Tile | ||
import geotrellis.util.MethodExtensions | ||
import org.apache.spark.rdd.RDD | ||
|
||
/** Trait that defines a Methods class as an RDD[(K, Tile)] MethodsExtensions | ||
* having a ClassTag for K. This trait is used in the local mapalgebra case | ||
* because we have traits that stack onto the eventual implicit Methods class | ||
* for local operations. This breaks from the usual pattern of | ||
* marking a Methods trait as an abstract class if it needs context bounds like | ||
* ClassTag. | ||
*/ | ||
private[local] trait TileRDDMethods[K] extends MethodExtensions[RDD[(K, Tile)]] { | ||
implicit val keyClassTag: ClassTag[K] | ||
} |
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