com.twitter.scalding

JsonLine

case class JsonLine(p: String, fields: Fields = cascading.tuple.Fields.ALL) extends FixedPathSource with TextLineScheme with Product with Serializable

This Source writes out the TupleEntry as a simple JSON object, using the field names as keys and the string representation of the values.

TODO: it would be nice to have a way to add read/write transformations to pipes that doesn't require extending the sources and overriding methods.

Linear Supertypes
Serializable, Product, Equals, TextLineScheme, Mappable[String], FixedPathSource, FileSource, Source, Serializable, AnyRef, Any
Ordering
  1. Alphabetic
  2. By inheritance
Inherited
  1. JsonLine
  2. Serializable
  3. Product
  4. Equals
  5. TextLineScheme
  6. Mappable
  7. FixedPathSource
  8. FileSource
  9. Source
  10. Serializable
  11. AnyRef
  12. Any
  1. Hide All
  2. Show all
Learn more about member selection
Visibility
  1. Public
  2. All

Instance Constructors

  1. new JsonLine(p: String, fields: Fields = cascading.tuple.Fields.ALL)

Type Members

  1. type LocalScheme = Scheme[Properties, InputStream, OutputStream, _, _]

    Definition Classes
    Source

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. def castHfsTap(tap: Hfs): Tap[JobConf, RecordReader[_, _], OutputCollector[_, _]]

    Attributes
    protected
    Definition Classes
    Source
  8. def checkFlowDefNotNull(implicit flowDef: FlowDef, mode: Mode): Unit

    Attributes
    protected
    Definition Classes
    Source
  9. def clone(): AnyRef

    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws()
  10. val converter: TupleConverter[String]

    Definition Classes
    TextLineSchemeMappable
  11. def createHdfsReadTap(hdfsMode: Hdfs): Tap[JobConf, _, _]

    Attributes
    protected
    Definition Classes
    FileSource
  12. def createLocalTap(sinkMode: SinkMode): Tap[_, _, _]

    Definition Classes
    FileSource
  13. def createTap(readOrWrite: AccessMode)(implicit mode: Mode): Tap[_, _, _]

    Subclasses of Source MUST override this method.

    Subclasses of Source MUST override this method. The base only handles test modes, so you should invoke this method for test modes unless your Source has some special handling of testing.

    Definition Classes
    FileSourceSource
  14. final def eq(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  15. val fields: Fields

  16. def finalize(): Unit

    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws()
  17. def flatMapTo[U](out: Fields)(mf: (String) ⇒ Iterable[U])(implicit flowDef: FlowDef, mode: Mode, setter: TupleSetter[U]): Pipe

    If you want to filter, you should use this and output a 0 or 1 length Iterable.

    If you want to filter, you should use this and output a 0 or 1 length Iterable. Filter does not change column names, and we generally expect to change columns here

    Definition Classes
    Mappable
  18. final def getClass(): Class[_]

    Definition Classes
    AnyRef → Any
  19. def goodHdfsPaths(hdfsMode: Hdfs): Iterable[String]

    Attributes
    protected
    Definition Classes
    FileSource
  20. def hdfsPaths: List[String]

    Definition Classes
    FixedPathSourceFileSource
  21. def hdfsReadPathsAreGood(conf: Configuration): Boolean

    Attributes
    protected
    Definition Classes
    FileSource
  22. def hdfsScheme: Scheme[JobConf, RecordReader[_, _], OutputCollector[_, _], _, _]

    Definition Classes
    TextLineSchemeSource
  23. def hdfsWritePath: String

    Definition Classes
    FileSource
  24. final def isInstanceOf[T0]: Boolean

    Definition Classes
    Any
  25. def localPath: String

    Definition Classes
    FixedPathSourceFileSource
  26. def localScheme: cascading.scheme.local.TextLine

    Definition Classes
    TextLineSchemeSource
  27. def mapTo[U](out: Fields)(mf: (String) ⇒ U)(implicit flowDef: FlowDef, mode: Mode, setter: TupleSetter[U]): Pipe

    Definition Classes
    Mappable
  28. final def ne(arg0: AnyRef): Boolean

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

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

    Definition Classes
    AnyRef
  31. val p: String

  32. def pathIsGood(p: String, conf: Configuration): Boolean

    Attributes
    protected
    Definition Classes
    FileSource
  33. def read(implicit flowDef: FlowDef, mode: Mode): Pipe

    Definition Classes
    Source
  34. def readAtSubmitter[T](implicit mode: Mode, conv: TupleConverter[T]): Stream[T]

    Allows you to read a Tap on the submit node NOT FOR USE IN THE MAPPERS OR REDUCERS.

    Allows you to read a Tap on the submit node NOT FOR USE IN THE MAPPERS OR REDUCERS. Typical use might be to read in Job.next to determine if another job is needed

    Definition Classes
    Source
  35. def sourceFields: Fields

    Definition Classes
    TextLineSchemeMappable
  36. final def synchronized[T0](arg0: ⇒ T0): T0

    Definition Classes
    AnyRef
  37. def toString(): String

    Definition Classes
    JsonLine → AnyRef → Any
  38. def transformForRead(pipe: Pipe): Pipe

    Definition Classes
    JsonLineSource
  39. def transformForWrite(pipe: Pipe): Pipe

    Definition Classes
    JsonLineSource
  40. def validateTaps(mode: Mode): Unit

    Definition Classes
    FileSourceSource
  41. final def wait(): Unit

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

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

    Definition Classes
    AnyRef
    Annotations
    @throws()
  44. def writeFrom(pipe: Pipe)(implicit flowDef: FlowDef, mode: Mode): Pipe

    write the pipe and return the input so it can be chained into the next operation

    write the pipe and return the input so it can be chained into the next operation

    Definition Classes
    Source

Inherited from Serializable

Inherited from Product

Inherited from Equals

Inherited from TextLineScheme

Inherited from Mappable[String]

Inherited from FixedPathSource

Inherited from FileSource

Inherited from Source

Inherited from Serializable

Inherited from AnyRef

Inherited from Any

Ungrouped