Packages

c

com.nvidia.spark.rapids

GpuTextBasedPartitionReader

abstract class GpuTextBasedPartitionReader extends PartitionReader[ColumnarBatch] with ScanWithMetrics with Arm

The text based PartitionReader

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

Instance Constructors

  1. new GpuTextBasedPartitionReader(conf: Configuration, partFile: PartitionedFile, dataSchema: StructType, readDataSchema: StructType, lineSeparatorInRead: Option[Array[Byte]], maxRowsPerChunk: Integer, maxBytesPerChunk: Long, execMetrics: Map[String, GpuMetric])

    conf

    the Hadoop configuration

    partFile

    file split to read

    dataSchema

    schema of the data

    readDataSchema

    the Spark schema describing what will be read

    lineSeparatorInRead

    An optional byte line sep.

    maxRowsPerChunk

    maximum number of rows to read in a batch

    maxBytesPerChunk

    maximum number of bytes to read in a batch

    execMetrics

    metrics to update during read

Abstract Value Members

  1. abstract def castStringToBool(input: ColumnVector): ColumnVector
  2. abstract def dateFormat: String
  3. abstract 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

  4. abstract 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

  5. abstract def timestampFormat: String

Concrete 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 castStringToDate(input: ColumnVector, dt: DType, failOnInvalid: Boolean): ColumnVector
  6. def castStringToDecimal(input: ColumnVector, dt: DecimalType): ColumnVector
  7. def castStringToFloat(input: ColumnVector, dt: DType): ColumnVector
  8. def castStringToInt(input: ColumnVector, intType: DType): ColumnVector
  9. def castStringToTimestamp(lhs: ColumnVector, sparkFormat: String, dtype: DType): ColumnVector
  10. def clone(): AnyRef
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... ) @native() @HotSpotIntrinsicCandidate()
  11. def close(): Unit
    Definition Classes
    GpuTextBasedPartitionReader → Closeable → AutoCloseable
  12. 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
  13. 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
  14. 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
  15. 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
  16. 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
  17. def currentMetricsValues(): Array[CustomTaskMetric]
    Definition Classes
    PartitionReader
  18. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  19. def equals(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  20. 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
  21. def get(): ColumnarBatch
    Definition Classes
    GpuTextBasedPartitionReader → PartitionReader
  22. final def getClass(): Class[_]
    Definition Classes
    AnyRef → Any
    Annotations
    @native() @HotSpotIntrinsicCandidate()
  23. 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

  24. def hashCode(): Int
    Definition Classes
    AnyRef → Any
    Annotations
    @native() @HotSpotIntrinsicCandidate()
  25. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  26. val metrics: Map[String, GpuMetric]
    Definition Classes
    ScanWithMetrics
  27. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  28. def next(): Boolean
    Definition Classes
    GpuTextBasedPartitionReader → PartitionReader
  29. final def notify(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native() @HotSpotIntrinsicCandidate()
  30. final def notifyAll(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native() @HotSpotIntrinsicCandidate()
  31. final def synchronized[T0](arg0: ⇒ T0): T0
    Definition Classes
    AnyRef
  32. def toString(): String
    Definition Classes
    AnyRef → Any
  33. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  34. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... ) @native()
  35. final def wait(): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  36. 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
  37. 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
  38. 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
  39. 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
  40. 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
  41. 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
  42. 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