
geotrellis.spark.io.LayerReader.scala Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of geotrellis-spark_2.11 Show documentation
Show all versions of geotrellis-spark_2.11 Show documentation
GeoTrellis is an open source geographic data processing engine for high performance applications.
The newest version!
package geotrellis.spark.io
import geotrellis.spark._
import geotrellis.spark.io.avro._
import geotrellis.spark.io.json._
import geotrellis.util._
import org.apache.spark.rdd._
import spray.json._
import scala.reflect._
trait LayerReader[ID] {
def defaultNumPartitions: Int
def read[
K: AvroRecordCodec: Boundable: JsonFormat: ClassTag,
V: AvroRecordCodec: ClassTag,
M: JsonFormat: GetComponent[?, Bounds[K]]
](id: ID, numPartitions: Int): RDD[(K, V)] with Metadata[M]
def read[
K: AvroRecordCodec: Boundable: JsonFormat: ClassTag,
V: AvroRecordCodec: ClassTag,
M: JsonFormat: GetComponent[?, Bounds[K]]
](id: ID): RDD[(K, V)] with Metadata[M] =
read(id, defaultNumPartitions)
def reader[
K: AvroRecordCodec: Boundable: JsonFormat: ClassTag,
V: AvroRecordCodec: ClassTag,
M: JsonFormat: GetComponent[?, Bounds[K]]
]: Reader[ID, RDD[(K, V)] with Metadata[M]] =
new Reader[ID, RDD[(K, V)] with Metadata[M]] {
def read(id: ID): RDD[(K, V)] with Metadata[M] =
LayerReader.this.read[K, V, M](id)
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy