Class

ml.combust.mleap.runtime.frame

DefaultLeapFrame

Related Doc: package frame

Permalink

case class DefaultLeapFrame(schema: StructType, dataset: Seq[Row]) extends LeapFrame[DefaultLeapFrame] with Product with Serializable

Class for storing a leap frame locally.

schema

schema of leap frame

Linear Supertypes
Serializable, Serializable, Product, Equals, LeapFrame[DefaultLeapFrame], FrameBuilder[DefaultLeapFrame], AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. DefaultLeapFrame
  2. Serializable
  3. Serializable
  4. Product
  5. Equals
  6. LeapFrame
  7. FrameBuilder
  8. AnyRef
  9. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Instance Constructors

  1. new DefaultLeapFrame(schema: StructType, rows: Iterable[Row])

    Permalink
  2. new DefaultLeapFrame(schema: StructType, dataset: Seq[Row])

    Permalink

    schema

    schema of leap frame

Value Members

  1. final def !=(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  2. final def ##(): Int

    Permalink
    Definition Classes
    AnyRef → Any
  3. final def ==(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  4. final def asInstanceOf[T0]: T0

    Permalink
    Definition Classes
    Any
  5. def clone(): AnyRef

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  6. def collect(): Seq[Row]

    Permalink

    Collect all rows into a Seq

    Collect all rows into a Seq

    returns

    all rows in the leap frame

    Definition Classes
    DefaultLeapFrameLeapFrame
  7. val dataset: Seq[Row]

    Permalink
  8. def drop(names: String*): Try[DefaultLeapFrame]

    Permalink

    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 column to drop

    returns

    LeapFrame with column(s) dropped

    Definition Classes
    DefaultLeapFrameFrameBuilder
  9. final def eq(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  10. def filter(selectors: Selector*)(udf: UserDefinedFunction): Try[DefaultLeapFrame]

    Permalink

    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
    DefaultLeapFrameFrameBuilder
  11. def finalize(): Unit

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  12. final def getClass(): Class[_]

    Permalink
    Definition Classes
    AnyRef → Any
  13. final def isInstanceOf[T0]: Boolean

    Permalink
    Definition Classes
    Any
  14. final def ne(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  15. final def notify(): Unit

    Permalink
    Definition Classes
    AnyRef
  16. final def notifyAll(): Unit

    Permalink
    Definition Classes
    AnyRef
  17. def printSchema(out: PrintStream): Unit

    Permalink

    Print the schema to a PrintStream.

    Print the schema to a PrintStream.

    out

    print stream to print schema to

    Definition Classes
    FrameBuilder
  18. def printSchema(): Unit

    Permalink

    Print the schema to standard output.

    Print the schema to standard output.

    Definition Classes
    FrameBuilder
  19. def relaxedSelect(fieldNames: String*): DefaultLeapFrame

    Permalink

    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
  20. val schema: StructType

    Permalink

    schema of leap frame

    schema of leap frame

    Definition Classes
    DefaultLeapFrameFrameBuilder
  21. def select(fieldNames: String*): Try[DefaultLeapFrame]

    Permalink

    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
    DefaultLeapFrameFrameBuilder
  22. def show(out: PrintStream, n: Int): Unit

    Permalink

    Print this leap frame to a PrintStream.

    Print this leap frame to a PrintStream.

    out

    stream to print to

    n

    number of rows to show

    Definition Classes
    LeapFrame
  23. def show(n: Int): Unit

    Permalink

    Print this leap frame to standard out.

    Print this leap frame to standard out.

    n

    number of rows to display

    Definition Classes
    LeapFrame
  24. def show(out: PrintStream): Unit

    Permalink

    Print this leap frame to a PrintStream.

    Print this leap frame to a PrintStream.

    out

    stream to print to

    Definition Classes
    LeapFrame
  25. def show(): Unit

    Permalink

    Print this leap frame to standard out.

    Print this leap frame to standard out.

    Definition Classes
    LeapFrame
  26. final def synchronized[T0](arg0: ⇒ T0): T0

    Permalink
    Definition Classes
    AnyRef
  27. final def wait(): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  28. final def wait(arg0: Long, arg1: Int): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  29. final def wait(arg0: Long): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  30. def withColumn(name: String, selectors: Selector*)(udf: UserDefinedFunction): Try[DefaultLeapFrame]

    Permalink

    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
    DefaultLeapFrameFrameBuilder
  31. def withColumns(names: Seq[String], selectors: Selector*)(udf: UserDefinedFunction): Try[DefaultLeapFrame]

    Permalink

    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
    DefaultLeapFrameFrameBuilder

Deprecated Value Members

  1. def dropField(name: String): Try[DefaultLeapFrame]

    Permalink
    Definition Classes
    FrameBuilder
    Annotations
    @deprecated
    Deprecated

    (Since version MLeap 0.9.0) this method will be removed for version 1.0, use #drop

  2. def withField(name: String, selectors: Selector*)(udf: UserDefinedFunction): Try[DefaultLeapFrame]

    Permalink
    Definition Classes
    FrameBuilder
    Annotations
    @deprecated
    Deprecated

    (Since version MLeap 0.9.0) this method will be removed for version 1.0, use #withColumn

  3. def withFields(names: Seq[String], selectors: Selector*)(udf: UserDefinedFunction): Try[DefaultLeapFrame]

    Permalink
    Definition Classes
    FrameBuilder
    Annotations
    @deprecated
    Deprecated

    (Since version MLeap 0.9.0) this method will be removed for version 1.0, use #withColumns

  4. def withOutput(name: String, selectors: Selector*)(udf: UserDefinedFunction): Try[DefaultLeapFrame]

    Permalink
    Definition Classes
    FrameBuilder
    Annotations
    @deprecated
    Deprecated

    (Since version MLeap 0.9.0) this method will be removed for version 1.0, use #withColumn

  5. def withOutputs(names: Seq[String], selectors: Selector*)(udf: UserDefinedFunction): Try[DefaultLeapFrame]

    Permalink
    Definition Classes
    FrameBuilder
    Annotations
    @deprecated
    Deprecated

    (Since version MLeap 0.9.0) this method will be removed for version 1.0, use #withColumns

Inherited from Serializable

Inherited from Serializable

Inherited from Product

Inherited from Equals

Inherited from LeapFrame[DefaultLeapFrame]

Inherited from FrameBuilder[DefaultLeapFrame]

Inherited from AnyRef

Inherited from Any

Ungrouped