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() @HotSpotIntrinsicCandidate()
  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 getBlockIndex(arg0: Array[BlockLocation], arg1: Long): Int
    Attributes
    protected[input]
    Definition Classes
    FileInputFormat
  12. final def getClass(): Class[_]
    Definition Classes
    AnyRef → Any
    Annotations
    @native() @HotSpotIntrinsicCandidate()
  13. def getFormatMinSplitSize(): Long
    Attributes
    protected[input]
    Definition Classes
    FileInputFormat
  14. def getSplits(arg0: JobContext): List[InputSplit]
    Definition Classes
    FileInputFormat → InputFormat
    Annotations
    @throws( classOf[java.io.IOException] )
  15. def hashCode(): Int
    Definition Classes
    AnyRef → Any
    Annotations
    @native() @HotSpotIntrinsicCandidate()
  16. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  17. def isSplitable(arg0: JobContext, arg1: Path): Boolean
    Attributes
    protected[input]
    Definition Classes
    FileInputFormat
  18. def listStatus(arg0: JobContext): List[FileStatus]
    Attributes
    protected[input]
    Definition Classes
    FileInputFormat
    Annotations
    @throws( classOf[java.io.IOException] )
  19. def makeSplit(arg0: Path, arg1: Long, arg2: Long, arg3: Array[String], arg4: Array[String]): FileSplit
    Attributes
    protected[input]
    Definition Classes
    FileInputFormat
  20. def makeSplit(arg0: Path, arg1: Long, arg2: Long, arg3: Array[String]): FileSplit
    Attributes
    protected[input]
    Definition Classes
    FileInputFormat
  21. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  22. final def notify(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native() @HotSpotIntrinsicCandidate()
  23. final def notifyAll(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native() @HotSpotIntrinsicCandidate()
  24. final def synchronized[T0](arg0: ⇒ T0): T0
    Definition Classes
    AnyRef
  25. def toString(): String
    Definition Classes
    AnyRef → Any
  26. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  27. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... ) @native()
  28. final def wait(): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )

Deprecated Value Members

  1. def finalize(): Unit
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] ) @Deprecated @deprecated
    Deprecated

    (Since version ) see corresponding Javadoc for more information.

Inherited from FileInputFormat[Long, Array[String]]

Inherited from InputFormat[Long, Array[String]]

Inherited from AnyRef

Inherited from Any

Ungrouped