case class GeoMesaRelation(sqlContext: SQLContext, sft: SimpleFeatureType, schema: StructType, params: Map[String, String], filter: Option[Filter], cached: Option[CachedRDD], partitioned: Option[PartitionedRDD]) extends BaseRelation with PrunedFilteredScan with LazyLogging with Product with Serializable
The Spark Relation that builds the scan over the GeoMesa table
- sqlContext
spark sql context
- sft
simple feature type associated with the rows in the relation
- schema
spark sql schema (must correspond to the sft)
- params
user parameters, generally for configured the underlying data store and/or caching/partitioning
- filter
a push-down geotools filter applied to the relation
- cached
an optional cached RDD, used to speed up queries when enabled
- partitioned
an optional spatially partitioned RDD, used to speed up spatial joins when enabled
- Alphabetic
- By Inheritance
- GeoMesaRelation
- Serializable
- Product
- Equals
- LazyLogging
- PrunedFilteredScan
- BaseRelation
- AnyRef
- Any
- Hide All
- Show All
- Public
- Protected
Instance Constructors
- new GeoMesaRelation(sqlContext: SQLContext, sft: SimpleFeatureType, schema: StructType, params: Map[String, String], filter: Option[Filter], cached: Option[CachedRDD], partitioned: Option[PartitionedRDD])
- sqlContext
spark sql context
- sft
simple feature type associated with the rows in the relation
- schema
spark sql schema (must correspond to the sft)
- params
user parameters, generally for configured the underlying data store and/or caching/partitioning
- filter
a push-down geotools filter applied to the relation
- cached
an optional cached RDD, used to speed up queries when enabled
- partitioned
an optional spatially partitioned RDD, used to speed up spatial joins when enabled
Value Members
- final def !=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- final def ##: Int
- Definition Classes
- AnyRef → Any
- final def ==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- final def asInstanceOf[T0]: T0
- Definition Classes
- Any
- def buildScan(requiredColumns: Array[String], filters: Array[Filter]): RDD[Row]
- Definition Classes
- GeoMesaRelation → PrunedFilteredScan
- val cached: Option[CachedRDD]
- def clone(): AnyRef
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.CloneNotSupportedException]) @native()
- final def eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- val filter: Option[Filter]
- def finalize(): Unit
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.Throwable])
- final def getClass(): Class[_ <: AnyRef]
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
- final def isInstanceOf[T0]: Boolean
- Definition Classes
- Any
- def join(other: GeoMesaRelation, condition: Expression): Option[GeoMesaJoinRelation]
Attempts to do an optimized join between two relations.
Attempts to do an optimized join between two relations.
Currently this method uses grid partitioning on both relations so that the join comparisons only need to be applied on each pair of partitions, instead of globally. This only works if both relations have already been grid partitioned.
- other
relation to join
- condition
join condition
- returns
an optimized join, if possible to do so
- lazy val logger: Logger
- Attributes
- protected
- Definition Classes
- LazyLogging
- Annotations
- @transient()
- final def ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- def needConversion: Boolean
- Definition Classes
- BaseRelation
- final def notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
- final def notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
- val params: Map[String, String]
- val partitioned: Option[PartitionedRDD]
- def productElementNames: Iterator[String]
- Definition Classes
- Product
- val schema: StructType
- Definition Classes
- GeoMesaRelation → BaseRelation
- val sft: SimpleFeatureType
- def sizeInBytes: Long
- Definition Classes
- BaseRelation
- val sqlContext: SQLContext
- Definition Classes
- GeoMesaRelation → BaseRelation
- final def synchronized[T0](arg0: => T0): T0
- Definition Classes
- AnyRef
- def unhandledFilters(filters: Array[Filter]): Array[Filter]
- Definition Classes
- GeoMesaRelation → BaseRelation
- final def wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- final def wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- final def wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException]) @native()