All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.twitter.scalding.source.NullSink.scala Maven / Gradle / Ivy

There is a newer version: 0.16.1-RC3
Show newest version
package com.twitter.scalding.source

import cascading.flow.FlowDef
import cascading.pipe.Pipe
import com.twitter.scalding.typed.TypedSink
import com.twitter.scalding.{ BaseNullSource, Mode, TupleSetter }

/**
 * This can be used to cause cascading to run a flow, but discard
 * the output. The only place this is likely of use is to do some (non-recommended,
 * but sometimes the most expediant way to accomplish some task).
 */
object NullSink extends BaseNullSource with TypedSink[Any] {
  def setter[U <: Any] = TupleSetter.asSubSetter[Any, U](TupleSetter.singleSetter)
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy