com.nicta.scoobi.io.avro

AvroSink

case class AvroSink[K, B](schema: AvroSchema[B], path: String, outputConverter: OutputConverter[AvroKey[K], NullWritable, B], overwrite: Boolean = false, check: (Path, Boolean, ScoobiConfiguration) ⇒ Unit = core.Sink.defaultOutputCheck, checkpoint: Option[Checkpoint] = scala.None, compression: Option[Compression] = scala.None) extends DataSink[AvroKey[K], NullWritable, B] with SinkSource with Product with Serializable

Linear Supertypes
Serializable, Serializable, Product, Equals, SinkSource, DataSink[AvroKey[K], NullWritable, B], Sink, AnyRef, Any
Ordering
  1. Alphabetic
  2. By inheritance
Inherited
  1. AvroSink
  2. Serializable
  3. Serializable
  4. Product
  5. Equals
  6. SinkSource
  7. DataSink
  8. Sink
  9. AnyRef
  10. Any
  1. Hide All
  2. Show all
Learn more about member selection
Visibility
  1. Public
  2. All

Instance Constructors

  1. new AvroSink(schema: AvroSchema[B], path: String, outputConverter: OutputConverter[AvroKey[K], NullWritable, B], overwrite: Boolean = false, check: (Path, Boolean, ScoobiConfiguration) ⇒ Unit = core.Sink.defaultOutputCheck, checkpoint: Option[Checkpoint] = scala.None, compression: Option[Compression] = scala.None)

Value Members

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

    Definition Classes
    AnyRef
  2. final def !=(arg0: Any): Boolean

    Definition Classes
    Any
  3. final def ##(): Int

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

    Definition Classes
    AnyRef
  5. final def ==(arg0: Any): Boolean

    Definition Classes
    Any
  6. final def asInstanceOf[T0]: T0

    Definition Classes
    Any
  7. val check: (Path, Boolean, ScoobiConfiguration) ⇒ Unit

  8. val checkpoint: Option[Checkpoint]

    returns

    the checkpoint parameters if this sink is a Checkpoint

    Definition Classes
    AvroSinkSinkSource
  9. def checkpointExists(implicit sc: ScoobiConfiguration): Boolean

    returns

    true if this Sink is a checkpoint and has been filled with data

    Definition Classes
    SinkSource
  10. def checkpointPath: Option[String]

    returns

    the path of the checkpoint

    Definition Classes
    SinkSource
  11. def clone(): AnyRef

    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  12. def compress: Sink

    returns

    a new sink with Gzip compression enabled

    Definition Classes
    Sink
  13. def compressWith(codec: CompressionCodec, compressionType: CompressionType = CompressionType.BLOCK): AvroSink[K, B]

    returns

    a new sink with compression enabled

    Definition Classes
    AvroSink → Sink
  14. val compression: Option[Compression]

    returns

    a compression object if this sink is compressed

    Definition Classes
    AvroSinkDataSink
  15. def configureCompression(configuration: Configuration): DataSink[AvroKey[K], NullWritable, B]

    configure the compression for a given job

    configure the compression for a given job

    Definition Classes
    DataSink → Sink
  16. final def eq(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  17. def finalize(): Unit

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

    Definition Classes
    AnyRef → Any
  19. val id: Int

    unique id for this Sink

    unique id for this Sink

    Definition Classes
    DataSink → Sink
  20. def isCheckpoint: Boolean

    returns

    true if this sink is a checkpoint

    Definition Classes
    SinkSource
  21. def isCompressed: Boolean

    returns

    true if this Sink is compressed

    Definition Classes
    DataSink → Sink
  22. final def isInstanceOf[T0]: Boolean

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

    Definition Classes
    AnyRef
  24. final def notify(): Unit

    Definition Classes
    AnyRef
  25. final def notifyAll(): Unit

    Definition Classes
    AnyRef
  26. lazy val output: Path

  27. def outputCheck(implicit sc: ScoobiConfiguration): Unit

    Check the validity of the DataSink specification.

    Check the validity of the DataSink specification.

    Definition Classes
    AvroSinkDataSink → Sink
  28. def outputConfigure(job: Job)(implicit sc: ScoobiConfiguration): Unit

    Configure the DataSink.

    Configure the DataSink.

    Definition Classes
    AvroSinkDataSink → Sink
  29. val outputConverter: OutputConverter[AvroKey[K], NullWritable, B]

    Maps the type consumed by this DataSink to the key-values of its OutputFormat.

    Maps the type consumed by this DataSink to the key-values of its OutputFormat.

    Definition Classes
    AvroSinkDataSink → Sink
  30. def outputFormat(implicit sc: ScoobiConfiguration): Class[_ >: GenericAvroKeyOutputFormat[K] <: AvroKeyOutputFormat[K]]

    The OutputFormat specifying the type of output for this DataSink.

    The OutputFormat specifying the type of output for this DataSink.

    Definition Classes
    AvroSinkDataSink → Sink
  31. def outputKeyClass(implicit sc: ScoobiConfiguration): Class[AvroKey[K]]

    The Class of the OutputFormat's key.

    The Class of the OutputFormat's key.

    Definition Classes
    AvroSinkDataSink → Sink
  32. def outputPath(implicit sc: ScoobiConfiguration): Some[Path]

    returns

    the path for this Sink.

    Definition Classes
    AvroSink → Sink
  33. def outputSetup(implicit sc: ScoobiConfiguration): Unit

    This method is called just before writing data to the sink

    This method is called just before writing data to the sink

    Definition Classes
    AvroSinkSinkSourceDataSink → Sink
  34. def outputTeardown(implicit sc: ScoobiConfiguration): Unit

    This method is called just after writing data to the sink

    This method is called just after writing data to the sink

    Definition Classes
    DataSink → Sink
  35. def outputValueClass(implicit sc: ScoobiConfiguration): Class[NullWritable]

    The Class of the OutputFormat's value.

    The Class of the OutputFormat's value.

    Definition Classes
    AvroSinkDataSink → Sink
  36. val overwrite: Boolean

  37. val path: String

  38. val schema: AvroSchema[B]

  39. lazy val stringId: String

    Definition Classes
    DataSink → Sink
  40. final def synchronized[T0](arg0: ⇒ T0): T0

    Definition Classes
    AnyRef
  41. def toSource: Source

    Definition Classes
    AvroSinkSinkSource
  42. def toString(): String

    Definition Classes
    AvroSink → AnyRef → Any
  43. final def wait(): Unit

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

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

    Definition Classes
    AnyRef
    Annotations
    @throws( ... )

Inherited from Serializable

Inherited from Serializable

Inherited from Product

Inherited from Equals

Inherited from SinkSource

Inherited from DataSink[AvroKey[K], NullWritable, B]

Inherited from Sink

Inherited from AnyRef

Inherited from Any

Ungrouped