class CIMSubsetter[A <: Product] extends Serializable
Subclass extractor.
Extracts the given type of object from the full Element Resilient Distributes Dataset (RDD), to create another RDD of just those elements, and creates a DataFrame of that RDD, and registers it as a temporary table for access via SQL (e.g. JDBC and SparkR::sql()).
Note: This must be serializable and can't depend on the companion objects for the CIM case classes.
- Alphabetic
- By Inheritance
- CIMSubsetter
- Serializable
- Serializable
- AnyRef
- Any
- Hide All
- Show All
- Public
- All
Instance Constructors
- new CIMSubsetter()(implicit arg0: ClassTag[A], arg1: scala.reflect.api.JavaUniverse.TypeTag[A])
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
asThisClass(element: Element): Option[A]
Return the provided Element as this class if possible.
Return the provided Element as this class if possible.
- element
the element to convert
- returns
Some(A) or None if the Element is not this Subsetter class type.
- val classname: String
-
def
clone(): AnyRef
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( ... ) @native() @HotSpotIntrinsicCandidate()
- val cls: String
-
final
def
eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
def
equals(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
final
def
getClass(): Class[_]
- Definition Classes
- AnyRef → Any
- Annotations
- @native() @HotSpotIntrinsicCandidate()
-
def
hashCode(): Int
- Definition Classes
- AnyRef → Any
- Annotations
- @native() @HotSpotIntrinsicCandidate()
-
final
def
isInstanceOf[T0]: Boolean
- Definition Classes
- Any
-
def
like(name: String): ((Int, RDD[_])) ⇒ Boolean
Match names with pattern "name|xxx".
Match names with pattern "name|xxx".
- name
the name to match
- returns
true
if the RDD name matches the pattern
-
def
make(context: SQLContext, rdd: RDD[Element], storage: StorageLevel): Unit
Create the Dataframe for Typeclass A.
Create the Dataframe for Typeclass A.
- context
The SQL context for creating the views.
- rdd
The raw Element RDD to subset.
- storage
The storage level to persist the subset RDD with.
-
def
modify_schema(rtc: Class[_], schema: StructType): StructType
Alter the schema so sup has the correct superclass name.
Alter the schema so sup has the correct superclass name.
- rtc
The runtime class for Typeclass A.
- schema
The SQL schema for Typeclass A, e.g. org.apache.spark.sql.types.StructType = StructType(StructField(sup,StructType(StructField(sup,StructType(StructField(sup,...
-
final
def
ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
final
def
notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native() @HotSpotIntrinsicCandidate()
-
final
def
notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native() @HotSpotIntrinsicCandidate()
- val runtime_class: Class[_]
-
def
save(context: SQLContext, rdd: rddtype, storage: StorageLevel): Unit
Create the Dataframe for Typeclass A.
Create the Dataframe for Typeclass A.
- context
The SQL context for creating the views.
- rdd
The raw Element RDD to subset.
- storage
The storage level to persist the subset RDD with.
-
final
def
synchronized[T0](arg0: ⇒ T0): T0
- Definition Classes
- AnyRef
- val tag: scala.reflect.api.JavaUniverse.TypeTag[A]
-
def
toString(): String
- Definition Classes
- AnyRef → Any
-
final
def
wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... ) @native()
-
final
def
wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
Deprecated Value Members
-
def
finalize(): Unit
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( classOf[java.lang.Throwable] ) @Deprecated @deprecated
- Deprecated
(Since version ) see corresponding Javadoc for more information.