Packages

c

com.nvidia.spark.rapids

CSVPartitionReader

class CSVPartitionReader extends GpuTextBasedPartitionReader

Linear Supertypes
GpuTextBasedPartitionReader, Arm, ScanWithMetrics, PartitionReader[ColumnarBatch], Closeable, AutoCloseable, AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. CSVPartitionReader
  2. GpuTextBasedPartitionReader
  3. Arm
  4. ScanWithMetrics
  5. PartitionReader
  6. Closeable
  7. AutoCloseable
  8. AnyRef
  9. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Instance Constructors

  1. new CSVPartitionReader(conf: Configuration, partFile: PartitionedFile, dataSchema: StructType, readDataSchema: StructType, parsedOptions: CSVOptions, maxRowsPerChunk: Integer, maxBytesPerChunk: Long, execMetrics: Map[String, GpuMetric])

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. final def asInstanceOf[T0]: T0
    Definition Classes
    Any
  5. def buildCsvOptions(parsedOptions: CSVOptions, schema: StructType, hasHeader: Boolean): CSVOptions
  6. def castStringToBool(input: ColumnVector): ColumnVector

    CSV supports "true" and "false" (case-insensitive) as valid boolean values.

    CSV supports "true" and "false" (case-insensitive) as valid boolean values.

    Definition Classes
    CSVPartitionReaderGpuTextBasedPartitionReader
  7. def castStringToDate(input: ColumnVector, dt: DType, failOnInvalid: Boolean): ColumnVector
    Definition Classes
    GpuTextBasedPartitionReader
  8. def castStringToDecimal(input: ColumnVector, dt: DecimalType): ColumnVector
    Definition Classes
    GpuTextBasedPartitionReader
  9. def castStringToFloat(input: ColumnVector, dt: DType): ColumnVector
    Definition Classes
    GpuTextBasedPartitionReader
  10. def castStringToInt(input: ColumnVector, intType: DType): ColumnVector
    Definition Classes
    GpuTextBasedPartitionReader
  11. def castStringToTimestamp(lhs: ColumnVector, sparkFormat: String, dtype: DType): ColumnVector
    Definition Classes
    GpuTextBasedPartitionReader
  12. def clone(): AnyRef
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... ) @native() @HotSpotIntrinsicCandidate()
  13. def close(): Unit
    Definition Classes
    GpuTextBasedPartitionReader → Closeable → AutoCloseable
  14. def closeOnExcept[T <: AutoCloseable, V](r: Option[T])(block: (Option[T]) ⇒ V): V

    Executes the provided code block, closing the resources only if an exception occurs

    Executes the provided code block, closing the resources only if an exception occurs

    Definition Classes
    Arm
  15. def closeOnExcept[T <: AutoCloseable, V](r: ArrayBuffer[T])(block: (ArrayBuffer[T]) ⇒ V): V

    Executes the provided code block, closing the resources only if an exception occurs

    Executes the provided code block, closing the resources only if an exception occurs

    Definition Classes
    Arm
  16. def closeOnExcept[T <: AutoCloseable, V](r: Array[T])(block: (Array[T]) ⇒ V): V

    Executes the provided code block, closing the resources only if an exception occurs

    Executes the provided code block, closing the resources only if an exception occurs

    Definition Classes
    Arm
  17. def closeOnExcept[T <: AutoCloseable, V](r: Seq[T])(block: (Seq[T]) ⇒ V): V

    Executes the provided code block, closing the resources only if an exception occurs

    Executes the provided code block, closing the resources only if an exception occurs

    Definition Classes
    Arm
  18. def closeOnExcept[T <: AutoCloseable, V](r: T)(block: (T) ⇒ V): V

    Executes the provided code block, closing the resource only if an exception occurs

    Executes the provided code block, closing the resource only if an exception occurs

    Definition Classes
    Arm
  19. def currentMetricsValues(): Array[CustomTaskMetric]
    Definition Classes
    PartitionReader
  20. def dateFormat: String
  21. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  22. def equals(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  23. def freeOnExcept[T <: RapidsBuffer, V](r: T)(block: (T) ⇒ V): V

    Executes the provided code block, freeing the RapidsBuffer only if an exception occurs

    Executes the provided code block, freeing the RapidsBuffer only if an exception occurs

    Definition Classes
    Arm
  24. def get(): ColumnarBatch
    Definition Classes
    GpuTextBasedPartitionReader → PartitionReader
  25. final def getClass(): Class[_]
    Definition Classes
    AnyRef → Any
    Annotations
    @native() @HotSpotIntrinsicCandidate()
  26. def getFileFormatShortName: String

    File format short name used for logging and other things to uniquely identity which file format is being used.

    File format short name used for logging and other things to uniquely identity which file format is being used.

    returns

    the file format short name

    Definition Classes
    CSVPartitionReaderGpuTextBasedPartitionReader
  27. def handleResult(readDataSchema: StructType, table: Table): Option[Table]

    Handle the table decoded by GPU

    Handle the table decoded by GPU

    Please note that, this function owns table which is supposed to be closed in this function But for the optimization, we just return the original table.

    readDataSchema

    the Spark schema describing what will be read

    table

    the table decoded by GPU

    returns

    the new optional Table

    Definition Classes
    GpuTextBasedPartitionReader
  28. def hashCode(): Int
    Definition Classes
    AnyRef → Any
    Annotations
    @native() @HotSpotIntrinsicCandidate()
  29. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  30. val metrics: Map[String, GpuMetric]
    Definition Classes
    ScanWithMetrics
  31. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  32. def next(): Boolean
    Definition Classes
    GpuTextBasedPartitionReader → PartitionReader
  33. final def notify(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native() @HotSpotIntrinsicCandidate()
  34. final def notifyAll(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native() @HotSpotIntrinsicCandidate()
  35. def readToTable(dataBuffer: HostMemoryBuffer, dataSize: Long, cudfSchema: Schema, readDataSchema: StructType, isFirstChunk: Boolean): Table

    Read the host buffer to GPU table

    Read the host buffer to GPU table

    dataBuffer

    host buffer to be read

    dataSize

    the size of host buffer

    cudfSchema

    the cudf schema of the data

    readDataSchema

    the Spark schema describing what will be read

    isFirstChunk

    if it is the first chunk

    returns

    table

    Definition Classes
    CSVPartitionReaderGpuTextBasedPartitionReader
  36. final def synchronized[T0](arg0: ⇒ T0): T0
    Definition Classes
    AnyRef
  37. def timestampFormat: String
  38. def toString(): String
    Definition Classes
    AnyRef → Any
  39. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  40. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... ) @native()
  41. final def wait(): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  42. def withResource[T <: AutoCloseable, V](h: CloseableHolder[T])(block: (CloseableHolder[T]) ⇒ V): V

    Executes the provided code block and then closes the resource

    Executes the provided code block and then closes the resource

    Definition Classes
    Arm
  43. def withResource[T <: AutoCloseable, V](r: ArrayBuffer[T])(block: (ArrayBuffer[T]) ⇒ V): V

    Executes the provided code block and then closes the array buffer of resources

    Executes the provided code block and then closes the array buffer of resources

    Definition Classes
    Arm
  44. def withResource[T <: AutoCloseable, V](r: Array[T])(block: (Array[T]) ⇒ V): V

    Executes the provided code block and then closes the array of resources

    Executes the provided code block and then closes the array of resources

    Definition Classes
    Arm
  45. def withResource[T <: AutoCloseable, V](r: Seq[T])(block: (Seq[T]) ⇒ V): V

    Executes the provided code block and then closes the sequence of resources

    Executes the provided code block and then closes the sequence of resources

    Definition Classes
    Arm
  46. def withResource[T <: AutoCloseable, V](r: Option[T])(block: (Option[T]) ⇒ V): V

    Executes the provided code block and then closes the Option[resource]

    Executes the provided code block and then closes the Option[resource]

    Definition Classes
    Arm
  47. def withResource[T <: AutoCloseable, V](r: T)(block: (T) ⇒ V): V

    Executes the provided code block and then closes the resource

    Executes the provided code block and then closes the resource

    Definition Classes
    Arm
  48. def withResourceIfAllowed[T, V](r: T)(block: (T) ⇒ V): V

    Executes the provided code block and then closes the value if it is AutoCloseable

    Executes the provided code block and then closes the value if it is AutoCloseable

    Definition Classes
    Arm

Deprecated Value Members

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

Inherited from Arm

Inherited from ScanWithMetrics

Inherited from PartitionReader[ColumnarBatch]

Inherited from Closeable

Inherited from AutoCloseable

Inherited from AnyRef

Inherited from Any

Ungrouped