case class RowTransformer extends FrameBuilder[RowTransformer] with Product with Serializable
- Alphabetic
- By Inheritance
- RowTransformer
- Serializable
- Serializable
- Product
- Equals
- FrameBuilder
- AnyRef
- Any
- Hide All
- Show All
- Public
- All
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
- val availableIndices: List[Int]
-
def
clone(): AnyRef
- Attributes
- protected[java.lang]
- Definition Classes
- AnyRef
- Annotations
- @native() @throws( ... )
-
def
drop(names: String*): Try[RowTransformer]
Try dropping column(s) from the LeapFrame.
Try dropping column(s) from the LeapFrame.
Returns a Failure if the column does not exist.
- names
names of columns to drop
- returns
LeapFrame with column(s) dropped
- Definition Classes
- RowTransformer → FrameBuilder
- def ensureAvailableIndices(numAvailable: Int): RowTransformer
-
final
def
eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
def
filter(selectors: Selector*)(udf: UserDefinedFunction): Try[RowTransformer]
Try filtering the leap frame using the UDF
Try filtering the leap frame using the UDF
- selectors
row selectors used as inputs for the filter
- udf
filter udf, must return a Boolean
- returns
LeapFrame with rows filtered
- Definition Classes
- RowTransformer → FrameBuilder
-
def
finalize(): Unit
- Attributes
- protected[java.lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( classOf[java.lang.Throwable] )
-
final
def
getClass(): Class[_]
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
- val indices: Seq[Int]
- val inputSchema: StructType
-
final
def
isInstanceOf[T0]: Boolean
- Definition Classes
- Any
- val maxSize: Int
-
final
def
ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
final
def
notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
-
final
def
notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
- val outputSchema: StructType
-
def
printSchema(out: PrintStream): Unit
Print the schema to a PrintStream.
Print the schema to a PrintStream.
- out
print stream to print schema to
- Definition Classes
- FrameBuilder
-
def
printSchema(): Unit
Print the schema to standard output.
Print the schema to standard output.
- Definition Classes
- FrameBuilder
-
def
relaxedSelect(fieldNames: String*): RowTransformer
Selects all of the fields from field names that exist in the leap frame.
Selects all of the fields from field names that exist in the leap frame. Returns a new leap frame with all of the available fields.
- fieldNames
fields to try and select
- returns
leap frame with select fields
- Definition Classes
- FrameBuilder
-
def
schema: StructType
Get the schema.
-
def
select(fieldNames: String*): Try[RowTransformer]
Try to select fields to create a new LeapFrame.
Try to select fields to create a new LeapFrame.
Returns a Failure if attempting to select any fields that don't exist.
- fieldNames
field names to select
- returns
try new LeapFrame with selected fields
- Definition Classes
- RowTransformer → FrameBuilder
- val shuffled: Boolean
-
final
def
synchronized[T0](arg0: ⇒ T0): T0
- Definition Classes
- AnyRef
- def transform(row: Row): Row
-
def
transformOption(row: Row): Option[ArrayRow]
Transform an input row with the predetermined schema.
Transform an input row with the predetermined schema.
- row
row to transform
- returns
transformed row, or None if filtered
- val transforms: Seq[(ArrayRow) ⇒ Option[ArrayRow]]
-
final
def
wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @native() @throws( ... )
-
def
withColumn(name: String, selectors: Selector*)(udf: UserDefinedFunction): Try[RowTransformer]
Try to add a column to the LeapFrame.
Try to add a column to the LeapFrame.
Returns a Failure if trying to add a field that already exists.
- name
name of column
- selectors
row selectors used to generate inputs to udf
- udf
user defined function for calculating column value
- returns
LeapFrame with new column
- Definition Classes
- RowTransformer → FrameBuilder
- def withColumnUnsafe(name: String, selectors: Selector*)(udf: UserDefinedFunction): Try[RowTransformer]
-
def
withColumns(names: Seq[String], selectors: Selector*)(udf: UserDefinedFunction): Try[RowTransformer]
Try to add multiple columns to the LeapFrame.
Try to add multiple columns to the LeapFrame.
Returns a Failure if trying to add a field that already exists.
- names
names of columns
- selectors
row selectors used to generate inputs to udf
- udf
user defined function for calculating column values
- returns
LeapFrame with new columns
- Definition Classes
- RowTransformer → FrameBuilder
- def withColumnsUnsafe(names: Seq[String], selectors: Selector*)(udf: UserDefinedFunction): Try[RowTransformer]
Deprecated Value Members
-
def
dropField(name: String): Try[RowTransformer]
- Definition Classes
- FrameBuilder
- Annotations
- @deprecated
- Deprecated
(Since version MLeap 0.9.0) this method will be removed for version 1.0, use #drop
-
def
withField(name: String, selectors: Selector*)(udf: UserDefinedFunction): Try[RowTransformer]
- Definition Classes
- FrameBuilder
- Annotations
- @deprecated
- Deprecated
(Since version MLeap 0.9.0) this method will be removed for version 1.0, use #withColumn
-
def
withFields(names: Seq[String], selectors: Selector*)(udf: UserDefinedFunction): Try[RowTransformer]
- Definition Classes
- FrameBuilder
- Annotations
- @deprecated
- Deprecated
(Since version MLeap 0.9.0) this method will be removed for version 1.0, use #withColumns
-
def
withOutput(name: String, selectors: Selector*)(udf: UserDefinedFunction): Try[RowTransformer]
- Definition Classes
- FrameBuilder
- Annotations
- @deprecated
- Deprecated
(Since version MLeap 0.9.0) this method will be removed for version 1.0, use #withColumn
-
def
withOutputs(names: Seq[String], selectors: Selector*)(udf: UserDefinedFunction): Try[RowTransformer]
- Definition Classes
- FrameBuilder
- Annotations
- @deprecated
- Deprecated
(Since version MLeap 0.9.0) this method will be removed for version 1.0, use #withColumns