Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Move RealWorld type into a separate file
- Loading branch information
Showing
2 changed files
with
31 additions
and
18 deletions.
There are no files selected for viewing
20 changes: 20 additions & 0 deletions
20
spark-pipeline/src/main/scala/geotrellis/spark/pipeline/ast/RealWorld.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,20 @@ | ||
package geotrellis.spark.pipeline.ast | ||
|
||
import geotrellis.spark.pipeline.json.PipelineExpr | ||
|
||
import io.circe.Json | ||
import org.apache.spark.SparkContext | ||
|
||
sealed trait RealWorld | ||
|
||
object RealWorld { | ||
/** RealWorld node has nothing implemented */ | ||
def instance = new Node[RealWorld] { | ||
def get(implicit sc: SparkContext): RealWorld = | ||
throw new UnsupportedOperationException("get function is not supported by a RealWorld node") | ||
def arg: PipelineExpr = | ||
throw new UnsupportedOperationException("arg function is not supported by a RealWorld node") | ||
def asJson: List[Json] = | ||
throw new UnsupportedOperationException("asJson function is not supported by a RealWorld node") | ||
} | ||
} |
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