Class

io.eels.datastream

DataStreamSource

Related Doc: package datastream

Permalink

class DataStreamSource extends DataStream with Using

Linear Supertypes
Using, DataStream, Logging, AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. DataStreamSource
  2. Using
  3. DataStream
  4. Logging
  5. AnyRef
  6. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Instance Constructors

  1. new DataStreamSource(source: Source, listener: Listener = NoopListener)

    Permalink

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: DataStream): DataStream

    Permalink

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

    Joins two streams together, such that the elements of the given frame are appended to the end of this streams. This operation is the same as a concat operation. This results in having numPartitions(a) + numPartitions(b)

    Definition Classes
    DataStream
  4. final def ==(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  5. def addField(name: String, defaultValue: String): DataStream

    Permalink

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

    Returns a new DataStream 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.

    Definition Classes
    DataStream
  6. def addField(field: Field, defaultValue: Any): DataStream

    Permalink

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

    Returns a new DataStream 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 has type Int and the default value was 1.3

    Definition Classes
    DataStream
  7. def addFieldIfNotExists(field: Field, defaultValue: Any): DataStream

    Permalink
    Definition Classes
    DataStream
  8. def addFieldIfNotExists(name: String, defaultValue: Any): DataStream

    Permalink
    Definition Classes
    DataStream
  9. def aggregated(): GroupedDataStream

    Permalink
    Definition Classes
    DataStream
  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

    Action which results in all the rows being returned in memory as a Vector.

    Action which results in all the rows being returned in memory as a Vector.

    Definition Classes
    DataStream
  13. def count: Long

    Permalink
    Definition Classes
    DataStream
  14. def dropNullRows(): DataStream

    Permalink
    Definition Classes
    DataStream
  15. final def eq(arg0: AnyRef): Boolean

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

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

    Permalink
    Definition Classes
    DataStream
  18. def explode(fn: (Row) ⇒ Seq[Row]): DataStream

    Permalink
    Definition Classes
    DataStream
  19. def filter(fieldName: String, p: (Any) ⇒ Boolean): DataStream

    Permalink

    Filters where the given field name matches the given predicate.

    Filters where the given field name matches the given predicate.

    Definition Classes
    DataStream
  20. def filter(p: (Row) ⇒ Boolean): DataStream

    Permalink

    For each row in the stream, filter drops any rows which do not match the predicate.

    For each row in the stream, filter drops any rows which do not match the predicate.

    Definition Classes
    DataStream
  21. def filterNot(p: (Row) ⇒ Boolean): DataStream

    Permalink
    Definition Classes
    DataStream
  22. def finalize(): Unit

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

    Permalink
    Definition Classes
    DataStream
  24. def flowable: Flowable[Row]

    Permalink
    Definition Classes
    DataStreamSourceDataStream
  25. def fold[A](initial: A)(fn: (A, Row) ⇒ A): A

    Permalink
    Definition Classes
    DataStream
  26. def forall(p: (Row) ⇒ Boolean): Boolean

    Permalink
    Definition Classes
    DataStream
  27. def foreach[U](fn: (Row) ⇒ U): DataStream

    Permalink

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

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

    Definition Classes
    DataStream
  28. final def getClass(): Class[_]

    Permalink
    Definition Classes
    AnyRef → Any
  29. def groupBy(fn: (Row) ⇒ Any): GroupedDataStream

    Permalink
    Definition Classes
    DataStream
  30. def groupBy(fields: Iterable[String]): GroupedDataStream

    Permalink
    Definition Classes
    DataStream
  31. def groupBy(first: String, rest: String*): GroupedDataStream

    Permalink
    Definition Classes
    DataStream
  32. def hashCode(): Int

    Permalink
    Definition Classes
    AnyRef → Any
  33. def head: Row

    Permalink
    Definition Classes
    DataStream
  34. final def isInstanceOf[T0]: Boolean

    Permalink
    Definition Classes
    Any
  35. def iterator: Iterator[Row]

    Permalink

    Action which returns a scala.collection.CloseIterator, which will result in the lazy evaluation of the stream, element by element.

    Action which returns a scala.collection.CloseIterator, which will result in the lazy evaluation of the stream, element by element.

    Definition Classes
    DataStream
  36. def join(key: String, other: DataStream): DataStream

    Permalink

    Joins the given datastream to this datastream on the given key column, where the values of the keys are equal as taken by the scala == operator.

    Joins the given datastream to this datastream on the given key column, where the values of the keys are equal as taken by the scala == operator. Both datastreams must contain the key column.

    The given datastream is fully inflated when this datastream needs to be materialized. For that reason, always use the smallest datastream as the parameter, and the larger datastream as the receiver.

    Definition Classes
    DataStream
  37. def join(other: DataStream, executor: Executor): DataStream

    Permalink

    Combines two datastreams together such that the fields from this datastream are joined with the fields of the given datastream.

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

    This operation requires an executor, as it must buffer rows to ensure an even distribution.

    Definition Classes
    DataStream
  38. def listener(_listener: Listener): DataStream

    Permalink

    Adds a listener to this datastream.

    Adds a listener to this datastream. This won't change the row values, but will invoke the attached listener at this stage in the pipeline.

    Definition Classes
    DataStream
  39. val logger: Logger

    Permalink
    Attributes
    protected
    Definition Classes
    Logging
  40. def map(f: (Row) ⇒ Row): DataStream

    Permalink
    Definition Classes
    DataStream
  41. final def ne(arg0: AnyRef): Boolean

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

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

    Permalink
    Definition Classes
    AnyRef
  44. def parallelize(parts: Int, executor: Executor = ...): DataStream

    Permalink
    Definition Classes
    DataStream
  45. def projection(fields: Seq[String]): DataStream

    Permalink

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

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

    Definition Classes
    DataStream
  46. def projection(first: String, rest: String*): DataStream

    Permalink
    Definition Classes
    DataStream
  47. def projectionExpression(expr: String): DataStream

    Permalink
    Definition Classes
    DataStream
  48. def removeField(fieldName: String, caseSensitive: Boolean = true): DataStream

    Permalink
    Definition Classes
    DataStream
  49. def renameField(nameFrom: String, nameTo: String): DataStream

    Permalink
    Definition Classes
    DataStream
  50. def replace(from: String, target: Any): DataStream

    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.

    Definition Classes
    DataStream
  51. def replace(fieldName: String, from: String, target: Any): DataStream

    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.

    Definition Classes
    DataStream
  52. def replace(fieldName: String, fn: (Any) ⇒ Any): DataStream

    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.

    Definition Classes
    DataStream
  53. def replaceFieldType(from: DataType, toType: DataType): DataStream

    Permalink
    Definition Classes
    DataStream
  54. def replaceNullValues(defaultValue: String): DataStream

    Permalink
    Definition Classes
    DataStream
  55. def sample(k: Int): DataStream

    Permalink

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

    Returns a new DataStream 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 partition uses its own couter.

    Definition Classes
    DataStream
  56. def schema: StructType

    Permalink

    Returns the Schema for this stream.

    Returns the Schema for this stream. This call will not cause a full evaluation, but only the operations required to retrieve a schema will occur. For example, on a stream backed by a JDBC source, an empty resultset will be obtained in order to query the metadata for the database columns.

    Definition Classes
    DataStreamSourceDataStream
  57. def size: Long

    Permalink
    Definition Classes
    DataStream
  58. def stripCharsFromFieldNames(chars: Seq[Char]): DataStream

    Permalink

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

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

    Definition Classes
    DataStream
  59. final def synchronized[T0](arg0: ⇒ T0): T0

    Permalink
    Definition Classes
    AnyRef
  60. def to(sink: Sink, parallelism: Int): Long

    Permalink
    Definition Classes
    DataStream
  61. def to(sink: Sink): Long

    Permalink
    Definition Classes
    DataStream
  62. def toSet: Set[Row]

    Permalink
    Definition Classes
    DataStream
  63. def toString(): String

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

    Permalink

    Action which results in all the rows being returned in memory as a Vector.

    Action which results in all the rows being returned in memory as a Vector. Alias for 'collect()'

    Definition Classes
    DataStream
  65. def union(other: DataStream): DataStream

    Permalink
    Definition Classes
    DataStream
  66. def updateField(name: String, field: Field): DataStream

    Permalink
    Definition Classes
    DataStream
  67. def updateFieldType(fieldName: String, datatype: DataType): DataStream

    Permalink

    Returns the same data but with an updated schema.

    Returns the same data but with an updated schema. The field that matches the given name will have its datatype set to the given datatype.

    Definition Classes
    DataStream
  68. def using[T, U <: AnyRef { def close(): Unit }](closeable: U)(f: (U) ⇒ T): T

    Permalink
    Definition Classes
    Using
  69. final def wait(): Unit

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

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

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  72. def withLowerCaseSchema(): DataStream

    Permalink
    Definition Classes
    DataStream

Inherited from Using

Inherited from DataStream

Inherited from Logging

Inherited from AnyRef

Inherited from Any

Ungrouped