Trait/Object

io.eels

Frame

Related Docs: object Frame | package eels

Permalink

trait Frame extends AnyRef

Self Type
Frame
Linear Supertypes
AnyRef, Any
Known Subclasses
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. Frame
  2. AnyRef
  3. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Abstract Value Members

  1. abstract def rows(): CloseableIterator[Row]

    Permalink
  2. abstract def schema: StructType

    Permalink

Concrete Value Members

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

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

    Permalink
    Definition Classes
    AnyRef → Any
  3. def ++(other: Frame): Frame

    Permalink

    Joins two frames together, such that the elements of the given frame are appended to the end of this frame.

    Joins two frames together, such that the elements of the given frame are appended to the end of this frame. This operation is the same as a concat operation.

  4. final def ==(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  5. def addField(field: Field, defaultValue: Any): Frame

    Permalink

    Returns a new Frame with the given field added at the end.

    Returns a new Frame with the given field added at the end. The value of this field for each Row is specified by the default value. The value must be compatible with the field definition. Eg, an error will occur if the field had type Int and the default value was 1.3

  6. def addField(name: String, defaultValue: Any): Frame

    Permalink

    Returns a new Frame with the new field of type String added at the end.

    Returns a new Frame with the new field of type String added at the end. The value of this field for each Row is specified by the default value.

  7. def addFieldIfNotExists(field: Field, defaultValue: Any): Frame

    Permalink
  8. def addFieldIfNotExists(name: String, defaultValue: Any): Frame

    Permalink
  9. def aggregated(): GroupedFrame

    Permalink
  10. final def asInstanceOf[T0]: T0

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

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

    Permalink
  13. def count(): Long

    Permalink
  14. def drop(k: Int): Frame

    Permalink
  15. def dropNullRows(): Frame

    Permalink
  16. def dropWhile(fieldName: String, pred: (Any) ⇒ Boolean): Frame

    Permalink
  17. def dropWhile(pred: (Row) ⇒ Boolean): Frame

    Permalink
  18. final def eq(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  19. def equals(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  20. def exists(p: (Row) ⇒ Boolean): Boolean

    Permalink
  21. def explode(fn: (Row) ⇒ Seq[Row]): Frame

    Permalink
  22. def filter(fieldName: String, p: (Any) ⇒ Boolean): Frame

    Permalink

    Filters where the given field name matches the given predicate.

  23. def filter(p: (Row) ⇒ Boolean): Frame

    Permalink
  24. def filterNot(p: (Row) ⇒ Boolean): Frame

    Permalink
  25. def finalize(): Unit

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  26. def find(p: (Row) ⇒ Boolean): Option[Row]

    Permalink
  27. def fold[A](initial: A)(fn: (A, Row) ⇒ A): A

    Permalink
  28. def forall(p: (Row) ⇒ Boolean): Boolean

    Permalink
  29. def foreach[U](fn: (Row) ⇒ U): Frame

    Permalink

    Execute a side effecting function for every row in the frame, returning the same row.

    Execute a side effecting function for every row in the frame, returning the same row.

    fn

    the function to execute

    returns

    this frame, to allow for builder style chaining

  30. final def getClass(): Class[_]

    Permalink
    Definition Classes
    AnyRef → Any
  31. def groupBy(fn: (Row) ⇒ Any): GroupedFrame

    Permalink
  32. def groupBy(fields: Iterable[String]): GroupedFrame

    Permalink
  33. def groupBy(first: String, rest: String*): GroupedFrame

    Permalink
  34. def hashCode(): Int

    Permalink
    Definition Classes
    AnyRef → Any
  35. def head(): Row

    Permalink
  36. final def isInstanceOf[T0]: Boolean

    Permalink
    Definition Classes
    Any
  37. def join(other: Frame): Frame

    Permalink

    Combines two frames together such that the fields from this frame are joined with the fields of the given frame.

    Combines two frames together such that the fields from this frame are joined with the fields of the given frame. Eg, if this frame has A,B and the given frame has C,D then the result will be A,B,C,D

  38. def listener(listener: Listener): Frame

    Permalink
  39. def map(f: (Row) ⇒ Row): Frame

    Permalink
  40. final def ne(arg0: AnyRef): Boolean

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

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

    Permalink
    Definition Classes
    AnyRef
  43. def projection(fields: Seq[String]): Frame

    Permalink

    Returns a new frame which contains the given list of fields from the existing frame.

  44. def projection(first: String, rest: String*): Frame

    Permalink
  45. def projectionExpression(expr: String): Frame

    Permalink
  46. def removeField(fieldName: String, caseSensitive: Boolean = true): Frame

    Permalink
  47. def renameField(nameFrom: String, nameTo: String): Frame

    Permalink
  48. def replace(fieldName: String, fn: (Any) ⇒ Any): Frame

    Permalink

    For each row, the value corresponding to the given fieldName is applied to the function.

    For each row, the value corresponding to the given fieldName is applied to the function. The result of the function is the new value for that cell.

  49. def replace(fieldName: String, from: String, target: Any): Frame

    Permalink

    Replaces any values that match "form" with the value "target".

    Replaces any values that match "form" with the value "target". This operation only applies to the field name specified.

  50. def replace(from: String, target: Any): Frame

    Permalink

    Foreach row, any values that match "from" will be replaced with "target".

    Foreach row, any values that match "from" will be replaced with "target". This operation applies to all values for all rows.

  51. def replaceFieldType(from: DataType, toType: DataType): Frame

    Permalink
  52. def replaceNullValues(defaultValue: String): Frame

    Permalink
  53. def sample(k: Int): Frame

    Permalink

    Returns a new Frame where only each "k" row is retained.

    Returns a new Frame where only each "k" row is retained. Ie, if sample is 2, then on average, every other row will be returned. If sample is 10 then only 10% of rows will be returned. When running concurrently, the rows that are sampled will vary depending on the ordering that the workers pull through the rows. Each stream (thread) uses its own count for the sample.

  54. def size(): Long

    Permalink
  55. def stripCharsFromFieldNames(chars: Seq[Char]): Frame

    Permalink

    Returns a new Frame with the same data as this frame, but where the field names have been sanitized by removing any occurances of the given characters.

  56. final def synchronized[T0](arg0: ⇒ T0): T0

    Permalink
    Definition Classes
    AnyRef
  57. def take(n: Int): Frame

    Permalink
  58. def takeWhile(fieldName: String, pred: (Any) ⇒ Boolean): Frame

    Permalink
  59. def takeWhile(pred: (Row) ⇒ Boolean): Frame

    Permalink
  60. def to(sink: Sink, listener: Listener = NoopListener): Long

    Permalink
  61. def toSeq(): Seq[Row]

    Permalink
  62. def toSet(): Set[Row]

    Permalink
  63. def toString(): String

    Permalink
    Definition Classes
    AnyRef → Any
  64. def toVector(): Vector[Row]

    Permalink
  65. def union(other: Frame): Frame

    Permalink
  66. def updateField(field: Field): Frame

    Permalink
  67. def updateFieldType(fieldName: String, fieldType: DataType): Frame

    Permalink
  68. final def wait(): Unit

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

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

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  71. def withLowerCaseSchema(): Frame

    Permalink

    Returns a new Frame where the schema has been lowercased.

    Returns a new Frame where the schema has been lowercased. This does not affect values.

Deprecated Value Members

  1. def toList(): List[Row]

    Permalink
    Annotations
    @deprecated
    Deprecated

    now returns a vector

Inherited from AnyRef

Inherited from Any

Ungrouped