Skip to content
This repository has been archived by the owner on Dec 20, 2018. It is now read-only.

Commit

Permalink
add biggis.landuse.api.sessionToContext
Browse files Browse the repository at this point in the history
  • Loading branch information
aklink committed Jul 16, 2018
1 parent 9248cf8 commit c82e9bd
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/main/scala/biggis/landuse/api/package.scala
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,11 @@ package object api extends LazyLogging {
type SpatialMultibandRDD = RDD[(SpatialKey, MultibandTile)] with Metadata[TileLayerMetadata[SpatialKey]] //MultibandTileLayerRDD[SpatialKey]
type SpaceTimeMultibandRDD = RDD[(SpaceTimeKey, MultibandTile)] with Metadata[TileLayerMetadata[SpaceTimeKey]] //MultibandTileLayerRDD[SpaceTimeKey]

/**
* Converts SparkSession to SparkContext
* */
implicit def sessionToContext(spark: SparkSession): SparkContext = { spark.sparkContext }

/**
* Converts RemoteIterator from Hadoop to Scala Iterator that provides all the familiar functions such as map,
* filter, foreach, etc.
Expand Down

0 comments on commit c82e9bd

Please sign in to comment.