Packages

c

com.nvidia.spark.rapids

MultiFileCloudOrcPartitionReader

class MultiFileCloudOrcPartitionReader extends MultiFileCloudPartitionReaderBase with MultiFileReaderFunctions with OrcPartitionReaderBase

A PartitionReader that can read multiple ORC files in parallel. This is most efficient running in a cloud environment where the I/O of reading is slow.

Efficiently reading a ORC split on the GPU requires re-constructing the ORC file in memory that contains just the Stripes that are needed. This avoids sending unnecessary data to the GPU and saves GPU memory.

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

Instance Constructors

  1. new MultiFileCloudOrcPartitionReader(conf: Configuration, files: Array[PartitionedFile], dataSchema: StructType, readDataSchema: StructType, partitionSchema: StructType, maxReadBatchSizeRows: Integer, maxReadBatchSizeBytes: Long, targetBatchSizeBytes: Long, maxGpuColumnSizeBytes: Long, useChunkedReader: Boolean, maxChunkedReaderMemoryUsageSizeBytes: Long, numThreads: Int, maxNumFileProcessed: Int, debugDumpPrefix: Option[String], debugDumpAlways: Boolean, filters: Array[Filter], filterHandler: GpuOrcFileFilterHandler, execMetrics: Map[String, GpuMetric], ignoreMissingFiles: Boolean, ignoreCorruptFiles: Boolean, queryUsesInputFile: Boolean, keepReadsInOrder: Boolean, combineConf: CombineConf)

    conf

    the Hadoop configuration

    files

    the partitioned files to read

    dataSchema

    schema of the data

    readDataSchema

    the Spark schema describing what will be read

    partitionSchema

    Schema of partitions.

    maxReadBatchSizeRows

    soft limit on the maximum number of rows the reader reads per batch

    maxReadBatchSizeBytes

    soft limit on the maximum number of bytes the reader reads per batch

    targetBatchSizeBytes

    the target size of a batch

    maxGpuColumnSizeBytes

    maximum number of bytes for a GPU column

    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

    numThreads

    the size of the threadpool

    maxNumFileProcessed

    threshold to control the maximum file number to be submitted to threadpool

    debugDumpPrefix

    a path prefix to use for dumping the fabricated ORC data or null

    debugDumpAlways

    whether to always debug dump or only on errors

    filters

    filters passed into the filterHandler

    filterHandler

    used to filter the ORC stripes

    execMetrics

    the metrics

    ignoreMissingFiles

    Whether to ignore missing files

    ignoreCorruptFiles

    Whether to ignore corrupt files

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 canUseCombine: Boolean
  10. def clone(): AnyRef
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... ) @native()
  11. def close(): Unit
    Definition Classes
    MultiFileCloudPartitionReaderBaseFilePartitionReaderBase → Closeable → AutoCloseable
  12. def combineHMBs(buffers: Array[HostMemoryBuffersWithMetaDataBase]): HostMemoryBuffersWithMetaDataBase
  13. var combineLeftOverFiles: Option[Array[HostMemoryBuffersWithMetaDataBase]]
    Attributes
    protected
    Definition Classes
    MultiFileCloudPartitionReaderBase
  14. val conf: Configuration
  15. 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
  16. var currentFileHostBuffers: Option[HostMemoryBuffersWithMetaDataBase]
    Attributes
    protected
    Definition Classes
    MultiFileCloudPartitionReaderBase
  17. def currentMetricsValues(): Array[CustomTaskMetric]
    Definition Classes
    PartitionReader
  18. val debugDumpAlways: Boolean

    Whether to always debug dump or only on errors

    Whether to always debug dump or only on errors

    Definition Classes
    MultiFileCloudOrcPartitionReaderOrcCommonFunctions
  19. 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
    MultiFileCloudOrcPartitionReaderOrcCommonFunctions
  20. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  21. def equals(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  22. final def estimateOutputSizeFromBlocks(blocks: Seq[OrcStripeWithMeta]): Long
    Attributes
    protected
    Definition Classes
    OrcCommonFunctions
  23. def fileSystemBytesRead(): Long
    Attributes
    protected
    Definition Classes
    MultiFileReaderFunctions
    Annotations
    @nowarn()
  24. def finalize(): Unit
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  25. def get(): ColumnarBatch
    Definition Classes
    FilePartitionReaderBase → PartitionReader
  26. def getBatchRunner(tc: TaskContext, file: PartitionedFile, origFile: Option[PartitionedFile], conf: Configuration, filters: Array[Filter]): Callable[HostMemoryBuffersWithMetaDataBase]

    The sub-class must implement the real file reading logic in a Callable which will be running in a thread pool

    The sub-class must implement the real file reading logic in a Callable which will be running in a thread pool

    tc

    task context to use

    file

    file to be read

    origFile

    optional original unmodified file if replaced with Alluxio

    conf

    the Configuration parameters

    filters

    push down filters

    returns

    Callable[HostMemoryBuffersWithMetaDataBase]

    Definition Classes
    MultiFileCloudOrcPartitionReaderMultiFileCloudPartitionReaderBase
  27. final def getClass(): Class[_]
    Definition Classes
    AnyRef → Any
    Annotations
    @native()
  28. 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
    MultiFileCloudOrcPartitionReaderMultiFileCloudPartitionReaderBase
  29. def getORCOptionsAndSchema(memFileSchema: TypeDescription, requestedMapping: Option[Array[Int]], readDataSchema: StructType): (ORCOptions, TypeDescription)
    Definition Classes
    OrcCommonFunctions
  30. def hashCode(): Int
    Definition Classes
    AnyRef → Any
    Annotations
    @native()
  31. def initializeLogIfNecessary(isInterpreter: Boolean, silent: Boolean): Boolean
    Attributes
    protected
    Definition Classes
    Logging
  32. def initializeLogIfNecessary(isInterpreter: Boolean): Unit
    Attributes
    protected
    Definition Classes
    Logging
  33. var isDone: Boolean
    Attributes
    protected
    Definition Classes
    FilePartitionReaderBase
  34. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  35. final def isNeedToSplitDataBlock(curMeta: OrcBlockMetaForSplitCheck, nextMeta: OrcBlockMetaForSplitCheck): Boolean
    Attributes
    protected
    Definition Classes
    OrcCommonFunctions
  36. def isTraceEnabled(): Boolean
    Attributes
    protected
    Definition Classes
    Logging
  37. def log: Logger
    Attributes
    protected
    Definition Classes
    Logging
  38. def logDebug(msg: ⇒ String, throwable: Throwable): Unit
    Attributes
    protected
    Definition Classes
    Logging
  39. def logDebug(msg: ⇒ String): Unit
    Attributes
    protected
    Definition Classes
    Logging
  40. def logError(msg: ⇒ String, throwable: Throwable): Unit
    Attributes
    protected
    Definition Classes
    Logging
  41. def logError(msg: ⇒ String): Unit
    Attributes
    protected
    Definition Classes
    Logging
  42. def logInfo(msg: ⇒ String, throwable: Throwable): Unit
    Attributes
    protected
    Definition Classes
    Logging
  43. def logInfo(msg: ⇒ String): Unit
    Attributes
    protected
    Definition Classes
    Logging
  44. def logName: String
    Attributes
    protected
    Definition Classes
    Logging
  45. def logTrace(msg: ⇒ String, throwable: Throwable): Unit
    Attributes
    protected
    Definition Classes
    Logging
  46. def logTrace(msg: ⇒ String): Unit
    Attributes
    protected
    Definition Classes
    Logging
  47. def logWarning(msg: ⇒ String, throwable: Throwable): Unit
    Attributes
    protected
    Definition Classes
    Logging
  48. def logWarning(msg: ⇒ String): Unit
    Attributes
    protected
    Definition Classes
    Logging
  49. val metrics: Map[String, GpuMetric]
    Definition Classes
    ScanWithMetrics
  50. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  51. def next(): Boolean
    Definition Classes
    MultiFileCloudPartitionReaderBase → PartitionReader
  52. final def notify(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  53. final def notifyAll(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  54. def populateCurrentBlockChunk(blockIterator: BufferedIterator[OrcOutputStripe], maxReadBatchSizeRows: Int, maxReadBatchSizeBytes: Long): Seq[OrcOutputStripe]
    Definition Classes
    OrcPartitionReaderBase
  55. def readBatches(fileBufsAndMeta: HostMemoryBuffersWithMetaDataBase): Iterator[ColumnarBatch]

    Decode HostMemoryBuffers in GPU

    Decode HostMemoryBuffers in GPU

    fileBufsAndMeta

    the file HostMemoryBuffer read from a PartitionedFile

    returns

    the decoded batches

    Definition Classes
    MultiFileCloudOrcPartitionReaderMultiFileCloudPartitionReaderBase
  56. val readDataSchema: StructType
  57. 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
  58. final def synchronized[T0](arg0: ⇒ T0): T0
    Definition Classes
    AnyRef
  59. implicit def toDataStripes(stripes: Seq[DataBlockBase]): Seq[OrcStripeWithMeta]
    Attributes
    protected
    Definition Classes
    OrcCommonFunctions
  60. def toString(): String
    Definition Classes
    AnyRef → Any
  61. implicit def toStripe(block: DataBlockBase): OrcStripeWithMeta
    Attributes
    protected
    Definition Classes
    OrcCommonFunctions
  62. final def wait(): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  63. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  64. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... ) @native()
  65. 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
  66. final def writeOrcFileHeader(outStream: HostMemoryOutputStream): Long
    Attributes
    protected
    Definition Classes
    OrcCommonFunctions
  67. 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 MultiFileReaderFunctions

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