Class/Object

com.databricks.spark.redshift

RedshiftInputFormat

Related Docs: object RedshiftInputFormat | package redshift

Permalink

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()

    Permalink

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. def addInputPathRecursively(arg0: List[FileStatus], arg1: FileSystem, arg2: Path, arg3: PathFilter): Unit

    Permalink
    Attributes
    protected[org.apache.hadoop.mapreduce.lib.input]
    Definition Classes
    FileInputFormat
    Annotations
    @throws( classOf[java.io.IOException] )
  5. final def asInstanceOf[T0]: T0

    Permalink
    Definition Classes
    Any
  6. def clone(): AnyRef

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  7. def computeSplitSize(arg0: Long, arg1: Long, arg2: Long): Long

    Permalink
    Attributes
    protected[org.apache.hadoop.mapreduce.lib.input]
    Definition Classes
    FileInputFormat
  8. def createRecordReader(split: InputSplit, context: TaskAttemptContext): RecordReader[Long, Array[String]]

    Permalink
    Definition Classes
    RedshiftInputFormat → InputFormat
  9. final def eq(arg0: AnyRef): Boolean

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

    Permalink
    Definition Classes
    AnyRef → Any
  11. def finalize(): Unit

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  12. def getBlockIndex(arg0: Array[BlockLocation], arg1: Long): Int

    Permalink
    Attributes
    protected[org.apache.hadoop.mapreduce.lib.input]
    Definition Classes
    FileInputFormat
  13. final def getClass(): Class[_]

    Permalink
    Definition Classes
    AnyRef → Any
  14. def getFormatMinSplitSize(): Long

    Permalink
    Attributes
    protected[org.apache.hadoop.mapreduce.lib.input]
    Definition Classes
    FileInputFormat
  15. def getSplits(arg0: JobContext): List[InputSplit]

    Permalink
    Definition Classes
    FileInputFormat → InputFormat
    Annotations
    @throws( classOf[java.io.IOException] )
  16. def hashCode(): Int

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

    Permalink
    Definition Classes
    Any
  18. def isSplitable(arg0: JobContext, arg1: Path): Boolean

    Permalink
    Attributes
    protected[org.apache.hadoop.mapreduce.lib.input]
    Definition Classes
    FileInputFormat
  19. def listStatus(arg0: JobContext): List[FileStatus]

    Permalink
    Attributes
    protected[org.apache.hadoop.mapreduce.lib.input]
    Definition Classes
    FileInputFormat
    Annotations
    @throws( classOf[java.io.IOException] )
  20. def makeSplit(arg0: Path, arg1: Long, arg2: Long, arg3: Array[String]): FileSplit

    Permalink
    Attributes
    protected[org.apache.hadoop.mapreduce.lib.input]
    Definition Classes
    FileInputFormat
  21. final def ne(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  22. final def notify(): Unit

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

    Permalink
    Definition Classes
    AnyRef
  24. final def synchronized[T0](arg0: ⇒ T0): T0

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

    Permalink
    Definition Classes
    AnyRef → Any
  26. final def wait(): Unit

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

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

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )

Inherited from FileInputFormat[Long, Array[String]]

Inherited from InputFormat[Long, Array[String]]

Inherited from AnyRef

Inherited from Any

Ungrouped