Packages

class RedshiftInputFormat extends FileInputFormat[Long, Array[String]]

Input format for text records saved with in-record delimiter and newline characters escaped.

For example, a record containing two fields: "a\n" and "|b\\" saved with delimiter | should be the following:

a\\\n|\\|b\\\\\n

, where the in-record |, \r, \n, and \\ characters are escaped by \\. Users can configure the delimiter via RedshiftInputFormat$#KEY_DELIMITER. Its default value RedshiftInputFormat$#DEFAULT_DELIMITER is set to match Redshift's UNLOAD with the ESCAPE option:

UNLOAD ('select_statement')
TO 's3://object_path_prefix'
ESCAPE
See also

org.apache.spark.SparkContext#newAPIHadoopFile

Linear Supertypes
FileInputFormat[Long, Array[String]], InputFormat[Long, Array[String]], AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. RedshiftInputFormat
  2. FileInputFormat
  3. InputFormat
  4. AnyRef
  5. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Instance Constructors

  1. new RedshiftInputFormat()

Value Members

  1. final def !=(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  2. final def ##(): Int
    Definition Classes
    AnyRef → Any
  3. final def ==(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  4. def addInputPathRecursively(arg0: List[FileStatus], arg1: FileSystem, arg2: Path, arg3: PathFilter): Unit
    Attributes
    protected[input]
    Definition Classes
    FileInputFormat
    Annotations
    @throws( classOf[java.io.IOException] )
  5. final def asInstanceOf[T0]: T0
    Definition Classes
    Any
  6. def clone(): AnyRef
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... ) @native()
  7. def computeSplitSize(arg0: Long, arg1: Long, arg2: Long): Long
    Attributes
    protected[input]
    Definition Classes
    FileInputFormat
  8. def createRecordReader(split: InputSplit, context: TaskAttemptContext): RecordReader[Long, Array[String]]
    Definition Classes
    RedshiftInputFormat → InputFormat
  9. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  10. def equals(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  11. def finalize(): Unit
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  12. def getBlockIndex(arg0: Array[BlockLocation], arg1: Long): Int
    Attributes
    protected[input]
    Definition Classes
    FileInputFormat
  13. final def getClass(): Class[_]
    Definition Classes
    AnyRef → Any
    Annotations
    @native()
  14. def getFormatMinSplitSize(): Long
    Attributes
    protected[input]
    Definition Classes
    FileInputFormat
  15. def getSplits(arg0: JobContext): List[InputSplit]
    Definition Classes
    FileInputFormat → InputFormat
    Annotations
    @throws( classOf[java.io.IOException] )
  16. def hashCode(): Int
    Definition Classes
    AnyRef → Any
    Annotations
    @native()
  17. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  18. def isSplitable(arg0: JobContext, arg1: Path): Boolean
    Attributes
    protected[input]
    Definition Classes
    FileInputFormat
  19. def listStatus(arg0: JobContext): List[FileStatus]
    Attributes
    protected[input]
    Definition Classes
    FileInputFormat
    Annotations
    @throws( classOf[java.io.IOException] )
  20. def makeSplit(arg0: Path, arg1: Long, arg2: Long, arg3: Array[String], arg4: Array[String]): FileSplit
    Attributes
    protected[input]
    Definition Classes
    FileInputFormat
  21. def makeSplit(arg0: Path, arg1: Long, arg2: Long, arg3: Array[String]): FileSplit
    Attributes
    protected[input]
    Definition Classes
    FileInputFormat
  22. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  23. final def notify(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  24. final def notifyAll(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  25. final def synchronized[T0](arg0: ⇒ T0): T0
    Definition Classes
    AnyRef
  26. def toString(): String
    Definition Classes
    AnyRef → Any
  27. final def wait(): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  28. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  29. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... ) @native()

Inherited from FileInputFormat[Long, Array[String]]

Inherited from InputFormat[Long, Array[String]]

Inherited from AnyRef

Inherited from Any

Ungrouped