Class

com.salesforce.op.readers

FileStreamingAvroReader

Related Doc: package readers

Permalink

class FileStreamingAvroReader[T <: GenericRecord] extends StreamingReader[T]

Simple avro streaming reader that monitors a Hadoop-compatible filesystem for new files.

Linear Supertypes
StreamingReader[T], ReaderKey[T], ReaderType[T], Serializable, Serializable, AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. FileStreamingAvroReader
  2. StreamingReader
  3. ReaderKey
  4. ReaderType
  5. Serializable
  6. Serializable
  7. AnyRef
  8. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Instance Constructors

  1. new FileStreamingAvroReader(key: (T) ⇒ String, filter: (Path) ⇒ Boolean, newFilesOnly: Boolean)(implicit ctt: ClassTag[T], wtt: scala.reflect.api.JavaUniverse.WeakTypeTag[T])

    Permalink

    key

    function for extracting key from avro record

    filter

    Function to filter paths to process

    newFilesOnly

    Should process only new files and ignore existing files in the directory

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. implicit val ctt: ClassTag[T]

    Permalink

    Reader class tag

    Reader class tag

    Definition Classes
    FileStreamingAvroReaderStreamingReader
  7. final def eq(arg0: AnyRef): Boolean

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

    Permalink
    Definition Classes
    AnyRef → Any
  9. val filter: (Path) ⇒ Boolean

    Permalink

    Function to filter paths to process

  10. def finalize(): Unit

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  11. final def fullTypeName: String

    Permalink

    Full reader input type name

    Full reader input type name

    returns

    full input type name

    Definition Classes
    ReaderType
  12. final def getClass(): Class[_]

    Permalink
    Definition Classes
    AnyRef → Any
  13. final def getReaderParams(opParams: OpParams): Option[ReaderParams]

    Permalink

    Default method for extracting this reader's parameters from readerParams in OpParams

    Default method for extracting this reader's parameters from readerParams in OpParams

    opParams

    contains map of reader type to ReaderParams instances

    returns

    ReaderParams instance if it exists

    Definition Classes
    ReaderType
  14. def hashCode(): Int

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

    Permalink
    Definition Classes
    Any
  16. val key: (T) ⇒ String

    Permalink

    function for extracting key from avro record

    function for extracting key from avro record

    Definition Classes
    FileStreamingAvroReader → ReaderKey
  17. final def ne(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  18. val newFilesOnly: Boolean

    Permalink

    Should process only new files and ignore existing files in the directory

  19. final def notify(): Unit

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

    Permalink
    Definition Classes
    AnyRef
  21. def stream(params: OpParams)(implicit streaming: StreamingContext): DStream[T]

    Permalink

    Function which creates an stream of T to read from

    Function which creates an stream of T to read from

    params

    parameters used to carry out specialized logic in reader (passed in from workflow)

    streaming

    spark streaming context

    returns

    stream of T to read from

    Definition Classes
    FileStreamingAvroReaderStreamingReader
  22. final def synchronized[T0](arg0: ⇒ T0): T0

    Permalink
    Definition Classes
    AnyRef
  23. def toString(): String

    Permalink
    Definition Classes
    AnyRef → Any
  24. final def typeName: String

    Permalink

    Short reader input type name

    Short reader input type name

    returns

    short reader input type name

    Definition Classes
    ReaderType
  25. final def wait(): Unit

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

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

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  28. implicit val wtt: scala.reflect.api.JavaUniverse.WeakTypeTag[T]

    Permalink

    Reader type tag

    Reader type tag

    Definition Classes
    FileStreamingAvroReader → ReaderType

Inherited from StreamingReader[T]

Inherited from ReaderKey[T]

Inherited from ReaderType[T]

Inherited from Serializable

Inherited from Serializable

Inherited from AnyRef

Inherited from Any

Ungrouped