Packages

c

com.nvidia.spark.rapids

GpuOrcPartitionReader

class GpuOrcPartitionReader extends FilePartitionReaderBase with OrcPartitionReaderBase

A PartitionReader that reads an ORC file split on the GPU.

Efficiently reading an ORC split on the GPU requires rebuilding the ORC file in memory such that only relevant data is present in the memory file. This avoids sending unnecessary data to the GPU and saves GPU memory.

Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. GpuOrcPartitionReader
  2. OrcPartitionReaderBase
  3. OrcCommonFunctions
  4. OrcCodecWritingHelper
  5. FilePartitionReaderBase
  6. ScanWithMetrics
  7. Logging
  8. PartitionReader
  9. Closeable
  10. AutoCloseable
  11. AnyRef
  12. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Instance Constructors

  1. new GpuOrcPartitionReader(conf: Configuration, partFile: PartitionedFile, ctx: OrcPartitionReaderContext, readDataSchema: StructType, debugDumpPrefix: Option[String], debugDumpAlways: Boolean, maxReadBatchSizeRows: Integer, maxReadBatchSizeBytes: Long, targetBatchSizeBytes: Long, useChunkedReader: Boolean, maxChunkedReaderMemoryUsageSizeBytes: Long, execMetrics: Map[String, GpuMetric], isCaseSensitive: Boolean)

    conf

    Hadoop configuration

    partFile

    file split to read

    ctx

    the context to provide some necessary information

    readDataSchema

    Spark schema of what will be read from the file

    debugDumpPrefix

    path prefix for dumping the memory file or null

    debugDumpAlways

    whether to always debug dump or only on errors

    maxReadBatchSizeRows

    maximum number of rows to read in a batch

    maxReadBatchSizeBytes

    maximum number of bytes to read in a batch

    targetBatchSizeBytes

    the target size of a batch

    useChunkedReader

    whether to read Parquet by chunks or read all at once

    maxChunkedReaderMemoryUsageSizeBytes

    soft limit on the number of bytes of internal memory usage that the reader will use

    execMetrics

    metrics to update during read

    isCaseSensitive

    whether the name check should be case sensitive or not

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. var batchIter: Iterator[ColumnarBatch]
    Attributes
    protected
    Definition Classes
    FilePartitionReaderBase
  6. def buildReaderSchema(updatedSchema: TypeDescription, requestedMapping: Option[Array[Int]]): TypeDescription
    Attributes
    protected
    Definition Classes
    OrcCommonFunctions
  7. def buildReaderSchema(ctx: OrcPartitionReaderContext): TypeDescription

    Get the ORC schema corresponding to the file being constructed for the GPU

    Get the ORC schema corresponding to the file being constructed for the GPU

    Attributes
    protected
    Definition Classes
    OrcCommonFunctions
  8. final def calculateFileTailSize(ctx: OrcPartitionReaderContext, footerStartOffset: Long, stripes: Seq[OrcOutputStripe]): Long
    Attributes
    protected
    Definition Classes
    OrcCommonFunctions
  9. def clone(): AnyRef
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... ) @native()
  10. def close(): Unit
    Definition Classes
    FilePartitionReaderBase → Closeable → AutoCloseable
  11. val conf: Configuration
  12. def copyStripeData(dataReader: GpuOrcDataReader, out: HostMemoryOutputStream, inputDataRanges: DiskRangeList): Unit

    Copy the stripe to the channel

    Copy the stripe to the channel

    Attributes
    protected
    Definition Classes
    OrcCommonFunctions
  13. def currentMetricsValues(): Array[CustomTaskMetric]
    Definition Classes
    PartitionReader
  14. val debugDumpAlways: Boolean

    Whether to always debug dump or only on errors

    Whether to always debug dump or only on errors

    Definition Classes
    GpuOrcPartitionReaderOrcCommonFunctions
  15. val debugDumpPrefix: Option[String]

    Whether debug dumping is enabled and the path prefix where to dump

    Whether debug dumping is enabled and the path prefix where to dump

    Definition Classes
    GpuOrcPartitionReaderOrcCommonFunctions
  16. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  17. def equals(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  18. final def estimateOutputSizeFromBlocks(blocks: Seq[OrcStripeWithMeta]): Long
    Attributes
    protected
    Definition Classes
    OrcCommonFunctions
  19. def finalize(): Unit
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  20. def get(): ColumnarBatch
    Definition Classes
    FilePartitionReaderBase → PartitionReader
  21. final def getClass(): Class[_]
    Definition Classes
    AnyRef → Any
    Annotations
    @native()
  22. def getORCOptionsAndSchema(memFileSchema: TypeDescription, requestedMapping: Option[Array[Int]], readDataSchema: StructType): (ORCOptions, TypeDescription)
    Definition Classes
    OrcCommonFunctions
  23. def hashCode(): Int
    Definition Classes
    AnyRef → Any
    Annotations
    @native()
  24. def initializeLogIfNecessary(isInterpreter: Boolean, silent: Boolean): Boolean
    Attributes
    protected
    Definition Classes
    Logging
  25. def initializeLogIfNecessary(isInterpreter: Boolean): Unit
    Attributes
    protected
    Definition Classes
    Logging
  26. var isDone: Boolean
    Attributes
    protected
    Definition Classes
    FilePartitionReaderBase
  27. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  28. final def isNeedToSplitDataBlock(curMeta: OrcBlockMetaForSplitCheck, nextMeta: OrcBlockMetaForSplitCheck): Boolean
    Attributes
    protected
    Definition Classes
    OrcCommonFunctions
  29. def isTraceEnabled(): Boolean
    Attributes
    protected
    Definition Classes
    Logging
  30. def log: Logger
    Attributes
    protected
    Definition Classes
    Logging
  31. def logDebug(msg: ⇒ String, throwable: Throwable): Unit
    Attributes
    protected
    Definition Classes
    Logging
  32. def logDebug(msg: ⇒ String): Unit
    Attributes
    protected
    Definition Classes
    Logging
  33. def logError(msg: ⇒ String, throwable: Throwable): Unit
    Attributes
    protected
    Definition Classes
    Logging
  34. def logError(msg: ⇒ String): Unit
    Attributes
    protected
    Definition Classes
    Logging
  35. def logInfo(msg: ⇒ String, throwable: Throwable): Unit
    Attributes
    protected
    Definition Classes
    Logging
  36. def logInfo(msg: ⇒ String): Unit
    Attributes
    protected
    Definition Classes
    Logging
  37. def logName: String
    Attributes
    protected
    Definition Classes
    Logging
  38. def logTrace(msg: ⇒ String, throwable: Throwable): Unit
    Attributes
    protected
    Definition Classes
    Logging
  39. def logTrace(msg: ⇒ String): Unit
    Attributes
    protected
    Definition Classes
    Logging
  40. def logWarning(msg: ⇒ String, throwable: Throwable): Unit
    Attributes
    protected
    Definition Classes
    Logging
  41. def logWarning(msg: ⇒ String): Unit
    Attributes
    protected
    Definition Classes
    Logging
  42. val metrics: Map[String, GpuMetric]
    Definition Classes
    ScanWithMetrics
  43. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  44. def next(): Boolean
    Definition Classes
    GpuOrcPartitionReader → PartitionReader
  45. final def notify(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  46. final def notifyAll(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  47. def populateCurrentBlockChunk(blockIterator: BufferedIterator[OrcOutputStripe], maxReadBatchSizeRows: Int, maxReadBatchSizeBytes: Long): Seq[OrcOutputStripe]
    Definition Classes
    OrcPartitionReaderBase
  48. val readDataSchema: StructType
  49. def readPartFile(ctx: OrcPartitionReaderContext, stripes: Seq[OrcOutputStripe]): (HostMemoryBuffer, Long)

    Read the stripes into HostMemoryBuffer.

    Read the stripes into HostMemoryBuffer.

    ctx

    the context to provide some necessary information

    stripes

    a sequence of Stripe to be read into HostMemeoryBuffer

    returns

    HostMemeoryBuffer and its data size

    Attributes
    protected
    Definition Classes
    OrcPartitionReaderBase
  50. final def synchronized[T0](arg0: ⇒ T0): T0
    Definition Classes
    AnyRef
  51. implicit def toDataStripes(stripes: Seq[DataBlockBase]): Seq[OrcStripeWithMeta]
    Attributes
    protected
    Definition Classes
    OrcCommonFunctions
  52. def toString(): String
    Definition Classes
    AnyRef → Any
  53. implicit def toStripe(block: DataBlockBase): OrcStripeWithMeta
    Attributes
    protected
    Definition Classes
    OrcCommonFunctions
  54. final def wait(): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  55. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  56. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... ) @native()
  57. def withCodecOutputStream[T](ctx: OrcPartitionReaderContext, out: OutputStream)(block: (OrcProtoWriterShim) ⇒ T): T

    Executes the provided code block in the codec environment

    Executes the provided code block in the codec environment

    Definition Classes
    OrcCodecWritingHelper
  58. final def writeOrcFileHeader(outStream: HostMemoryOutputStream): Long
    Attributes
    protected
    Definition Classes
    OrcCommonFunctions
  59. final def writeOrcFileTail(outStream: HostMemoryOutputStream, ctx: OrcPartitionReaderContext, footerStartOffset: Long, stripes: Seq[OrcOutputStripe]): Unit

    write the ORC file footer and PostScript

    write the ORC file footer and PostScript

    Attributes
    protected
    Definition Classes
    OrcCommonFunctions

Inherited from OrcPartitionReaderBase

Inherited from OrcCommonFunctions

Inherited from OrcCodecWritingHelper

Inherited from FilePartitionReaderBase

Inherited from ScanWithMetrics

Inherited from Logging

Inherited from PartitionReader[ColumnarBatch]

Inherited from Closeable

Inherited from AutoCloseable

Inherited from AnyRef

Inherited from Any

Ungrouped