Packages

package rapids

Ordering
  1. Alphabetic
Visibility
  1. Public
  2. All

Type Members

  1. abstract class AbstractGpuCoalesceIterator extends Iterator[ColumnarBatch] with Arm with Logging
  2. abstract class AbstractGpuJoinIterator extends Iterator[ColumnarBatch] with Arm with TaskAutoCloseableResource

    Base class for iterators producing the results of a join.

  3. class AcceleratedColumnarToRowIterator extends Iterator[InternalRow] with Arm with Serializable

    An iterator that uses the GPU for columnar to row conversion of fixed width types.

  4. class AddressSpaceAllocator extends AnyRef

    Allocates blocks from an address space using a best-fit algorithm.

  5. case class AggAndReplace[T](agg: T, nullReplacePolicy: Option[ReplacePolicy]) extends Product with Serializable

    For Scan and GroupBy Scan aggregations nulls are not always treated the same way as they are in window operations.

    For Scan and GroupBy Scan aggregations nulls are not always treated the same way as they are in window operations. Often we have to run a post processing step and replace them. This groups those two together so we can have a complete picture of how to perform these types of aggregations.

  6. abstract class AggExprMeta[INPUT <: AggregateFunction] extends ExprMeta[INPUT]

    Base class for metadata around AggregateFunction.

  7. case class AggregateModeInfo(uniqueModes: Seq[AggregateMode], hasPartialMode: Boolean, hasPartialMergeMode: Boolean, hasFinalMode: Boolean, hasCompleteMode: Boolean) extends Product with Serializable

    Utility class to convey information on the aggregation modes being used

  8. case class AllowSpillOnlyLazySpillableColumnarBatchImpl(wrapped: LazySpillableColumnarBatch) extends LazySpillableColumnarBatch with Arm with Product with Serializable

    A version of LazySpillableColumnarBatch where instead of closing the underlying batch it is only spilled.

    A version of LazySpillableColumnarBatch where instead of closing the underlying batch it is only spilled. This is used for cases, like with a streaming hash join where the data itself needs to out live the JoinGatherer it is handed off to.

  9. case class ApproxPercentileFromTDigestExpr(child: Expression, percentiles: Either[Double, Array[Double]], finalDataType: DataType) extends Expression with GpuExpression with ShimExpression with Product with Serializable

    This expression computes an approximate percentile using a t-digest as input.

    This expression computes an approximate percentile using a t-digest as input.

    child

    Expression that produces the t-digests.

    percentiles

    Percentile scalar, or percentiles array to evaluate.

    finalDataType

    Data type for results

  10. trait Arm extends AnyRef

    Implementation of the automatic-resource-management pattern

  11. class AutoCloseColumnBatchIterator[U] extends Iterator[ColumnarBatch]

    For columnar code on the CPU it is the responsibility of the SparkPlan exec that creates a ColumnarBatch to close it.

    For columnar code on the CPU it is the responsibility of the SparkPlan exec that creates a ColumnarBatch to close it. In the case of code running on the GPU that would waste too much memory, so it is the responsibility of the code receiving the batch to close it, when it is not longer needed.

    This class provides a simple way for CPU batch code to be sure that a batch gets closed. If your code is executing on the GPU do not use this class.

  12. case class AvoidTransition[INPUT <: SparkPlan](plan: SparkPlanMeta[INPUT]) extends Optimization with Product with Serializable
  13. class AvroDataFileReader extends AvroFileReader

    AvroDataFileReader reads the Avro file data in the iterator pattern.

    AvroDataFileReader reads the Avro file data in the iterator pattern. You can use it as below. while(reader.hasNextBlock) { val b = reader.peekBlock estimateBufSize(b) // allocate the batch buffer reader.readNextRawBlock(buffer_as_out_stream) }

  14. abstract class AvroFileReader extends AutoCloseable

    The parent of the Rapids Avro file readers

  15. class AvroFileWriter extends AnyRef

    AvroDataWriter, used to write a avro file header to the output stream.

  16. class AvroMetaFileReader extends AvroFileReader

    AvroMetaFileReader collects the blocks' information from the Avro file without reading the block data.

  17. trait AvroProvider extends AnyRef
  18. abstract class BaseCrossJoinGatherMap extends LazySpillableGatherMap
  19. abstract class BaseExprMeta[INPUT <: Expression] extends RapidsMeta[INPUT, Expression, Expression]

    Base class for metadata around Expression.

  20. trait BasicWindowCalc extends Arm

    Calculates the results of window operations.

    Calculates the results of window operations. It assumes that any batching of the data or fixups after the fact to get the right answer is done outside of this.

  21. class BatchContext extends AnyRef

    A context lives during the whole process of reading partitioned files to a batch buffer (aka HostMemoryBuffer) to build a memory file.

    A context lives during the whole process of reading partitioned files to a batch buffer (aka HostMemoryBuffer) to build a memory file. Children can extend this to add more necessary fields.

  22. abstract class BatchedBufferDecompressor extends AutoCloseable with Arm with Logging

    Base class for batched decompressors

  23. case class BatchedByKey(gpuOrder: Seq[SortOrder])(cpuOrder: Seq[SortOrder]) extends CoalesceGoal with Product with Serializable

    Split the data into batches where a set of keys are all within a single batch.

    Split the data into batches where a set of keys are all within a single batch. This is generally used for things like a window operation or a sort based aggregation where you want all of the keys for a given operation to be available so the GPU can produce a correct answer. There is no limit on the target size so if there is a lot of data skew for a key, the batch may still run into limits on set by Spark or cudf. It should be noted that it is required that a node in the Spark plan that requires this should also require an input ordering that satisfies this ordering as well.

    gpuOrder

    the GPU keys that should be used for batching.

    cpuOrder

    the CPU keys that should be used for batching.

  24. class BatchedCopyCompressor extends BatchedTableCompressor
  25. class BatchedCopyDecompressor extends BatchedBufferDecompressor
  26. class BatchedNvcompLZ4Compressor extends BatchedTableCompressor
  27. class BatchedNvcompLZ4Decompressor extends BatchedBufferDecompressor
  28. class BatchedRunningWindowBinaryFixer extends BatchedRunningWindowFixer with Arm with Logging

    This class fixes up batched running windows by performing a binary op on the previous value and those in the the same partition by key group.

    This class fixes up batched running windows by performing a binary op on the previous value and those in the the same partition by key group. It does not deal with nulls, so it works for things like row_number and count, that cannot produce nulls, or for NULL_MIN and NULL_MAX that do the right thing when they see a null.

  29. trait BatchedRunningWindowFixer extends AutoCloseable

    Provides a way to process running window operations without needing to buffer and split the batches on partition by boundaries.

    Provides a way to process running window operations without needing to buffer and split the batches on partition by boundaries. When this happens part of a partition by key set may have been processed in the last batch, and the rest of it will need to be updated. For example if we are doing a running min operation. We may first get in something like PARTS: 1, 1, 2, 2 VALUES: 2, 3, 10, 9

    The output of processing this would result in a new column that would look like MINS: 2, 2, 10, 9

    But we don't know if the group with 2 in PARTS is done or not. So the fixer saved the last value in MINS, which is a 9. When the next batch shows up

    PARTS: 2, 2, 3, 3 VALUES: 11, 5, 13, 14

    We generate the window result again and get

    MINS: 11, 5, 13, 13

    But we cannot output this yet because there may have been overlap with the previous batch. The framework will figure that out and pass data into fixUp to do the fixing. It will pass in MINS, and also a column of boolean values true, true, false, false to indicate which rows overlapped with the previous batch. In our min example fixUp will do a min between the last value in the previous batch and the values that could overlap with it.

    RESULT: 9, 5, 13, 13 which can be output.

  30. abstract class BatchedTableCompressor extends AutoCloseable with Arm with Logging

    Base class for batched compressors

  31. abstract class BinaryAstExprMeta[INPUT <: BinaryExpression] extends BinaryExprMeta[INPUT]

    Base metadata class for binary expressions that support conversion to AST

  32. abstract class BinaryExprMeta[INPUT <: BinaryExpression] extends ExprMeta[INPUT]

    Base class for metadata around BinaryExpression.

  33. case class BlockInfo(blockStart: Long, blockSize: Long, dataSize: Long, count: Long) extends Product with Serializable

    The each Avro block information

    The each Avro block information

    blockStart

    the start of block

    blockSize

    the whole block size = the size between two sync buffers + sync buffer

    dataSize

    the block data size

    count

    how many entries in this block

  34. case class BoundGpuWindowFunction(windowFunc: GpuWindowFunction, boundInputLocations: Array[Int]) extends Arm with Product with Serializable

    The class represents a window function and the locations of its deduped inputs after an initial projection.

  35. class ByteArrayInputFile extends InputFile
  36. class CSVPartitionReader extends GpuTextBasedPartitionReader
  37. class CastChecks extends ExprChecks
  38. final class CastExprMeta[INPUT <: CastBase] extends UnaryExprMeta[INPUT]

    Meta-data for cast and ansi_cast.

  39. class CloseableHolder[T <: AutoCloseable] extends AnyRef
  40. case class ClouderaShimVersion(major: Int, minor: Int, patch: Int, clouderaVersion: String) extends ShimVersion with Product with Serializable
  41. sealed abstract class CoalesceGoal extends Expression with GpuUnevaluable with ShimExpression

    Provides a goal for batching of data.

  42. sealed abstract class CoalesceSizeGoal extends CoalesceGoal
  43. class CollectTimeIterator extends Iterator[ColumnarBatch]
  44. class ColumnarCopyHelper extends AnyRef

    A helper class which efficiently transfers different types of host columnar data into cuDF.

    A helper class which efficiently transfers different types of host columnar data into cuDF. It is written in Java for two reasons: 1. Scala for-loop is slower (Scala while-loop is identical to Java loop) 2. Both ColumnBuilder and ColumnVector are Java classes

  45. trait ColumnarFileFormat extends AnyRef

    Used to write columnar data to files.

  46. abstract class ColumnarOutputWriter extends HostBufferConsumer with Arm

    This is used to write columnar data to a file system.

    This is used to write columnar data to a file system. Subclasses of ColumnarOutputWriter must provide a zero-argument constructor. This is the columnar version of org.apache.spark.sql.execution.datasources.OutputWriter.

  47. abstract class ColumnarOutputWriterFactory extends Serializable

    A factory that produces ColumnarOutputWriters.

    A factory that produces ColumnarOutputWriters. A new ColumnarOutputWriterFactory is created on the driver side, and then gets serialized to executor side to create ColumnarOutputWriters. This is the columnar version of org.apache.spark.sql.execution.datasources.OutputWriterFactory.

  48. case class ColumnarOverrideRules() extends ColumnarRule with Logging with Product with Serializable
  49. class ColumnarPartitionReaderWithPartitionValues extends PartitionReader[ColumnarBatch]

    A wrapper reader that always appends partition values to the ColumnarBatch produced by the input reader fileReader.

    A wrapper reader that always appends partition values to the ColumnarBatch produced by the input reader fileReader. Each scalar value is splatted to a column with the same number of rows as the batch returned by the reader.

  50. class ColumnarToRowIterator extends Iterator[InternalRow] with Arm
  51. abstract class ComplexTypeMergingExprMeta[INPUT <: ComplexTypeMergingExpression] extends ExprMeta[INPUT]

    Base class for metadata around ComplexTypeMergingExpression.

  52. case class CompressedTable(compressedSize: Long, meta: TableMeta, buffer: DeviceMemoryBuffer) extends AutoCloseable with Product with Serializable

    Compressed table descriptor

    Compressed table descriptor

    compressedSize

    size of the compressed data in bytes

    meta

    metadata describing the table layout when uncompressed

    buffer

    buffer containing the compressed data

  53. class ConfBuilder extends AnyRef
  54. abstract class ConfEntry[T] extends AnyRef
  55. class ConfEntryWithDefault[T] extends ConfEntry[T]
  56. case class ContextChecks(outputCheck: TypeSig, sparkOutputSig: TypeSig, paramCheck: Seq[ParamCheck] = Seq.empty, repeatingParamCheck: Option[RepeatingParamCheck] = None) extends TypeChecks[Map[String, SupportLevel]] with Product with Serializable

    Checks an expression that have input parameters and a single output.

    Checks an expression that have input parameters and a single output. This is intended to be given for a specific ExpressionContext. If your expression does not meet this pattern you may need to create a custom ExprChecks instance.

  57. class CopyCompressionCodec extends TableCompressionCodec with Arm

    A table compression codec used only for testing that copies the data.

  58. class CostBasedOptimizer extends Optimizer with Logging

    Experimental cost-based optimizer that aims to avoid moving sections of the plan to the GPU when it would be better to keep that part of the plan on the CPU.

    Experimental cost-based optimizer that aims to avoid moving sections of the plan to the GPU when it would be better to keep that part of the plan on the CPU. For example, we don't want to move data to the GPU just for a trivial projection and then have to move data back to the CPU on the next step.

  59. trait CostModel extends AnyRef

    The cost model is behind a trait so that we can consider making this pluggable in the future so that users can override the cost model to suit specific use cases.

  60. class CpuCostModel extends CostModel
  61. final class CreateDataSourceTableAsSelectCommandMeta extends DataWritingCommandMeta[CreateDataSourceTableAsSelectCommand]
  62. trait CudfBinaryExpression extends BinaryExpression with GpuBinaryExpression
  63. abstract class CudfBinaryOperator extends BinaryOperator with GpuBinaryOperator with CudfBinaryExpression
  64. class CudfRegexTranspiler extends AnyRef

    Transpile Java/Spark regular expression to a format that cuDF supports, or throw an exception if this is not possible.

  65. class CudfTDigestMerge extends CudfAggregate
  66. class CudfTDigestUpdate extends CudfAggregate
  67. trait CudfUnaryExpression extends GpuUnaryExpression
  68. final class CudfUnsafeRow extends InternalRow

    This is an InternalRow implementation based off of UnsafeRow, but follows a format for use with the row format supported by cudf.

    This is an InternalRow implementation based off of UnsafeRow, but follows a format for use with the row format supported by cudf. In this format each column is padded to match the alignment needed by it, and validity is placed at the end one byte at a time.

    It also supports remapping the columns so that if the columns were re-ordered to reduce packing in the format, then they can be mapped back to their original positions.

    This class is likely to go away once we move to code generation when going directly to an UnsafeRow through code generation. This is rather difficult because of some details in how UnsafeRow works.

  69. case class CudfVersionMismatchException(errorMsg: String) extends PluginException with Product with Serializable
  70. trait DataBlockBase extends AnyRef
  71. trait DataFromReplacementRule extends AnyRef
  72. class DataTypeMeta extends AnyRef

    The metadata around DataType, which records the original data type, the desired data type for GPU overrides, and the reason of potential conversion.

    The metadata around DataType, which records the original data type, the desired data type for GPU overrides, and the reason of potential conversion. The metadata is to ensure TypeChecks tagging the actual data types for GPU runtime, since data types of GPU overrides may slightly differ from original CPU counterparts.

  73. abstract class DataWritingCommandMeta[INPUT <: DataWritingCommand] extends RapidsMeta[INPUT, DataWritingCommand, GpuDataWritingCommand]

    Base class for metadata around DataWritingCommand.

  74. class DataWritingCommandRule[INPUT <: DataWritingCommand] extends ReplacementRule[INPUT, DataWritingCommand, DataWritingCommandMeta[INPUT]]

    Holds everything that is needed to replace a DataWritingCommand with a GPU enabled version.

  75. case class DatabricksShimVersion(major: Int, minor: Int, patch: Int, dbver: String = "") extends ShimVersion with Product with Serializable
  76. sealed class DegenerateRapidsBuffer extends RapidsBuffer with Arm

    A buffer with no corresponding device data (zero rows or columns).

    A buffer with no corresponding device data (zero rows or columns). These buffers are not tracked in buffer stores since they have no device memory. They are only tracked in the catalog and provide a representative ColumnarBatch but cannot provide a MemoryBuffer.

  77. class DenseRankFixer extends BatchedRunningWindowFixer with Arm with Logging

    Fix up dense rank batches.

    Fix up dense rank batches. A dense rank has no gaps in the rank values. The rank corresponds to the ordering columns(s) equality. So when a batch finishes and another starts that split can either be at the beginning of a new order by section or part way through one. If it is at the beginning, then like row number we want to just add in the previous value and go on. If it was part way through, then we want to add in the previous value minus 1. The minus one is to pick up where we left off. If anything is outside of a continues partition by group then we just keep those values unchanged.

  78. class DeviceMemoryEventHandler extends RmmEventHandler with Logging

    RMM event handler to trigger spilling from the device memory store.

  79. class DirectByteBufferFactory extends ByteBufferFactory
  80. final class DoNotReplaceOrWarnSparkPlanMeta[INPUT <: SparkPlan] extends SparkPlanMeta[INPUT]

    Metadata for SparkPlan that should not be replaced or have any kind of warning for

  81. class DuplicateBufferException extends RuntimeException

    Exception thrown when inserting a buffer into the catalog with a duplicate buffer ID and storage tier combination.

  82. case class EEPShimVersion(major: Int, minor: Int, patch: Int, ebfVer: Int, eep: String = "") extends ShimVersion with Product with Serializable
  83. class ExecChecks extends TypeChecks[Map[String, SupportLevel]]

    Checks the input and output types supported by a SparkPlan node.

    Checks the input and output types supported by a SparkPlan node. We don't currently separate input checks from output checks. We can add this in if something needs it.

    The namedChecks map can be used to provide checks for specific groups of expressions.

  84. class ExecRule[INPUT <: SparkPlan] extends ReplacementRule[INPUT, SparkPlan, SparkPlanMeta[INPUT]]

    Holds everything that is needed to replace a SparkPlan with a GPU enabled version.

  85. class ExecutionPlanCaptureCallback extends QueryExecutionListener

    Used as a part of testing to capture the executed query plan.

  86. trait ExplainPlanBase extends AnyRef
  87. class ExplainPlanImpl extends ExplainPlanBase

    Note, this class should not be referenced directly in source code.

    Note, this class should not be referenced directly in source code. It should be loaded by reflection using ShimLoader.newInstanceOf, see ./docs/dev/shims.md

    Attributes
    protected
  88. abstract class ExprChecks extends TypeChecks[Map[ExpressionContext, Map[String, SupportLevel]]]

    Base class all Expression checks must follow.

  89. case class ExprChecksImpl(contexts: Map[ExpressionContext, ContextChecks]) extends ExprChecks with Product with Serializable
  90. abstract class ExprMeta[INPUT <: Expression] extends BaseExprMeta[INPUT]
  91. class ExprRule[INPUT <: Expression] extends ReplacementRule[INPUT, Expression, BaseExprMeta[INPUT]]

    Holds everything that is needed to replace an Expression with a GPU enabled version.

  92. sealed abstract class ExpressionContext extends AnyRef
  93. trait ExtraInfo extends AnyRef

    A common trait for the extra information for different file format

  94. class FileFormatChecks extends TypeChecks[SupportLevel]

    Checks for either a read or a write of a given file format.

  95. sealed trait FileFormatOp extends AnyRef
  96. sealed trait FileFormatType extends AnyRef
  97. abstract class FilePartitionReaderBase extends PartitionReader[ColumnarBatch] with Logging with ScanWithMetrics with Arm

    The base class for PartitionReader

  98. abstract class GeneratorExprMeta[INPUT <: Generator] extends ExprMeta[INPUT]
  99. trait GpuAggregateWindowFunction extends Expression with GpuWindowFunction

    GPU Counterpart of AggregateWindowFunction.

    GPU Counterpart of AggregateWindowFunction. On the CPU this would extend DeclarativeAggregate and use the provided methods to build up the expressions need to produce a result. For window operations we do it in a single pass, where all of the data is available so instead we have out own set of expressions.

  100. case class GpuAlias(child: Expression, name: String)(exprId: ExprId = NamedExpression.newExprId, qualifier: Seq[String] = Seq.empty, explicitMetadata: Option[Metadata] = None) extends GpuUnaryExpression with NamedExpression with Product with Serializable
  101. case class GpuApproximatePercentile(child: Expression, percentageExpression: GpuLiteral, accuracyExpression: GpuLiteral = ...) extends Expression with GpuAggregateFunction with Product with Serializable

    The ApproximatePercentile function returns the approximate percentile(s) of a column at the given percentage(s).

    The ApproximatePercentile function returns the approximate percentile(s) of a column at the given percentage(s). A percentile is a watermark value below which a given percentage of the column values fall. For example, the percentile of column col at percentage 50% is the median of column col.

    This function supports partial aggregation.

    The GPU implementation uses t-digest to perform the initial aggregation (see updateExpressions / mergeExpressions) and then applies the ApproxPercentileFromTDigestExpr expression to compute percentiles from the final t-digest (see evaluateExpression).

    There are two different data types involved here. The t-digests are a map of centroids (Map[mean: Double -> weight: Double]) represented as List[Struct[Double, Double]] and the final output is either a single double or an array of doubles, depending on whether the percentageExpression parameter is a single value or an array.

    child

    child expression that can produce column value with child.eval()

    percentageExpression

    Expression that represents a single percentage value or an array of percentage values. Each percentage value must be between 0.0 and 1.0.

    accuracyExpression

    Integer literal expression of approximation accuracy. Higher value yields better accuracy, the default value is DEFAULT_PERCENTILE_ACCURACY.

  102. case class GpuArrayExists(argument: Expression, function: Expression, followThreeValuedLogic: Boolean, isBound: Boolean = false, boundIntermediate: Seq[GpuExpression] = Seq.empty) extends Expression with GpuArrayTransformBase with Product with Serializable
  103. case class GpuArrayTransform(argument: Expression, function: Expression, isBound: Boolean = false, boundIntermediate: Seq[GpuExpression] = Seq.empty) extends Expression with GpuArrayTransformBase with Product with Serializable
  104. trait GpuArrayTransformBase extends Expression with GpuSimpleHigherOrderFunction
  105. case class GpuAtLeastNNonNulls(n: Int, exprs: Seq[Expression]) extends Expression with GpuExpression with ShimExpression with Predicate with Product with Serializable

    A GPU accelerated predicate that is evaluated to be true if there are at least n non-null and non-NaN values.

  106. abstract class GpuBaseAggregateMeta[INPUT <: SparkPlan] extends SparkPlanMeta[INPUT]
  107. trait GpuBaseLimitExec extends SparkPlan with LimitExec with GpuExec with ShimUnaryExecNode

    Helper trait which defines methods that are shared by both GpuLocalLimitExec and GpuGlobalLimitExec.

  108. abstract class GpuBaseWindowExecMeta[WindowExecType <: SparkPlan] extends SparkPlanMeta[WindowExecType] with Logging

    Base class for GPU Execs that implement window functions.

    Base class for GPU Execs that implement window functions. This abstracts the method by which the window function's input expressions, partition specs, order-by specs, etc. are extracted from the specific WindowExecType.

    WindowExecType

    The Exec class that implements window functions (E.g. o.a.s.sql.execution.window.WindowExec.)

  109. trait GpuBatchScanExecMetrics extends SparkPlan with GpuExec
  110. trait GpuBatchedRunningWindowWithFixer extends AnyRef

    For many operations a running window (unbounded preceding to current row) can process the data without dividing the data up into batches that contain all of the data for a given group by key set.

    For many operations a running window (unbounded preceding to current row) can process the data without dividing the data up into batches that contain all of the data for a given group by key set. Instead we store a small amount of state from a previous result and use it to fix the final result. This is a memory optimization.

  111. trait GpuBinaryExpression extends BinaryExpression with ShimBinaryExpression with GpuExpression
  112. trait GpuBinaryOperator extends BinaryOperator with GpuBinaryExpression
  113. trait GpuBind extends AnyRef

    A trait that allows an Expression to control how it and its child expressions are bound.

    A trait that allows an Expression to control how it and its child expressions are bound. This should be used with a lot of caution as binding can be really hard to debug if you get it wrong. The output of bind should have all instances of AttributeReference replaced with GpuBoundReference.

  114. case class GpuBoundReference(ordinal: Int, dataType: DataType, nullable: Boolean)(exprId: ExprId, name: String) extends GpuLeafExpression with ShimExpression with Product with Serializable
  115. case class GpuBringBackToHost(child: SparkPlan) extends SparkPlan with ShimUnaryExecNode with GpuExec with Product with Serializable

    Pull back any data on the GPU to the host so the host can access it.

  116. case class GpuBroadcastHashJoinExec(leftKeys: Seq[Expression], rightKeys: Seq[Expression], joinType: JoinType, buildSide: GpuBuildSide, condition: Option[Expression], left: SparkPlan, right: SparkPlan) extends SparkPlan with ShimBinaryExecNode with GpuHashJoin with Product with Serializable
  117. class GpuBroadcastHashJoinMeta extends GpuBroadcastJoinMeta[BroadcastHashJoinExec]
  118. abstract class GpuBroadcastJoinMeta[INPUT <: SparkPlan] extends SparkPlanMeta[INPUT]
  119. sealed abstract class GpuBuildSide extends AnyRef

    Spark BuildSide, BuildRight, BuildLeft moved packages in Spark 3.1 so create GPU versions of these that can be agnostic to Spark version.

  120. case class GpuCSVPartitionReaderFactory(sqlConf: SQLConf, broadcastedConf: Broadcast[SerializableConfiguration], dataSchema: StructType, readDataSchema: StructType, partitionSchema: StructType, parsedOptions: CSVOptions, maxReaderBatchSizeRows: Integer, maxReaderBatchSizeBytes: Long, metrics: Map[String, GpuMetric], params: Map[String, String]) extends ShimFilePartitionReaderFactory with Product with Serializable
  121. case class GpuCSVScan(sparkSession: SparkSession, fileIndex: PartitioningAwareFileIndex, dataSchema: StructType, readDataSchema: StructType, readPartitionSchema: StructType, options: CaseInsensitiveStringMap, partitionFilters: Seq[Expression], dataFilters: Seq[Expression], maxReaderBatchSizeRows: Integer, maxReaderBatchSizeBytes: Long) extends TextBasedFileScan with ScanWithMetrics with Product with Serializable
  122. case class GpuCaseWhen(branches: Seq[(Expression, Expression)], elseValue: Option[Expression] = None) extends Expression with GpuConditionalExpression with Serializable with Product
  123. case class GpuCast(child: Expression, dataType: DataType, ansiMode: Boolean = false, timeZoneId: Option[String] = None, legacyCastToString: Boolean = false, stringToDateAnsiModeEnabled: Boolean = false) extends GpuUnaryExpression with TimeZoneAwareExpression with NullIntolerant with Product with Serializable

    Casts using the GPU

  124. case class GpuCheckOverflow(child: Expression, dataType: DecimalType, nullOnOverflow: Boolean) extends GpuUnaryExpression with Product with Serializable

    A GPU substitution for CheckOverflow.

    A GPU substitution for CheckOverflow. This cannot match the Spark CheckOverflow 100% because Spark will calculate values in BigDecimal with unbounded precision and then see if there was an overflow. This will check bounds, but can only detect that an overflow happened if the result is outside the bounds of what the Spark type supports, but did not yet overflow the bounds for what the CUDF type supports. For most operations when this is a possibility for the given precision then the operator should fall back to the CPU, or have alternative ways of checking for overflow prior to this being called.

  125. case class GpuCoalesce(children: Seq[Expression]) extends Expression with GpuExpression with ShimExpression with ComplexTypeMergingExpression with Product with Serializable
  126. case class GpuCoalesceBatches(child: SparkPlan, goal: CoalesceGoal) extends SparkPlan with ShimUnaryExecNode with GpuExec with Product with Serializable
  127. case class GpuCoalesceExec(numPartitions: Int, child: SparkPlan) extends SparkPlan with ShimUnaryExecNode with GpuExec with Product with Serializable
  128. class GpuCoalesceIterator extends AbstractGpuCoalesceIterator with Arm
  129. class GpuCollectLimitMeta extends SparkPlanMeta[CollectLimitExec]
  130. class GpuColumnVector extends GpuColumnVectorBase

    A GPU accelerated version of the Spark ColumnVector.

    A GPU accelerated version of the Spark ColumnVector. Most of the standard Spark APIs should never be called, as they assume that the data is on the host, and we want to keep as much of the data on the device as possible. We also provide GPU accelerated versions of the transitions to and from rows.

  131. final class GpuColumnVectorFromBuffer extends GpuColumnVector

    GPU column vector carved from a single buffer, like those from cudf's contiguousSplit.

  132. class GpuColumnarBatchSerializer extends Serializer with Serializable

    Serializer for serializing ColumnarBatchs for use during normal shuffle.

    Serializer for serializing ColumnarBatchs for use during normal shuffle.

    The serialization write path takes the cudf Table that is described by the ColumnarBatch and uses cudf APIs to serialize the data into a sequence of bytes on the host. The data is returned to the Spark shuffle code where it is compressed by the CPU and written to disk.

    The serialization read path is notably different. The sequence of serialized bytes IS NOT deserialized into a cudf Table but rather tracked in host memory by a ColumnarBatch that contains a SerializedTableColumn. During query planning, each GPU columnar shuffle exchange is followed by a GpuShuffleCoalesceExec that expects to receive only these custom batches of SerializedTableColumn. GpuShuffleCoalesceExec coalesces the smaller shuffle partitions into larger tables before placing them on the GPU for further processing.

    Note

    The RAPIDS shuffle does not use this code.

  133. case class GpuColumnarToRowExec(child: SparkPlan, exportColumnarRdd: Boolean = false, postProjection: Seq[NamedExpression] = Seq.empty) extends SparkPlan with ShimUnaryExecNode with ColumnarToRowTransition with GpuExec with Product with Serializable
  134. trait GpuComplexTypeMergingExpression extends Expression with ComplexTypeMergingExpression with GpuExpression with ShimExpression
  135. final class GpuCompressedColumnVector extends GpuColumnVectorBase with WithTableBuffer

    A column vector that tracks a compressed table.

    A column vector that tracks a compressed table. Unlike a normal GPU column vector, the columnar data within cannot be accessed directly. This class primarily serves the role of tracking the compressed data and table metadata so it can be decompressed later.

  136. class GpuCompressionAwareCoalesceIterator extends GpuCoalesceIterator

    Compression codec-aware GpuCoalesceIterator subclass which should be used in cases where the RAPIDS Shuffle Manager could be configured, as batches to be coalesced may be compressed.

  137. trait GpuConditionalExpression extends Expression with ComplexTypeMergingExpression with GpuExpression with ShimExpression
  138. class GpuCostModel extends CostModel
  139. trait GpuDataWritingCommand extends LogicalPlan with DataWritingCommand with ShimUnaryCommand

    An extension of DataWritingCommand that allows columnar execution.

  140. case class GpuDataWritingCommandExec(cmd: GpuDataWritingCommand, child: SparkPlan) extends SparkPlan with ShimUnaryExecNode with GpuExec with Product with Serializable
  141. case class GpuDenseRank(children: Seq[Expression]) extends Expression with GpuRunningWindowFunction with GpuBatchedRunningWindowWithFixer with Product with Serializable

    Dense Rank is a special window operation where it is only supported as a running window.

    Dense Rank is a special window operation where it is only supported as a running window. In cudf it is only supported as a scan and a group by scan.

    children

    the order by columns.

    Note

    this is a running window only operator

  142. trait GpuExec extends SparkPlan with Arm
  143. case class GpuExpandExec(projections: Seq[Seq[Expression]], output: Seq[Attribute], child: SparkPlan) extends SparkPlan with ShimUnaryExecNode with GpuExec with Product with Serializable

    Apply all of the GroupExpressions to every input row, hence we will get multiple output rows for an input row.

    Apply all of the GroupExpressions to every input row, hence we will get multiple output rows for an input row.

    projections

    The group of expressions, all of the group expressions should output the same schema specified bye the parameter output

    output

    Attribute references to Output

    child

    Child operator

  144. class GpuExpandExecMeta extends SparkPlanMeta[ExpandExec]
  145. class GpuExpandIterator extends Iterator[ColumnarBatch] with Arm
  146. case class GpuExplode(child: Expression) extends GpuExplodeBase with Product with Serializable
  147. abstract class GpuExplodeBase extends GpuUnevaluableUnaryExpression with GpuGenerator
  148. trait GpuExpression extends Expression with Arm

    An Expression that cannot be evaluated in the traditional row-by-row sense (hence Unevaluable) but instead can be evaluated on an entire column batch at once.

  149. case class GpuFastSampleExec(lowerBound: Double, upperBound: Double, withReplacement: Boolean, seed: Long, child: SparkPlan) extends SparkPlan with ShimUnaryExecNode with GpuExec with Product with Serializable
  150. case class GpuFilterExec(condition: Expression, child: SparkPlan, coalesceAfter: Boolean = true) extends SparkPlan with ShimUnaryExecNode with GpuPredicateHelper with GpuExec with Product with Serializable
  151. case class GpuGenerateExec(generator: GpuGenerator, requiredChildOutput: Seq[Attribute], outer: Boolean, generatorOutput: Seq[Attribute], child: SparkPlan) extends SparkPlan with ShimUnaryExecNode with GpuExec with Product with Serializable
  152. class GpuGenerateExecSparkPlanMeta extends SparkPlanMeta[GenerateExec]
  153. trait GpuGenerator extends Expression with GpuUnevaluable

    GPU overrides of Generator, corporate with GpuGenerateExec.

  154. case class GpuGetJsonObject(json: Expression, path: Expression) extends BinaryExpression with GpuBinaryExpression with ExpectsInputTypes with Product with Serializable
  155. case class GpuGlobalLimitExec(limit: Int, child: SparkPlan, offset: Int) extends SparkPlan with GpuBaseLimitExec with Product with Serializable

    Take the first limit elements of the child's single output partition.

  156. case class GpuHashAggregateExec(requiredChildDistributionExpressions: Option[Seq[Expression]], groupingExpressions: Seq[NamedExpression], aggregateExpressions: Seq[GpuAggregateExpression], aggregateAttributes: Seq[Attribute], resultExpressions: Seq[NamedExpression], child: SparkPlan, configuredTargetBatchSize: Long) extends SparkPlan with ShimUnaryExecNode with GpuExec with Arm with Product with Serializable

    The GPU version of HashAggregateExec

    The GPU version of HashAggregateExec

    requiredChildDistributionExpressions

    this is unchanged by the GPU. It is used in EnsureRequirements to be able to add shuffle nodes

    groupingExpressions

    The expressions that, when applied to the input batch, return the grouping key

    aggregateExpressions

    The GpuAggregateExpression instances for this node

    aggregateAttributes

    References to each GpuAggregateExpression (attribute references)

    resultExpressions

    the expected output expression of this hash aggregate (which this node should project)

    child

    incoming plan (where we get input columns from)

    configuredTargetBatchSize

    user-configured maximum device memory size of a batch

  157. class GpuHashAggregateIterator extends Iterator[ColumnarBatch] with Arm with AutoCloseable with Logging

    Iterator that takes another columnar batch iterator as input and emits new columnar batches that are aggregated based on the specified grouping and aggregation expressions.

    Iterator that takes another columnar batch iterator as input and emits new columnar batches that are aggregated based on the specified grouping and aggregation expressions. This iterator tries to perform a hash-based aggregation but is capable of falling back to a sort-based aggregation which can operate on data that is either larger than can be represented by a cudf column or larger than can fit in GPU memory.

    The iterator starts by pulling all batches from the input iterator, performing an initial projection and aggregation on each individual batch via aggregateInputBatches(). The resulting aggregated batches are cached in memory as spillable batches. Once all input batches have been aggregated, tryMergeAggregatedBatches() is called to attempt a merge of the aggregated batches into a single batch. If this is successful then the resulting batch can be returned, otherwise buildSortFallbackIterator is used to sort the aggregated batches by the grouping keys and performs a final merge aggregation pass on the sorted batches.

  158. class GpuHashAggregateMeta extends GpuBaseAggregateMeta[HashAggregateExec]
  159. case class GpuHashAggregateMetrics(numOutputRows: GpuMetric, numOutputBatches: GpuMetric, numTasksFallBacked: GpuMetric, opTime: GpuMetric, computeAggTime: GpuMetric, concatTime: GpuMetric, sortTime: GpuMetric, semWaitTime: GpuMetric, spillCallback: SpillCallback) extends Product with Serializable

    Utility class to hold all of the metrics related to hash aggregation

  160. abstract class GpuHashPartitioningBase extends Expression with GpuExpression with ShimExpression with GpuPartitioning with Serializable
  161. trait GpuHigherOrderFunction extends Expression with GpuExpression with ShimExpression

    A higher order function takes one or more (lambda) functions and applies these to some objects.

    A higher order function takes one or more (lambda) functions and applies these to some objects. The function produces a number of variables which can be consumed by some lambda function.

  162. case class GpuIf(predicateExpr: Expression, trueExpr: Expression, falseExpr: Expression) extends Expression with GpuConditionalExpression with Product with Serializable
  163. case class GpuInSet(child: Expression, list: Seq[Any]) extends GpuUnaryExpression with Predicate with Product with Serializable
  164. case class GpuIsNan(child: Expression) extends GpuUnaryExpression with Predicate with Product with Serializable
  165. case class GpuIsNotNull(child: Expression) extends GpuUnaryExpression with Predicate with Product with Serializable
  166. case class GpuIsNull(child: Expression) extends GpuUnaryExpression with Predicate with Product with Serializable
  167. class GpuKeyBatchingIterator extends Iterator[ColumnarBatch] with Arm

    Given a stream of data that is sorted by a set of keys, split the data so each batch output contains all of the keys for a given key set.

    Given a stream of data that is sorted by a set of keys, split the data so each batch output contains all of the keys for a given key set. This tries to get the batch sizes close to the target size. It assumes that the input batches will already be close to that size and does not try to split them too much further.

  168. case class GpuKnownFloatingPointNormalized(child: Expression) extends UnaryExpression with ShimTaggingExpression with GpuExpression with Product with Serializable

    This is a TaggingExpression in spark, which gets matched in NormalizeFloatingNumbers (which is a Rule).

  169. case class GpuKnownNotNull(child: Expression) extends UnaryExpression with ShimTaggingExpression with GpuExpression with Product with Serializable

    GPU version of the 'KnownNotNull', a TaggingExpression in spark, to tag an expression as known to not be null.

  170. class GpuKryoRegistrator extends KryoRegistrator
  171. case class GpuLag(input: Expression, offset: Expression, default: Expression) extends Expression with GpuOffsetWindowFunction with Product with Serializable
  172. case class GpuLambdaFunction(function: Expression, arguments: Seq[NamedExpression], hidden: Boolean = false) extends Expression with GpuExpression with ShimExpression with Product with Serializable

    A lambda function and its arguments on the GPU.

    A lambda function and its arguments on the GPU. This is mostly just a wrapper around the function expression, but it holds references to the arguments passed into it.

  173. case class GpuLead(input: Expression, offset: Expression, default: Expression) extends Expression with GpuOffsetWindowFunction with Product with Serializable
  174. abstract class GpuLeafExpression extends Expression with GpuExpression with ShimExpression
  175. case class GpuLiteral(value: Any, dataType: DataType) extends GpuLeafExpression with Product with Serializable

    In order to do type conversion and checking, use GpuLiteral.create() instead of constructor.

  176. case class GpuLocalLimitExec(limit: Int, child: SparkPlan) extends SparkPlan with GpuBaseLimitExec with Product with Serializable

    Take the first limit elements of each child partition, but do not collect or shuffle them.

  177. case class GpuMakeDecimal(child: Expression, precision: Int, sparkScale: Int, nullOnOverflow: Boolean) extends GpuUnaryExpression with Product with Serializable
  178. case class GpuMapFilter(argument: Expression, function: Expression, isBound: Boolean = false, boundIntermediate: Seq[GpuExpression] = Seq.empty) extends Expression with GpuMapSimpleHigherOrderFunction with Product with Serializable
  179. trait GpuMapSimpleHigherOrderFunction extends Expression with GpuSimpleHigherOrderFunction with GpuBind
  180. sealed abstract class GpuMetric extends Serializable
  181. case class GpuMonotonicallyIncreasingID() extends GpuLeafExpression with Product with Serializable

    An expression that returns monotonically increasing 64-bit integers just like org.apache.spark.sql.catalyst.expressions.MonotonicallyIncreasingID

    An expression that returns monotonically increasing 64-bit integers just like org.apache.spark.sql.catalyst.expressions.MonotonicallyIncreasingID

    The generated ID is guaranteed to be monotonically increasing and unique, but not consecutive. This implementations should match what spark does which is to put the partition ID in the upper 31 bits, and the lower 33 bits represent the record number within each partition.

  182. case class GpuNaNvl(left: Expression, right: Expression) extends BinaryExpression with GpuBinaryExpression with Product with Serializable
  183. case class GpuNamedLambdaVariable(name: String, dataType: DataType, nullable: Boolean, exprId: ExprId = NamedExpression.newExprId) extends GpuLeafExpression with NamedExpression with GpuUnevaluable with Product with Serializable

    A named lambda variable.

    A named lambda variable. In Spark on the CPU this includes an AtomicReference to the value that is updated each time a lambda function is called. On the GPU we have to bind this and turn it into a GpuBoundReference for a modified input batch. In the future this should also work with AST when cudf supports that type of operation.

  184. class GpuObjectHashAggregateExecMeta extends GpuTypedImperativeSupportedAggregateExecMeta[ObjectHashAggregateExec]
  185. trait GpuOffsetWindowFunction extends Expression with GpuAggregateWindowFunction
  186. case class GpuOrcMultiFilePartitionReaderFactory(sqlConf: SQLConf, broadcastedConf: Broadcast[SerializableConfiguration], dataSchema: StructType, readDataSchema: StructType, partitionSchema: StructType, filters: Array[Filter], rapidsConf: RapidsConf, metrics: Map[String, GpuMetric], queryUsesInputFile: Boolean) extends MultiFilePartitionReaderFactoryBase with Product with Serializable

    The multi-file partition reader factory for creating cloud reading or coalescing reading for ORC file format.

    The multi-file partition reader factory for creating cloud reading or coalescing reading for ORC file format.

    sqlConf

    the SQLConf

    broadcastedConf

    the Hadoop configuration

    dataSchema

    schema of the data

    readDataSchema

    the Spark schema describing what will be read

    partitionSchema

    schema of partitions.

    filters

    filters on non-partition columns

    rapidsConf

    the Rapids configuration

    metrics

    the metrics

    queryUsesInputFile

    this is a parameter to easily allow turning it off in GpuTransitionOverrides if InputFileName, InputFileBlockStart, or InputFileBlockLength are used

  187. class GpuOrcPartitionReader extends FilePartitionReaderBase with OrcPartitionReaderBase

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

    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.

  188. case class GpuOrcPartitionReaderFactory(sqlConf: SQLConf, broadcastedConf: Broadcast[SerializableConfiguration], dataSchema: StructType, readDataSchema: StructType, partitionSchema: StructType, pushedFilters: Array[Filter], rapidsConf: RapidsConf, metrics: Map[String, GpuMetric], params: Map[String, String]) extends ShimFilePartitionReaderFactory with Arm with Product with Serializable
  189. case class GpuOrcScan(sparkSession: SparkSession, hadoopConf: Configuration, fileIndex: PartitioningAwareFileIndex, dataSchema: StructType, readDataSchema: StructType, readPartitionSchema: StructType, options: CaseInsensitiveStringMap, pushedFilters: Array[Filter], partitionFilters: Seq[Expression], dataFilters: Seq[Expression], rapidsConf: RapidsConf, queryUsesInputFile: Boolean = false) extends ScanWithMetrics with FileScan with Logging with Product with Serializable
  190. case class GpuOutOfCoreSortIterator(iter: Iterator[ColumnarBatch], sorter: GpuSorter, cpuOrd: LazilyGeneratedOrdering, targetSize: Long, opTime: GpuMetric, sortTime: GpuMetric, outputBatches: GpuMetric, outputRows: GpuMetric, peakDevMemory: GpuMetric, spillCallback: SpillCallback) extends Iterator[ColumnarBatch] with Arm with AutoCloseable with Product with Serializable

    Sorts incoming batches of data spilling if needed.

    Sorts incoming batches of data spilling if needed.
    The algorithm for this is a modified version of an external merge sort with multiple passes for large data. https://en.wikipedia.org/wiki/External_sorting#External_merge_sort
    The main difference is that we cannot stream the data when doing a merge sort. So, we instead divide the data into batches that are small enough that we can do a merge sort on N batches and still fit the output within the target batch size. When merging batches instead of individual rows we cannot assume that all of the resulting data is globally sorted. Hopefully, most of it is globally sorted but we have to use the first row from the next pending batch to determine the cutoff point between globally sorted data and data that still needs to be merged with other batches. The globally sorted portion is put into a sorted queue while the rest of the merged data is split and put back into a pending queue. The process repeats until we have enough data to output.

  191. case class GpuOverrides() extends Rule[SparkPlan] with Logging with Product with Serializable
  192. trait GpuOverridesListener extends AnyRef

    Listener trait so that tests can confirm that the expected optimizations are being applied

  193. final class GpuPackedTableColumn extends GpuColumnVectorBase with WithTableBuffer

    A GPU column tracking a packed table such as one generated by contiguous split.

    A GPU column tracking a packed table such as one generated by contiguous split. Unlike GpuColumnVectorFromBuffer, the columnar data cannot be accessed directly.

    This class primarily serves the role of tracking the packed table data in a ColumnarBatch without requiring the underlying table to be manifested along with all of the child columns. The typical use-case generates one of these columns per task output partition, and then the RAPIDS shuffle transmits the opaque host metadata and GPU data buffer to another host.

    NOTE: There should only be one instance of this column per ColumnarBatch as the

  194. class GpuParquetFileFormat extends ColumnarFileFormat with Logging
  195. case class GpuParquetMultiFilePartitionReaderFactory(sqlConf: SQLConf, broadcastedConf: Broadcast[SerializableConfiguration], dataSchema: StructType, readDataSchema: StructType, partitionSchema: StructType, filters: Array[Filter], rapidsConf: RapidsConf, metrics: Map[String, GpuMetric], queryUsesInputFile: Boolean) extends MultiFilePartitionReaderFactoryBase with Product with Serializable

    Similar to GpuParquetPartitionReaderFactory but extended for reading multiple files in an iteration.

    Similar to GpuParquetPartitionReaderFactory but extended for reading multiple files in an iteration. This will allow us to read multiple small files and combine them on the CPU side before sending them down to the GPU.

  196. case class GpuParquetPartitionReaderFactory(sqlConf: SQLConf, broadcastedConf: Broadcast[SerializableConfiguration], dataSchema: StructType, readDataSchema: StructType, partitionSchema: StructType, filters: Array[Filter], rapidsConf: RapidsConf, metrics: Map[String, GpuMetric], params: Map[String, String]) extends ShimFilePartitionReaderFactory with Arm with Logging with Product with Serializable
  197. case class GpuParquetScan(sparkSession: SparkSession, hadoopConf: Configuration, fileIndex: PartitioningAwareFileIndex, dataSchema: StructType, readDataSchema: StructType, readPartitionSchema: StructType, pushedFilters: Array[Filter], options: CaseInsensitiveStringMap, partitionFilters: Seq[Expression], dataFilters: Seq[Expression], rapidsConf: RapidsConf, queryUsesInputFile: Boolean = false) extends ScanWithMetrics with FileScan with Logging with Product with Serializable

    Base GpuParquetScan used for common code across Spark versions.

    Base GpuParquetScan used for common code across Spark versions. Gpu version of Spark's 'ParquetScan'.

    sparkSession

    SparkSession.

    hadoopConf

    Hadoop configuration.

    fileIndex

    File index of the relation.

    dataSchema

    Schema of the data.

    readDataSchema

    Schema to read.

    readPartitionSchema

    Partition schema.

    pushedFilters

    Filters on non-partition columns.

    options

    Parquet option settings.

    partitionFilters

    Filters on partition columns.

    dataFilters

    File source metadata filters.

    rapidsConf

    Rapids configuration.

    queryUsesInputFile

    This is a parameter to easily allow turning it off in GpuTransitionOverrides if InputFileName, InputFileBlockStart, or InputFileBlockLength are used

  198. class GpuParquetWriter extends ColumnarOutputWriter
  199. trait GpuPartitioning extends Partitioning with Arm
  200. case class GpuPercentRank(children: Seq[Expression]) extends Expression with GpuRunningWindowFunction with Product with Serializable

    percent_rank() is a running window function in that it only operates on a window of unbounded preceding to current row.

    percent_rank() is a running window function in that it only operates on a window of unbounded preceding to current row. But, an entire window has to be in the batch because the rank is divided by the number of entries in the window to get the percent rank. We cannot know the number of entries in the window without the entire window. This is why it is not a GpuBatchedRunningWindowWithFixer.

  201. case class GpuPosExplode(child: Expression) extends GpuExplodeBase with Product with Serializable
  202. case class GpuProjectAstExec(projectList: List[Expression], child: SparkPlan) extends SparkPlan with ShimUnaryExecNode with GpuExec with Product with Serializable

    Use cudf AST expressions to project columnar batches

  203. case class GpuProjectExec(projectList: List[NamedExpression], child: SparkPlan) extends SparkPlan with ShimUnaryExecNode with GpuExec with Product with Serializable
  204. class GpuProjectExecMeta extends SparkPlanMeta[ProjectExec] with Logging
  205. case class GpuPromotePrecision(child: Expression) extends GpuUnaryExpression with Product with Serializable

    A GPU substitution of PromotePrecision, which is a NOOP in Spark too.

  206. case class GpuQueryStagePrepOverrides() extends Rule[SparkPlan] with Logging with Product with Serializable

    Tag the initial plan when AQE is enabled

  207. case class GpuRangeExec(start: Long, end: Long, step: Long, numSlices: Int, output: Seq[Attribute], targetSizeBytes: Long) extends SparkPlan with LeafExecNode with GpuExec with Product with Serializable

    Physical plan for range (generating a range of 64 bit numbers).

  208. case class GpuRangePartitioner(rangeBounds: Array[InternalRow], sorter: GpuSorter) extends Expression with GpuExpression with ShimExpression with GpuPartitioning with Product with Serializable
  209. case class GpuRank(children: Seq[Expression]) extends Expression with GpuRunningWindowFunction with GpuBatchedRunningWindowWithFixer with ShimExpression with Product with Serializable

    Rank is a special window operation where it is only supported as a running window.

    Rank is a special window operation where it is only supported as a running window. In cudf it is only supported as a scan and a group by scan. But there are special requirements beyond that when doing the computation as a running batch. To fix up each batch it needs both the rank and the row number. To make this work and be efficient there is different behavior for batched running window vs non-batched. If it is for a running batch we include the row number values, in both the initial projections and in the corresponding aggregations. Then we combine them into a struct column in scanCombine before it is passed on to the RankFixer. If it is not a running batch, then we drop the row number part because it is just not needed.

    children

    the order by columns.

    Note

    this is a running window only operator.

  210. class GpuReadCSVFileFormat extends CSVFileFormat with GpuReadFileFormatWithMetrics

    A FileFormat that allows reading CSV files with the GPU.

  211. trait GpuReadFileFormatWithMetrics extends FileFormat
  212. class GpuReadOrcFileFormat extends OrcFileFormat with GpuReadFileFormatWithMetrics

    A FileFormat that allows reading ORC files with the GPU.

  213. class GpuReadParquetFileFormat extends ParquetFileFormat with GpuReadFileFormatWithMetrics

    A FileFormat that allows reading Parquet files with the GPU.

  214. class GpuRegExpReplaceMeta extends QuaternaryExprMeta[RegExpReplace]
  215. trait GpuReplaceWindowFunction extends Expression with GpuWindowFunction

    This is a special window function that simply replaces itself with one or more window functions and other expressions that can be executed.

    This is a special window function that simply replaces itself with one or more window functions and other expressions that can be executed. This allows you to write GpuAverage in terms of GpuSum and GpuCount which can both operate on all window optimizations making GpuAverage be able to do the same.

  216. case class GpuReplicateRows(children: Seq[Expression]) extends Expression with GpuGenerator with ShimExpression with Product with Serializable
  217. case class GpuRoundRobinPartitioning(numPartitions: Int) extends Expression with GpuExpression with ShimExpression with GpuPartitioning with Product with Serializable

    Represents a partitioning where incoming columnar batched rows are distributed evenly across output partitions by starting from a zero-th partition number and distributing rows in a round-robin fashion.

    Represents a partitioning where incoming columnar batched rows are distributed evenly across output partitions by starting from a zero-th partition number and distributing rows in a round-robin fashion. This partitioning is used when implementing the DataFrame.repartition() operator.

  218. trait GpuRowBasedUserDefinedFunction extends Expression with GpuExpression with ShimExpression with UserDefinedExpression with Serializable with Logging

    Execute a row based UDF efficiently by pulling back only the columns the UDF needs to host and do the processing on CPU.

  219. case class GpuRowToColumnarExec(child: SparkPlan, goal: CoalesceSizeGoal, preProcessing: Seq[NamedExpression] = Seq.empty) extends SparkPlan with ShimUnaryExecNode with GpuExec with Product with Serializable

    GPU version of row to columnar transition.

  220. case class GpuRunningWindowExec(windowOps: Seq[NamedExpression], gpuPartitionSpec: Seq[Expression], gpuOrderSpec: Seq[SortOrder], child: SparkPlan)(cpuPartitionSpec: Seq[Expression], cpuOrderSpec: Seq[SortOrder]) extends SparkPlan with GpuWindowBaseExec with Product with Serializable
  221. trait GpuRunningWindowFunction extends Expression with GpuWindowFunction

    A window function that is optimized for running windows using the cudf scan and group by scan operations.

    A window function that is optimized for running windows using the cudf scan and group by scan operations. In some cases, like row number and rank, Spark only supports them as running window operations. This is why it directly extends GpuWindowFunction because it can be a stand alone window function. In all other cases it should be combined with GpuAggregateWindowFunction to provide a fully functional window operation. It should be noted that WindowExec tries to deduplicate input projections and aggregations to reduce memory usage. Because of tracking requirements it is required that there is a one to one relationship between an input projection and a corresponding aggregation.

  222. class GpuRunningWindowIterator extends Iterator[ColumnarBatch] with BasicWindowCalc

    An iterator that can do row based aggregations on running window queries (Unbounded preceding to current row) if and only if the aggregations are instances of GpuBatchedRunningWindowFunction which can fix up the window output when an aggregation is only partly done in one batch of data.

    An iterator that can do row based aggregations on running window queries (Unbounded preceding to current row) if and only if the aggregations are instances of GpuBatchedRunningWindowFunction which can fix up the window output when an aggregation is only partly done in one batch of data. Because of this there is no requirement about how the input data is batched, but it must be sorted by both partitioning and ordering.

  223. case class GpuSampleExec(lowerBound: Double, upperBound: Double, withReplacement: Boolean, seed: Long, child: SparkPlan) extends SparkPlan with ShimUnaryExecNode with GpuExec with Product with Serializable
  224. class GpuSampleExecMeta extends SparkPlanMeta[SampleExec] with Logging
  225. class GpuScalar extends Arm with AutoCloseable

    The wrapper of a Scala value and its corresponding cudf Scalar, along with its DataType.

    The wrapper of a Scala value and its corresponding cudf Scalar, along with its DataType.

    This class is introduced because many expressions require both the cudf Scalar and its corresponding Scala value to complete their computations. e.g. 'GpuStringSplit', 'GpuStringLocate', 'GpuDivide', 'GpuDateAddInterval', 'GpuTimeMath' ... So only either a cudf Scalar or a Scala value can not support such cases, unless copying data between the host and the device each time being asked for.

    This GpuScalar can be created from either a cudf Scalar or a Scala value. By initializing the cudf Scalar or the Scala value lazily and caching them after being created, it can reduce the unnecessary data copies.

    If a GpuScalar is created from a Scala value and is used only on the host side, there will be no data copy and no cudf Scalar created. And if it is used on the device side, only need to copy data to the device once to create a cudf Scalar.

    Similarly, if a GpuScalar is created from a cudf Scalar, no need to copy data to the host if it is used only on the device side (This is the ideal case we like, since all is on the GPU). And only need to copy the data to the host once if it is used on the host side.

    So a GpuScalar will have at most one data copy but support all the cases. No round-trip happens.

    Another reason why storing the Scala value in addition to the cudf Scalar is GpuDateAddInterval and 'GpuTimeMath' have different algorithms with the 3 members of a CalendarInterval, which can not be supported by a single cudf Scalar now.

    Do not create a GpuScalar from the constructor, instead call the factory APIs above.

  226. case class GpuShuffleCoalesceExec(child: SparkPlan, targetBatchByteSize: Long) extends SparkPlan with ShimUnaryExecNode with GpuExec with Product with Serializable

    Coalesces serialized tables on the host up to the target batch size before transferring the coalesced result to the GPU.

    Coalesces serialized tables on the host up to the target batch size before transferring the coalesced result to the GPU. This reduces the overhead of copying data to the GPU and also helps avoid holding onto the GPU semaphore while shuffle I/O is being performed.

    Note

    This should ALWAYS appear in the plan after a GPU shuffle when RAPIDS shuffle is not being used.

  227. class GpuShuffleCoalesceIterator extends Iterator[ColumnarBatch] with Arm

    Iterator that coalesces columnar batches that are expected to only contain SerializedTableColumn.

    Iterator that coalesces columnar batches that are expected to only contain SerializedTableColumn. The serialized tables within are collected up to the target batch size and then concatenated on the host before the data is transferred to the GPU.

  228. case class GpuShuffledHashJoinExec(leftKeys: Seq[Expression], rightKeys: Seq[Expression], joinType: JoinType, buildSide: GpuBuildSide, condition: Option[Expression], left: SparkPlan, right: SparkPlan, isSkewJoin: Boolean)(cpuLeftKeys: Seq[Expression], cpuRightKeys: Seq[Expression]) extends SparkPlan with ShimBinaryExecNode with GpuHashJoin with Product with Serializable
  229. class GpuShuffledHashJoinMeta extends SparkPlanMeta[ShuffledHashJoinExec]
  230. trait GpuSimpleHigherOrderFunction extends Expression with GpuHigherOrderFunction with GpuBind

    Trait for functions having as input one argument and one function.

  231. class GpuSortAggregateExecMeta extends GpuTypedImperativeSupportedAggregateExecMeta[SortAggregateExec]
  232. case class GpuSortEachBatchIterator(iter: Iterator[ColumnarBatch], sorter: GpuSorter, singleBatch: Boolean, opTime: GpuMetric = NoopMetric, sortTime: GpuMetric = NoopMetric, outputBatches: GpuMetric = NoopMetric, outputRows: GpuMetric = NoopMetric, peakDevMemory: GpuMetric = NoopMetric) extends Iterator[ColumnarBatch] with Arm with Product with Serializable
  233. case class GpuSortExec(gpuSortOrder: Seq[SortOrder], global: Boolean, child: SparkPlan, sortType: SortExecType)(cpuSortOrder: Seq[SortOrder]) extends SparkPlan with ShimUnaryExecNode with GpuExec with Product with Serializable
  234. class GpuSortMergeJoinMeta extends SparkPlanMeta[SortMergeJoinExec]
  235. class GpuSortMeta extends SparkPlanMeta[SortExec]
  236. class GpuSorter extends Arm with Serializable

    A class that provides convenience methods for sorting batches of data.

    A class that provides convenience methods for sorting batches of data. A Spark SortOrder typically will just reference a single column using an AttributeReference. This is the simplest situation so we just need to bind the attribute references to where they go, but it is possible that some computation can be done in the SortOrder. This would be a situation like sorting strings by their length instead of in lexicographical order. Because cudf does not support this directly we instead go through the SortOrder instances that are a part of this sorter and find the ones that require computation. We then do the sort in a few stages first we compute any needed columns from the SortOrder instances that require some computation, and add them to the original batch. The method appendProjectedColumns does this. This then provides a number of methods that can be used to operate on a batch that has these new columns added to it. These include sorting, merge sorting, and finding bounds. These can be combined in various ways to do different algorithms. When you are done with these different operations you can drop the temporary columns that were added, just for computation, using removeProjectedColumns. Some times you may want to pull data back to the CPU and sort rows there too. We provide cpuOrders that lets you do this on rows that have had the extra ordering columns added to them. This also provides fullySortBatch as an optimization. If all you want to do is sort a batch you don't want to have to sort the temp columns too, and this provide that.

  237. case class GpuSparkPartitionID() extends GpuLeafExpression with Product with Serializable

    An expression that returns the current partition id just like org.apache.spark.sql.catalyst.expressions.SparkPartitionID

  238. case class GpuSpecialFrameBoundary(boundary: SpecialFrameBoundary) extends Expression with GpuExpression with ShimExpression with GpuUnevaluable with Product with Serializable
  239. case class GpuSpecifiedWindowFrame(frameType: FrameType, lower: Expression, upper: Expression) extends Expression with GpuWindowFrame with Product with Serializable
  240. abstract class GpuSpecifiedWindowFrameMetaBase extends ExprMeta[SpecifiedWindowFrame]
  241. trait GpuString2TrimExpression extends Expression with String2TrimExpression with GpuExpression with ShimExpression
  242. trait GpuTernaryExpression extends TernaryExpression with ShimTernaryExpression with GpuExpression
  243. abstract class GpuTextBasedPartitionReader extends PartitionReader[ColumnarBatch] with ScanWithMetrics with Arm

    The text based PartitionReader

  244. case class GpuTopN(limit: Int, gpuSortOrder: Seq[SortOrder], projectList: Seq[NamedExpression], child: SparkPlan)(cpuSortOrder: Seq[SortOrder]) extends SparkPlan with GpuExec with ShimUnaryExecNode with Product with Serializable

    Take the first limit elements as defined by the sortOrder, and do projection if needed.

    Take the first limit elements as defined by the sortOrder, and do projection if needed. This is logically equivalent to having a Limit operator after a SortExec operator, or having a ProjectExec operator between them. This could have been named TopK, but Spark's top operator does the opposite in ordering so we name it TakeOrdered to avoid confusion.

  245. case class GpuTransformKeys(argument: Expression, function: Expression, isBound: Boolean = false, boundIntermediate: Seq[GpuExpression] = Seq.empty) extends Expression with GpuMapSimpleHigherOrderFunction with Product with Serializable
  246. case class GpuTransformValues(argument: Expression, function: Expression, isBound: Boolean = false, boundIntermediate: Seq[GpuExpression] = Seq.empty) extends Expression with GpuMapSimpleHigherOrderFunction with Product with Serializable
  247. class GpuTransitionOverrides extends Rule[SparkPlan]

    Rules that run after the row to columnar and columnar to row transitions have been inserted.

    Rules that run after the row to columnar and columnar to row transitions have been inserted. These rules insert transitions to and from the GPU, and then optimize various transitions.

  248. abstract class GpuTypedImperativeSupportedAggregateExecMeta[INPUT <: BaseAggregateExec] extends GpuBaseAggregateMeta[INPUT]

    Base class for metadata around SortAggregateExec and ObjectHashAggregateExec, which may contain TypedImperativeAggregate functions in aggregate expressions.

  249. abstract class GpuUnaryExpression extends UnaryExpression with ShimUnaryExpression with GpuExpression
  250. trait GpuUnevaluable extends Expression with GpuExpression
  251. abstract class GpuUnevaluableUnaryExpression extends GpuUnaryExpression with GpuUnevaluable
  252. case class GpuUnionExec(children: Seq[SparkPlan]) extends SparkPlan with ShimSparkPlan with GpuExec with Product with Serializable
  253. case class GpuUnscaledValue(child: Expression) extends GpuUnaryExpression with Product with Serializable
  254. class GpuUnsignedIntegerType extends DataType

    An unsigned, 32-bit integer type that maps to DType.UINT32 in cudf.

    An unsigned, 32-bit integer type that maps to DType.UINT32 in cudf.

    Note

    This type should NOT be used in Catalyst plan nodes that could be exposed to CPU expressions.

  255. class GpuUnsignedLongType extends DataType

    An unsigned, 64-bit integer type that maps to DType.UINT64 in cudf.

    An unsigned, 64-bit integer type that maps to DType.UINT64 in cudf.

    Note

    This type should NOT be used in Catalyst plan nodes that could be exposed to CPU expressions.

  256. trait GpuUserDefinedFunction extends Expression with GpuExpression with ShimExpression with UserDefinedExpression with Serializable

    Common implementation across all RAPIDS accelerated UDF types

  257. trait GpuWindowBaseExec extends SparkPlan with ShimUnaryExecNode with GpuExec
  258. case class GpuWindowExec(windowOps: Seq[NamedExpression], gpuPartitionSpec: Seq[Expression], gpuOrderSpec: Seq[SortOrder], child: SparkPlan)(cpuPartitionSpec: Seq[Expression], cpuOrderSpec: Seq[SortOrder]) extends SparkPlan with GpuWindowBaseExec with Product with Serializable
  259. class GpuWindowExecMeta extends GpuBaseWindowExecMeta[WindowExec]

    Specialization of GpuBaseWindowExecMeta for org.apache.spark.sql.window.WindowExec.

    Specialization of GpuBaseWindowExecMeta for org.apache.spark.sql.window.WindowExec. This class implements methods to extract the window-expressions, partition columns, order-by columns, etc. from WindowExec.

  260. case class GpuWindowExpression(windowFunction: Expression, windowSpec: GpuWindowSpecDefinition) extends Expression with GpuUnevaluable with ShimExpression with Product with Serializable
  261. abstract class GpuWindowExpressionMetaBase extends ExprMeta[WindowExpression]
  262. trait GpuWindowFrame extends Expression with GpuExpression with GpuUnevaluable with ShimExpression
  263. trait GpuWindowFunction extends Expression with GpuUnevaluable with ShimExpression
  264. class GpuWindowIterator extends Iterator[ColumnarBatch] with BasicWindowCalc

    An Iterator that performs window operations on the input data.

    An Iterator that performs window operations on the input data. It is required that the input data is batched so all of the data for a given key is in the same batch. The input data must also be sorted by both partition by keys and order by keys.

  265. case class GpuWindowSpecDefinition(partitionSpec: Seq[Expression], orderSpec: Seq[SortOrder], frameSpecification: GpuWindowFrame) extends Expression with GpuExpression with ShimExpression with GpuUnevaluable with Product with Serializable
  266. class GpuWindowSpecDefinitionMeta extends ExprMeta[WindowSpecDefinition]
  267. class GroupedAggregations extends Arm

    Window aggregations that are grouped together.

    Window aggregations that are grouped together. It holds the aggregation and the offsets of its input columns, along with the output columns it should write the result to.

  268. class HMBInputFile extends InputFile
  269. class HMBSeekableInputStream extends SeekableInputStream with HostMemoryInputStreamMixIn

    A parquet compatible stream that allows reading from a HostMemoryBuffer to Parquet.

    A parquet compatible stream that allows reading from a HostMemoryBuffer to Parquet. The majority of the code here was copied from Parquet's DelegatingSeekableInputStream with minor modifications to have it be make it Scala and call into the HostMemoryInputStreamMixIn's state.

  270. final class HashedPriorityQueue[T] extends AbstractQueue[T]

    Implements a priority queue based on a heap.

    Implements a priority queue based on a heap. Like many priority queue implementations, this provides logarithmic time for inserting elements and removing the top element. However unlike many implementations, this provides logarithmic rather than linear time for the random-access contains and remove methods. The queue also provides a mechanism for updating the heap after an element's priority has changed via the priorityUpdated method instead of requiring the element to be removed and re-inserted.

    The queue is NOT thread-safe.

    The iterator does NOT return elements in priority order.

  271. case class Header(meta: Map[String, Array[Byte]], syncBuffer: Array[Byte]) extends Product with Serializable

    The header information of an Avro file.

  272. trait HiveProvider extends AnyRef

    The subclass of HiveProvider imports spark-hive classes.

    The subclass of HiveProvider imports spark-hive classes. This file should not imports spark-hive because class not found exception may throw if spark-hive does not exist at runtime. Details see: https://github.com/NVIDIA/spark-rapids/issues/5648

  273. class HostByteBufferIterator extends Iterator[ByteBuffer]

    Create an iterator that will emit ByteBuffer instances sequentially to work around the 2GB ByteBuffer size limitation.

    Create an iterator that will emit ByteBuffer instances sequentially to work around the 2GB ByteBuffer size limitation. This allows the entire address range of a >2GB host buffer to be covered by a sequence of ByteBuffer instances.

    NOTE: It is the caller's responsibility to ensure this iterator does not outlive the host buffer. The iterator DOES NOT increment the reference count of the host buffer to ensure it remains valid.

    returns

    ByteBuffer iterator

  274. case class HostColumnarToGpu(child: SparkPlan, goal: CoalesceSizeGoal) extends SparkPlan with ShimUnaryExecNode with GpuExec with Product with Serializable

    Put columnar formatted data on the GPU.

  275. trait HostMemoryBuffersWithMetaDataBase extends AnyRef

    The base HostMemoryBuffer information read from a single file.

  276. class HostMemoryInputStream extends InputStream with HostMemoryInputStreamMixIn

    An implementation of InputStream that reads from a HostMemoryBuffer.

    An implementation of InputStream that reads from a HostMemoryBuffer.

    NOTE: Closing this input stream does NOT close the buffer!

  277. trait HostMemoryInputStreamMixIn extends InputStream
  278. class HostMemoryOutputStream extends OutputStream

    An implementation of OutputStream that writes to a HostMemoryBuffer.

    An implementation of OutputStream that writes to a HostMemoryBuffer.

    NOTE: Closing this output stream does NOT close the buffer!

  279. class HostShuffleCoalesceIterator extends Iterator[HostConcatResult] with Arm with AutoCloseable

    Iterator that coalesces columnar batches that are expected to only contain SerializedTableColumn.

    Iterator that coalesces columnar batches that are expected to only contain SerializedTableColumn. The serialized tables within are collected up to the target batch size and then concatenated on the host before handing them to the caller on .next()

  280. class HostToGpuCoalesceIterator extends AbstractGpuCoalesceIterator

    This iterator builds GPU batches from host batches.

    This iterator builds GPU batches from host batches. The host batches potentially use Spark's UnsafeRow so it is not safe to cache these batches. Rows must be read and immediately written to CuDF builders.

  281. abstract class ImperativeAggExprMeta[INPUT <: ImperativeAggregate] extends AggExprMeta[INPUT]

    Base class for metadata around ImperativeAggregate.

  282. case class InputCheck(cudf: TypeSig, spark: TypeSig, notes: List[String] = List.empty) extends Product with Serializable

    Checks a set of named inputs to an SparkPlan node against a TypeSig

  283. final class InsertIntoHadoopFsRelationCommandMeta extends DataWritingCommandMeta[InsertIntoHadoopFsRelationCommand]
  284. class InternalExclusiveModeGpuDiscoveryPlugin extends ResourceDiscoveryPlugin with Logging

    Note, this class should not be referenced directly in source code.

    Note, this class should not be referenced directly in source code. It should be loaded by reflection using ShimLoader.newInstanceOf, see ./docs/dev/shims.md

    Attributes
    protected
  285. abstract class InternalRowToColumnarBatchIterator extends Iterator[ColumnarBatch]

    This class converts InternalRow instances to ColumnarBatches on the GPU through the magic of code generation.

    This class converts InternalRow instances to ColumnarBatches on the GPU through the magic of code generation. This just provides most of the framework a concrete implementation will be generated based off of the schema. The InternalRow instances are first converted to UnsafeRow, cheaply if the instance is already UnsafeRow, and then the UnsafeRow data is collected into a ColumnarBatch.

  286. trait JoinGatherer extends LazySpillable with Arm

    Generic trait for all join gather instances.

    Generic trait for all join gather instances. A JoinGatherer takes the gather maps that are the result of a cudf join call along with the data batches that need to be gathered and allow someone to materialize the join in batches. It also provides APIs to help decide on how many rows to gather.

    This is a LazySpillable instance so the life cycle follows that too.

  287. class JoinGathererImpl extends JoinGatherer

    JoinGatherer for a single map/table

  288. class JustRowsColumnarBatch extends SpillableColumnarBatch

    Cudf does not support a table with columns and no rows.

    Cudf does not support a table with columns and no rows. This takes care of making one of those spillable, even though in reality there is no backing buffer. It does this by just keeping the row count in memory, and not dealing with the catalog at all.

  289. trait LazySpillable extends AutoCloseable

    Holds something that can be spilled if it is marked as such, but it does not modify the data until it is ready to be spilled.

    Holds something that can be spilled if it is marked as such, but it does not modify the data until it is ready to be spilled. This avoids the performance penalty of making reformatting the underlying data so it is ready to be spilled.

    Call allowSpilling to indicate that the data can be released for spilling and call close to indicate that the data is not needed any longer.

    If the data is needed after allowSpilling is called the implementations should get the data back and cache it again until allowSpilling is called once more.

  290. trait LazySpillableColumnarBatch extends LazySpillable

    Holds a Columnar batch that is LazySpillable.

  291. class LazySpillableColumnarBatchImpl extends LazySpillableColumnarBatch with Arm

    Holds a columnar batch that is cached until it is marked that it can be spilled.

  292. trait LazySpillableGatherMap extends LazySpillable with Arm
  293. class LazySpillableGatherMapImpl extends LazySpillableGatherMap

    Holds a gather map that is also lazy spillable.

  294. class LeftCrossGatherMap extends BaseCrossJoinGatherMap
  295. class LiteralExprMeta extends ExprMeta[Literal]
  296. sealed trait MemoryState extends AnyRef
  297. class MetricRange extends AutoCloseable
  298. class MetricsBatchIterator extends Iterator[ColumnarBatch]
  299. sealed class MetricsLevel extends Serializable
  300. class MultiFileCloudOrcPartitionReader extends MultiFileCloudPartitionReaderBase with MultiFileReaderFunctions with OrcPartitionReaderBase

    A PartitionReader that can read multiple ORC files in parallel.

    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.

  301. class MultiFileCloudParquetPartitionReader extends MultiFileCloudPartitionReaderBase with ParquetPartitionReaderBase

    A PartitionReader that can read multiple Parquet files in parallel.

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

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

  302. abstract class MultiFileCloudPartitionReaderBase extends FilePartitionReaderBase

    The Abstract multi-file cloud reading framework

    The Abstract multi-file cloud reading framework

    The data driven: next() -> if (first time) initAndStartReaders -> submit tasks (getBatchRunner) -> wait tasks done sequentially -> decode in GPU (readBatch)

  303. abstract class MultiFileCoalescingPartitionReaderBase extends FilePartitionReaderBase with MultiFileReaderFunctions

    The abstracted multi-file coalescing reading class, which tries to coalesce small ColumnarBatch into a bigger ColumnarBatch according to maxReadBatchSizeRows, maxReadBatchSizeBytes and the checkIfNeedToSplitDataBlock.

    The abstracted multi-file coalescing reading class, which tries to coalesce small ColumnarBatch into a bigger ColumnarBatch according to maxReadBatchSizeRows, maxReadBatchSizeBytes and the checkIfNeedToSplitDataBlock.

    Please be note, this class is applied to below similar file format

    | HEADER | -> optional

    | block | -> repeated

    | FOOTER | -> optional

    The data driven:

    next() -> populateCurrentBlockChunk (try the best to coalesce ColumnarBatch) -> allocate a bigger HostMemoryBuffer for HEADER + the populated block chunks + FOOTER -> write header to HostMemoryBuffer -> launch tasks to copy the blocks to the HostMemoryBuffer -> wait all tasks finished -> write footer to HostMemoryBuffer -> decode the HostMemoryBuffer in the GPU

  304. class MultiFileOrcPartitionReader extends MultiFileCoalescingPartitionReaderBase with OrcCommonFunctions

  305. class MultiFileParquetPartitionReader extends MultiFileCoalescingPartitionReaderBase with ParquetPartitionReaderBase

    A PartitionReader that can read multiple Parquet files up to the certain size.

    A PartitionReader that can read multiple Parquet files up to the certain size. It will coalesce small files together and copy the block data in a separate thread pool to speed up processing the small files before sending down to the GPU.

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

  306. abstract class MultiFilePartitionReaderFactoryBase extends PartitionReaderFactory with Arm with Logging

    The base multi-file partition reader factory to create the cloud reading or coalescing reading respectively.

  307. trait MultiFileReaderFunctions extends Arm
  308. case class MultiJoinGather(left: JoinGatherer, right: JoinGatherer) extends JoinGatherer with Product with Serializable

    Join Gatherer for a left table and a right table

  309. case class MutableBlockInfo(blockSize: Long, dataSize: Long, count: Long) extends Product with Serializable

    The mutable version of the BlockInfo without block start.

    The mutable version of the BlockInfo without block start. This is for reusing an existing instance when accessing data in the iterator pattern.

    blockSize

    the whole block size (the size between two sync buffers + sync buffer size)

    dataSize

    the data size in this block

    count

    how many entries in this block

  310. final class NoRuleDataFromReplacementRule extends DataFromReplacementRule

    A version of DataFromReplacementRule that is used when no replacement rule can be found.

  311. class NvcompLZ4CompressionCodec extends TableCompressionCodec with Arm

    A table compression codec that uses nvcomp's LZ4-GPU codec

  312. class NvtxWithMetrics extends NvtxRange

    NvtxRange with option to pass one or more nano timing metric(s) that are updated upon close by the amount of time spent in the range

  313. sealed abstract class Optimization extends AnyRef
  314. trait Optimizer extends AnyRef

    Optimizer that can operate on a physical query plan.

  315. class OptionalConfEntry[T] extends ConfEntry[Option[T]]
  316. trait OrcCodecWritingHelper extends Arm
  317. trait OrcCommonFunctions extends OrcCodecWritingHelper

    Collections of some common functions for ORC

  318. case class OrcExtraInfo(requestedMapping: Option[Array[Int]]) extends ExtraInfo with Product with Serializable

    Orc extra information containing the requested column ids for the current coalescing stripes

  319. case class OrcOutputStripe(infoBuilder: Builder, footer: StripeFooter, inputDataRanges: DiskRangeList) extends Product with Serializable

    This class describes a stripe that will appear in the ORC output memory file.

    This class describes a stripe that will appear in the ORC output memory file.

    infoBuilder

    builder for output stripe info that has been populated with all fields except those that can only be known when the file is being written (e.g.: file offset, compressed footer length)

    footer

    stripe footer

    inputDataRanges

    input file ranges (based at file offset 0) of stripe data

  320. trait OrcPartitionReaderBase extends OrcCommonFunctions with Logging with Arm with ScanWithMetrics

    A base ORC partition reader which compose of some common methods

  321. case class OrcPartitionReaderContext(filePath: Path, conf: Configuration, fileSchema: TypeDescription, updatedReadSchema: TypeDescription, evolution: SchemaEvolution, fileTail: FileTail, compressionSize: Int, compressionKind: CompressionKind, readerOpts: Options, blockIterator: BufferedIterator[OrcOutputStripe], requestedMapping: Option[Array[Int]]) extends Product with Serializable

    This class holds fields needed to read and iterate over the OrcFile

    This class holds fields needed to read and iterate over the OrcFile

    filePath

    ORC file path

    conf

    the Hadoop configuration

    fileSchema

    the schema of the whole ORC file

    updatedReadSchema

    read schema mapped to the file's field names

    evolution

    infer and track the evolution between the schema as stored in the file and the schema that has been requested by the reader.

    fileTail

    the ORC FileTail

    compressionSize

    the ORC compression size

    compressionKind

    the ORC compression type

    readerOpts

    options for creating a RecordReader.

    blockIterator

    an iterator over the ORC output stripes

    requestedMapping

    the optional requested column ids

  322. case class OrcStripeWithMeta(stripe: OrcOutputStripe, ctx: OrcPartitionReaderContext) extends Product with Serializable
  323. case class OutOfCoreBatch(buffer: SpillableColumnarBatch, firstRow: UnsafeRow) extends AutoCloseable with Product with Serializable

    Holds data for the out of core sort.

    Holds data for the out of core sort. It includes the batch of data and the first row in that batch so we can sort the batches.

  324. case class ParamCheck(name: String, cudf: TypeSig, spark: TypeSig) extends Product with Serializable

    Checks a single parameter by position against a TypeSig

  325. case class ParquetCachedBatch(numRows: Int, buffer: Array[Byte]) extends CachedBatch with Product with Serializable
  326. class ParquetCachedBatchSerializer extends GpuCachedBatchSerializer with Arm

    This class assumes, the data is Columnar and the plugin is on.

    This class assumes, the data is Columnar and the plugin is on. Note, this class should not be referenced directly in source code. It should be loaded by reflection using ShimLoader.newInstanceOf, see ./docs/dev/shims.md

    Attributes
    protected
  327. class ParquetDumper extends HostBufferConsumer with Arm with AutoCloseable
  328. case class ParquetExtraInfo(isCorrectedRebaseMode: Boolean, isCorrectedInt96RebaseMode: Boolean, hasInt96Timestamps: Boolean) extends ExtraInfo with Product with Serializable

    Parquet extra information containing isCorrectedRebaseMode

  329. class ParquetPartitionReader extends FilePartitionReaderBase with ParquetPartitionReaderBase

    A PartitionReader that reads a Parquet file split on the GPU.

    A PartitionReader that reads a Parquet file split on the GPU.

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

  330. trait ParquetPartitionReaderBase extends Logging with Arm with ScanWithMetrics with MultiFileReaderFunctions
  331. case class ParsedBoundary(isUnbounded: Boolean, valueAsLong: Long) extends Product with Serializable
  332. abstract class PartChecks extends TypeChecks[Map[String, SupportLevel]]

    Base class all Partition checks must follow

  333. case class PartChecksImpl(paramCheck: Seq[ParamCheck] = Seq.empty, repeatingParamCheck: Option[RepeatingParamCheck] = None) extends PartChecks with Product with Serializable
  334. abstract class PartMeta[INPUT <: Partitioning] extends RapidsMeta[INPUT, Partitioning, GpuPartitioning]

    Base class for metadata around Partitioning.

  335. class PartRule[INPUT <: Partitioning] extends ReplacementRule[INPUT, Partitioning, PartMeta[INPUT]]

    Holds everything that is needed to replace a Partitioning with a GPU enabled version.

  336. class PartiallySupported extends SupportLevel

    The plugin partially supports this type.

  337. class PartitionIterator[T] extends Iterator[T]
  338. class PartitionReaderIterator extends Iterator[ColumnarBatch] with AutoCloseable

    An adaptor class that provides an Iterator interface for a PartitionReader.

  339. class PartitionReaderWithBytesRead extends PartitionReader[ColumnarBatch]

    Wraps a columnar PartitionReader to update bytes read metric based on filesystem statistics.

  340. class Pending extends AutoCloseable

    Data that the out of core sort algorithm has not finished sorting.

    Data that the out of core sort algorithm has not finished sorting. This acts as a priority queue with each batch sorted by the first row in that batch.

  341. class PluginException extends RuntimeException
  342. sealed case class QuantifierFixedLength(length: Int) extends RegexQuantifier with Product with Serializable
  343. sealed case class QuantifierVariableLength(minLength: Int, maxLength: Option[Int]) extends RegexQuantifier with Product with Serializable
  344. abstract class QuaternaryExprMeta[INPUT <: QuaternaryExpression] extends ExprMeta[INPUT]

    Base class for metadata around QuaternaryExpression.

  345. class RankFixer extends BatchedRunningWindowFixer with Arm with Logging

    Rank is more complicated than DenseRank to fix.

    Rank is more complicated than DenseRank to fix. This is because there are gaps in the rank values. The rank value of each group is row number of the first row in the group. So values in the same partition group but not the same ordering are fixed by adding the row number from the previous batch to them. If they are a part of the same ordering and part of the same partition, then we need to just put in the previous rank value.

    Because we need both a rank and a row number to fix things up the input to this is a struct containing a rank column as the first entry and a row number column as the second entry. This happens in the scanCombine method for GpuRank. It is a little ugly but it works to maintain the requirement that the input to the fixer is a single column.

  346. trait RapidsBuffer extends AutoCloseable

    Interface provided by all types of RAPIDS buffers

  347. class RapidsBufferCatalog extends Logging

    Catalog for lookup of buffers by ID.

    Catalog for lookup of buffers by ID. The constructor is only visible for testing, generally RapidsBufferCatalog.singleton should be used instead.

  348. trait RapidsBufferId extends AnyRef

    An identifier for a RAPIDS buffer that can be automatically spilled between buffer stores.

    An identifier for a RAPIDS buffer that can be automatically spilled between buffer stores. NOTE: Derived classes MUST implement proper hashCode and equals methods, as these objects are used as keys in hash maps. Scala case classes are recommended.

  349. abstract class RapidsBufferStore extends AutoCloseable with Logging with Arm

    Base class for all buffer store types.

  350. class RapidsConf extends Logging
  351. class RapidsDeviceMemoryStore extends RapidsBufferStore with Arm

    Buffer storage using device memory.

  352. class RapidsDiskStore extends RapidsBufferStore

    A buffer store using files on the local disks.

  353. class RapidsDriverPlugin extends DriverPlugin with Logging

    The Spark driver plugin provided by the RAPIDS Spark plugin.

  354. case class RapidsExecutorHeartbeatMsg(id: BlockManagerId) extends Product with Serializable

    Executor heartbeat message.

    Executor heartbeat message. This gives the driver an opportunity to respond with RapidsExecutorUpdateMsg

  355. class RapidsExecutorPlugin extends ExecutorPlugin with Logging

    The Spark executor plugin provided by the RAPIDS Spark plugin.

  356. case class RapidsExecutorStartupMsg(id: BlockManagerId) extends Product with Serializable

    This is the first message sent from the executor to the driver.

    This is the first message sent from the executor to the driver.

    id

    BlockManagerId for the executor

  357. case class RapidsExecutorUpdateMsg(ids: Array[BlockManagerId]) extends Product with Serializable

    Driver response to an startup or heartbeat message, with new (to the peer) executors from the last heartbeat.

  358. class RapidsGdsStore extends RapidsBufferStore with Arm

    A buffer store using GPUDirect Storage (GDS).

  359. final class RapidsHostColumnVector extends RapidsHostColumnVectorCore

    A GPU accelerated version of the Spark ColumnVector.

    A GPU accelerated version of the Spark ColumnVector. Most of the standard Spark APIs should never be called, as they assume that the data is on the host, and we want to keep as much of the data on the device as possible. We also provide GPU accelerated versions of the transitions to and from rows.

  360. class RapidsHostColumnVectorCore extends ColumnVector

    A GPU accelerated version of the Spark ColumnVector.

    A GPU accelerated version of the Spark ColumnVector. Most of the standard Spark APIs should never be called, as they assume that the data is on the host, and we want to keep as much of the data on the device as possible. We also provide GPU accelerated versions of the transitions to and from rows.

  361. class RapidsHostMemoryStore extends RapidsBufferStore

    A buffer store using host memory.

  362. abstract class RapidsMeta[INPUT <: BASE, BASE, OUTPUT <: BASE] extends AnyRef

    Holds metadata about a stage in the physical plan that is separate from the plan itself.

    Holds metadata about a stage in the physical plan that is separate from the plan itself. This is helpful in deciding when to replace part of the plan with a GPU enabled version.

    INPUT

    the exact type of the class we are wrapping.

    BASE

    the generic base class for this type of stage, i.e. SparkPlan, Expression, etc.

    OUTPUT

    when converting to a GPU enabled version of the plan, the generic base type for all GPU enabled versions.

  363. final class RapidsNullSafeHostColumnVector extends RapidsNullSafeHostColumnVectorCore

    Wrapper of a RapidsHostColumnVector, which will check nulls in each "getXXX" call and return the default value of a type when trying to read a null.

    Wrapper of a RapidsHostColumnVector, which will check nulls in each "getXXX" call and return the default value of a type when trying to read a null. The performance may not be good enough, so use it only when there is no other way.

  364. class RapidsNullSafeHostColumnVectorCore extends ColumnVector

    Wrapper of a RapidsHostColumnVectorCore, which will check nulls in each "getXXX" call and return the default value of a type when trying to read a null.

    Wrapper of a RapidsHostColumnVectorCore, which will check nulls in each "getXXX" call and return the default value of a type when trying to read a null. The performance may not be good enough, so use it only when there is no other way.

  365. class RapidsShuffleHeartbeatEndpoint extends Logging with AutoCloseable
  366. trait RapidsShuffleHeartbeatHandler extends AnyRef
  367. class RapidsShuffleHeartbeatManager extends Logging
  368. sealed trait RegexAST extends AnyRef
  369. sealed case class RegexBackref(num: Int, isNew: Boolean = false) extends RegexAST with Product with Serializable
  370. sealed case class RegexChar(ch: Char) extends RegexCharacterClassComponent with Product with Serializable
  371. sealed case class RegexCharacterClass(negated: Boolean, characters: ListBuffer[RegexCharacterClassComponent]) extends RegexAST with Product with Serializable
  372. sealed trait RegexCharacterClassComponent extends RegexAST
  373. sealed case class RegexCharacterRange(start: RegexCharacterClassComponent, end: RegexCharacterClassComponent) extends RegexCharacterClassComponent with Product with Serializable
  374. sealed case class RegexChoice(a: RegexAST, b: RegexAST) extends RegexAST with Product with Serializable
  375. sealed case class RegexEmpty() extends RegexAST with Product with Serializable
  376. sealed case class RegexEscaped(a: Char) extends RegexCharacterClassComponent with Product with Serializable
  377. sealed case class RegexGroup(capture: Boolean, term: RegexAST) extends RegexAST with Product with Serializable
  378. sealed case class RegexHexDigit(a: String) extends RegexCharacterClassComponent with Product with Serializable
  379. sealed trait RegexMode extends AnyRef
  380. sealed case class RegexOctalChar(a: String) extends RegexCharacterClassComponent with Product with Serializable
  381. class RegexParser extends AnyRef

    Regular expression parser based on a Pratt Parser design.

    Regular expression parser based on a Pratt Parser design.

    The goal of this parser is to build a minimal AST that allows us to validate that we can support the expression on the GPU. The goal is not to parse with the level of detail that would be required if we were building an evaluation engine. For example, operator precedence is largely ignored but could be added if we need it later.

    The Java and cuDF regular expression documentation has been used as a reference:

    Java regex: https://docs.oracle.com/javase/7/docs/api/java/util/regex/Pattern.html cuDF regex: https://docs.rapids.ai/api/libcudf/stable/md_regex.html

    The following blog posts provide some background on Pratt Parsers and parsing regex.

    - https://journal.stuffwithstuff.com/2011/03/19/pratt-parsers-expression-parsing-made-easy/ - https://matt.might.net/articles/parsing-regex-with-recursive-descent/

  382. sealed trait RegexQuantifier extends RegexAST
  383. sealed case class RegexRepetition(a: RegexAST, quantifier: RegexQuantifier) extends RegexAST with Product with Serializable
  384. sealed case class RegexReplacement(parts: ListBuffer[RegexAST], numCaptureGroups: Int = 0) extends RegexAST with Product with Serializable
  385. sealed case class RegexSequence(parts: ListBuffer[RegexAST]) extends RegexAST with Product with Serializable
  386. class RegexUnsupportedException extends SQLException
  387. case class RepeatingParamCheck(name: String, cudf: TypeSig, spark: TypeSig) extends Product with Serializable

    Checks the type signature for a parameter that repeats (Can only be used at the end of a list of position parameters)

  388. case class ReplaceSection[INPUT <: SparkPlan](plan: SparkPlanMeta[INPUT], totalCpuCost: Double, totalGpuCost: Double) extends Optimization with Product with Serializable
  389. abstract class ReplacementRule[INPUT <: BASE, BASE, WRAP_TYPE <: RapidsMeta[INPUT, BASE, _]] extends DataFromReplacementRule

    Base class for all ReplacementRules

    Base class for all ReplacementRules

    INPUT

    the exact type of the class we are wrapping.

    BASE

    the generic base class for this type of stage, i.e. SparkPlan, Expression, etc.

    WRAP_TYPE

    base class that should be returned by doWrap.

  390. abstract class ReplicateRowsExprMeta[INPUT <: ReplicateRows] extends GeneratorExprMeta[INPUT]

    Base class for metadata around GeneratorExprMeta.

  391. trait RequireSingleBatchLike extends AnyRef

    Trait used for pattern matching for single batch coalesce goals.

  392. case class RequireSingleBatchWithFilter(filterExpression: GpuExpression) extends CoalesceSizeGoal with RequireSingleBatchLike with Product with Serializable

    This is exactly the same as RequireSingleBatch except that if the batch would fail to coalesce because it reaches cuDF row-count limits, the coalesce code is free to null filter given the filter expression in filterExpression.

    This is exactly the same as RequireSingleBatch except that if the batch would fail to coalesce because it reaches cuDF row-count limits, the coalesce code is free to null filter given the filter expression in filterExpression.

    Note

    This is an ugly hack because ideally these rows are never read from the input source given that we normally push down IsNotNull in Spark. This should be removed when we can handle this in a proper way, likely at the logical plan optimization level. More details here: https://issues.apache.org/jira/browse/SPARK-39131

  393. class RightCrossGatherMap extends BaseCrossJoinGatherMap
  394. class RowToColumnarIterator extends Iterator[ColumnarBatch] with Arm
  395. final class RuleNotFoundDataWritingCommandMeta[INPUT <: DataWritingCommand] extends DataWritingCommandMeta[INPUT]

    Metadata for DataWritingCommand with no rule found

  396. final class RuleNotFoundExprMeta[INPUT <: Expression] extends ExprMeta[INPUT]

    Metadata for Expression with no rule found

  397. final class RuleNotFoundPartMeta[INPUT <: Partitioning] extends PartMeta[INPUT]

    Metadata for Partitioning with no rule found

  398. final class RuleNotFoundScanMeta[INPUT <: Scan] extends ScanMeta[INPUT]

    Metadata for Scan with no rule found

  399. final class RuleNotFoundSparkPlanMeta[INPUT <: SparkPlan] extends SparkPlanMeta[INPUT]

    Metadata for SparkPlan with no rule found

  400. class SQLExecPlugin extends (SparkSessionExtensions) ⇒ Unit with Logging

    Extension point to enable GPU SQL processing.

  401. abstract class ScanMeta[INPUT <: Scan] extends RapidsMeta[INPUT, Scan, Scan]

    Base class for metadata around Scan.

  402. class ScanRule[INPUT <: Scan] extends ReplacementRule[INPUT, Scan, ScanMeta[INPUT]]

    Holds everything that is needed to replace a Scan with a GPU enabled version.

  403. trait ScanWithMetrics extends AnyRef
  404. class ScanWithMetricsWrapper extends ScanWithMetrics
  405. trait SchemaBase extends AnyRef

    A common trait for different schema in the MultiFileCoalescingPartitionReaderBase.

    A common trait for different schema in the MultiFileCoalescingPartitionReaderBase.

    The sub-class should wrap the real schema for the specific file format

  406. class SerializedTableColumn extends GpuColumnVectorBase

    A special ColumnVector that describes a serialized table read from shuffle.

    A special ColumnVector that describes a serialized table read from shuffle. This appears in a ColumnarBatch to pass serialized tables to GpuShuffleCoalesceExec which should always appear in the query plan immediately after a shuffle.

  407. trait ShimTaggingExpression extends UnaryExpression with TaggingExpression with ShimUnaryExpression
  408. sealed abstract class ShimVersion extends AnyRef
  409. class ShuffleBufferCatalog extends Arm with Logging

    Catalog for lookup of shuffle buffers by block ID

  410. case class ShuffleBufferId(blockId: ShuffleBlockId, tableId: Int) extends RapidsBufferId with Product with Serializable

    Identifier for a shuffle buffer that holds the data for a table

  411. class ShuffleReceivedBufferCatalog extends Logging

    Catalog for lookup of shuffle buffers by block ID

  412. case class ShuffleReceivedBufferId(tableId: Int) extends RapidsBufferId with Product with Serializable

    Identifier for a shuffle buffer that holds the data for a table on the read side

  413. sealed case class SimpleQuantifier(ch: Char) extends RegexQuantifier with Product with Serializable
  414. trait SingleDataBlockInfo extends AnyRef

    A single block info of a file, Eg, A parquet file has 3 RowGroup, then it will produce 3 SingleBlockInfoWithMeta

  415. class SlicedGpuColumnVector extends ColumnVector

    Wraps a GpuColumnVector but only points to a slice of it.

    Wraps a GpuColumnVector but only points to a slice of it. This is intended to only be used during shuffle after the data is partitioned and before it is serialized.

  416. sealed trait SortExecType extends Serializable
  417. abstract class SparkPlanMeta[INPUT <: SparkPlan] extends RapidsMeta[INPUT, SparkPlan, GpuExec]

    Base class for metadata around SparkPlan.

  418. trait SparkShimServiceProvider extends AnyRef

    A Spark version shim layer interface.

  419. case class SparkShimVersion(major: Int, minor: Int, patch: Int) extends ShimVersion with Product with Serializable
  420. trait SparkShims extends AnyRef
  421. abstract class SpillCallback extends Serializable
  422. class SpillableBuffer extends AutoCloseable with Arm

    Just like a SpillableColumnarBatch but for buffers.

  423. trait SpillableColumnarBatch extends AutoCloseable

    Holds a ColumnarBatch that the backing buffers on it can be spilled.

  424. class SpillableColumnarBatchImpl extends SpillableColumnarBatch with Arm

    The implementation of SpillableColumnarBatch that points to buffers that can be spilled.

    The implementation of SpillableColumnarBatch that points to buffers that can be spilled.

    Note

    the buffer should be in the cache by the time this is created and this is taking over ownership of the life cycle of the batch. So don't call this constructor directly please use SpillableColumnarBatch.apply instead.

  425. abstract class SplittableJoinIterator extends AbstractGpuJoinIterator with Logging

    Base class for join iterators that split and spill batches to avoid GPU OOM errors.

  426. abstract class String2TrimExpressionMeta[INPUT <: String2TrimExpression] extends ExprMeta[INPUT]
  427. class SumBinaryFixer extends BatchedRunningWindowFixer with Arm with Logging

    This class fixes up batched running windows for sum.

    This class fixes up batched running windows for sum. Sum is a lot like other binary op fixers, but it has to special case nulls and that is not super generic. In the future we might be able to make this more generic but we need to see what the use case really is.

  428. sealed abstract class SupportLevel extends AnyRef

    The level of support that the plugin has for a given type.

    The level of support that the plugin has for a given type. Used for documentation generation.

  429. class Supported extends SupportLevel

    Both Spark and the plugin support this.

  430. trait TableCompressionCodec extends AnyRef

    An interface to a compression codec that can compress a contiguous Table on the GPU

  431. case class TableCompressionCodecConfig(lz4ChunkSize: Long) extends Product with Serializable

    A small case class used to carry codec-specific settings.

  432. case class TargetSize(targetSizeBytes: Long) extends CoalesceSizeGoal with Product with Serializable

    Produce a stream of batches that are at most the given size in bytes.

    Produce a stream of batches that are at most the given size in bytes. The size is estimated in some cases so it may go over a little, but it should generally be very close to the target size. Generally you should not go over 2 GiB to avoid limitations in cudf for nested type columns.

    targetSizeBytes

    the size of each batch in bytes.

  433. trait TaskAutoCloseableResource extends AutoCloseable
  434. abstract class TernaryExprMeta[INPUT <: TernaryExpression] extends ExprMeta[INPUT]

    Base class for metadata around TernaryExpression.

  435. abstract class TypeChecks[RET] extends AnyRef
  436. final class TypeSig extends AnyRef

    A type signature.

    A type signature. This is a bit limited in what it supports right now, but can express a set of base types and a separate set of types that can be nested under the base types (child types). It can also express if a particular base type has to be a literal or not.

  437. trait TypeSigUtilBase extends AnyRef

    Trait of TypeSigUtil for different spark versions

  438. class TypedConfBuilder[T] extends AnyRef
  439. abstract class TypedImperativeAggExprMeta[INPUT <: TypedImperativeAggregate[_]] extends ImperativeAggExprMeta[INPUT]

    Base class for metadata around TypedImperativeAggregate.

  440. abstract class UnaryAstExprMeta[INPUT <: UnaryExpression] extends UnaryExprMeta[INPUT]

    Base metadata class for unary expressions that support conversion to AST as well

  441. abstract class UnaryExprMeta[INPUT <: UnaryExpression] extends ExprMeta[INPUT]

    Base class for metadata around UnaryExpression.

  442. trait WithTableBuffer extends AnyRef

    An interface for obtaining the device buffer backing a contiguous/packed table

  443. case class WrappedGpuMetric(sqlMetric: SQLMetric) extends GpuMetric with Product with Serializable

Value Members

  1. object AggregateModeInfo extends Serializable
  2. object AggregateUtils
  3. object AlluxioUtils extends Logging
  4. object ArrayIndexUtils extends Arm
  5. object AstExprContext extends ExpressionContext

    This is a special context.

    This is a special context. All other contexts are determined by the Spark query in a generic way. AST support in many cases is an optimization and so it is tagged and checked after it is determined that this operation will run on the GPU. In other cases it is required. In those cases AST support is determined and used when tagging the metas to see if they will work on the GPU or not. This part is not done automatically.

  6. object AutoCloseColumnBatchIterator
  7. object AvroFileReader extends Arm
  8. object AvroFileWriter
  9. object AvroFormatType extends FileFormatType
  10. object BoolUtils extends Arm
  11. object CaseWhenCheck extends ExprChecks

    This is specific to CaseWhen, because it does not follow the typical parameter convention.

  12. object CoalesceGoal
  13. object ColumnCastUtil extends Arm

    This class casts a column to another column if the predicate passed resolves to true.

    This class casts a column to another column if the predicate passed resolves to true. This method should be able to handle nested or non-nested types

    At this time this is strictly a place for casting methods

  14. object ColumnarOutputWriter
  15. object ColumnarPartitionReaderWithPartitionValues extends Arm
  16. object ColumnarRdd

    This provides a way to get back out GPU Columnar data RDD[Table].

    This provides a way to get back out GPU Columnar data RDD[Table]. Each Table will have the same schema as the dataframe passed in. If the schema of the dataframe is something that Rapids does not currently support an IllegalArgumentException will be thrown.

    The size of each table will be determined by what is producing that table but typically will be about the number of bytes set by RapidsConf.GPU_BATCH_SIZE_BYTES.

    Table is not a typical thing in an RDD so special care needs to be taken when working with it. By default it is not serializable so repartitioning the RDD or any other operator that involves a shuffle will not work. This is because it is very expensive to serialize and deserialize a GPU Table using a conventional spark shuffle. Also most of the memory associated with the Table is on the GPU itself, so each table must be closed when it is no longer needed to avoid running out of GPU memory. By convention it is the responsibility of the one consuming the data to close it when they no longer need it.

  17. object ConcatAndConsumeAll

    Consumes an Iterator of ColumnarBatches and concatenates them into a single ColumnarBatch.

    Consumes an Iterator of ColumnarBatches and concatenates them into a single ColumnarBatch. The batches will be closed when this operation is done.

  18. object ConfHelper
  19. object CreateMapCheck extends ExprChecks
  20. object CreateNamedStructCheck extends ExprChecks

    A check for CreateNamedStruct.

    A check for CreateNamedStruct. The parameter values alternate between one type and another. If this pattern shows up again we can make this more generic at that point.

  21. object CsvFormatType extends FileFormatType
  22. object CudfRowTransitions
  23. object CudfTDigest
  24. object CudfUnaryExpression
  25. object DataTypeMeta
  26. object DataTypeUtils
  27. object DateUtils

    Class for helper functions for Date

  28. object DecimalUtil extends Arm
  29. object DenseRankFixer extends Arm
  30. object DumpUtils extends Logging with Arm
  31. object ExecChecks

    gives users an API to create ExecChecks.

  32. object ExecutionPlanCaptureCallback
  33. object Explain
  34. object ExplainPlan
  35. object ExprChecks
  36. object ExpressionContext
  37. object FileFormatChecks
  38. object FileUtils
  39. object FloatUtils extends Arm
  40. object FullSortSingleBatch extends SortExecType
  41. object GatherUtils extends Arm
  42. object GeneratedInternalRowToCudfRowIterator extends Logging
  43. object GpuBaseAggregateMeta
  44. object GpuBatchUtils

    Utility class with methods for calculating various metrics about GPU memory usage prior to allocation.

  45. object GpuBindReferences extends Logging
  46. object GpuBuildLeft extends GpuBuildSide with Product with Serializable
  47. object GpuBuildRight extends GpuBuildSide with Product with Serializable
  48. object GpuCSVScan extends Serializable
  49. object GpuCanonicalize

    Rewrites an expression using rules that are guaranteed preserve the result while attempting to remove cosmetic variations.

    Rewrites an expression using rules that are guaranteed preserve the result while attempting to remove cosmetic variations. Deterministic expressions that are equal after canonicalization will always return the same answer given the same input (i.e. false positives should not be possible). However, it is possible that two canonical expressions that are not equal will in fact return the same answer given any input (i.e. false negatives are possible).

    The following rules are applied:

    • Names and nullability hints for org.apache.spark.sql.types.DataTypes are stripped.
    • Names for GetStructField are stripped.
    • TimeZoneId for Cast and AnsiCast are stripped if needsTimeZone is false.
    • Commutative and associative operations (Add and Multiply) have their children ordered by hashCode.
    • EqualTo and EqualNullSafe are reordered by hashCode.
    • Other comparisons (GreaterThan, LessThan) are reversed by hashCode.
    • Elements in In are reordered by hashCode.

    This is essentially a copy of the Spark Canonicalize class but updated for GPU operators

  50. object GpuCast extends Arm with Serializable
  51. object GpuCoalesceExec extends Serializable
  52. object GpuColumnarToRowExec extends Serializable
  53. object GpuDataWritingCommand
  54. object GpuDeviceManager extends Logging
  55. object GpuExec extends Serializable
  56. object GpuExpressionWithSideEffectUtils extends Arm
  57. object GpuExpressionsUtils extends Arm
  58. object GpuFilter extends Arm

    Run a filter on a batch.

    Run a filter on a batch. The batch will be consumed.

  59. object GpuJoinUtils
  60. object GpuKeyBatchingIterator
  61. object GpuListUtils extends Arm

    Provide a set of APIs to manipulate array/list columns in common ways.

  62. object GpuLiteral extends Serializable
  63. object GpuMapUtils extends Arm

    Provide a set of APIs to manipulate map columns in common ways.

    Provide a set of APIs to manipulate map columns in common ways. CUDF does not officially support maps so we store it as a list of key/value structs.

  64. object GpuMetric extends Logging with Serializable
  65. object GpuNvl extends Arm
  66. object GpuOrcScan extends Arm with Serializable
  67. object GpuOverrideUtil extends Logging
  68. object GpuOverrides extends Logging with Serializable
  69. object GpuParquetFileFormat
  70. object GpuParquetPartitionReaderFactoryBase

    Base object that has common functions for both GpuParquetPartitionReaderFactory and GpuParquetPartitionReaderFactory

  71. object GpuParquetScan extends Serializable
  72. object GpuParquetUtils extends Logging
  73. object GpuProjectExec extends Arm with Serializable
  74. object GpuRangePartitioner extends Serializable
  75. object GpuReadCSVFileFormat
  76. object GpuReadOrcFileFormat extends Serializable
  77. object GpuReadParquetFileFormat extends Serializable
  78. object GpuRowNumber extends Expression with GpuRunningWindowFunction with GpuBatchedRunningWindowWithFixer with Product with Serializable

    The row number in the window.

    The row number in the window.

    Note

    this is a running window only operator

  79. object GpuRunningWindowIterator extends Arm
  80. object GpuScalar extends Arm with Logging
  81. object GpuSemaphore
  82. object GpuShuffledHashJoinExec extends Arm with Serializable
  83. object GpuSinglePartitioning extends Expression with GpuExpression with ShimExpression with GpuPartitioning with Product with Serializable
  84. object GpuTextBasedDateUtils
  85. object GpuTopN extends Arm with Serializable
  86. object GpuTransitionOverrides
  87. object GpuTypedImperativeSupportedAggregateExecMeta
  88. object GpuUnsignedIntegerType extends GpuUnsignedIntegerType with Product with Serializable
  89. object GpuUnsignedLongType extends GpuUnsignedLongType with Product with Serializable
  90. object GpuUnspecifiedFrame extends Expression with GpuWindowFrame with Product with Serializable
  91. object GpuUserDefinedFunction extends Serializable
  92. object GpuWindowExec extends Arm with Serializable
  93. object GroupByAggExprContext extends ExpressionContext
  94. object GroupedAggregations extends Arm
  95. object Header extends Serializable
  96. object HostColumnarToGpu extends Logging with Serializable
  97. object IcebergFormatType extends FileFormatType
  98. object InputFileBlockRule

    InputFileBlockRule is to prevent the SparkPlans [SparkPlan (with first input_file_xxx expression), FileScan) to run on GPU

    InputFileBlockRule is to prevent the SparkPlans [SparkPlan (with first input_file_xxx expression), FileScan) to run on GPU

    See https://github.com/NVIDIA/spark-rapids/issues/3333

  99. object JoinGatherer extends Arm
  100. object JoinGathererImpl
  101. object JsonFormatType extends FileFormatType
  102. object LazySpillableColumnarBatch
  103. object LazySpillableGatherMap
  104. object MemoryCostHelper
  105. object MetaUtils extends Arm
  106. object MetricsLevel extends Serializable
  107. object MultiFileReaderThreadPool extends Logging
  108. object NoopMetric extends GpuMetric
  109. object NotApplicable extends SupportLevel

    N/A neither spark nor the plugin supports this.

  110. object NotSupported extends SupportLevel

    Spark supports this but the plugin does not.

  111. object NvtxWithMetrics
  112. object OrcFormatType extends FileFormatType
  113. object OutOfCoreSort extends SortExecType
  114. object ParquetDumper extends Arm
  115. object ParquetFormatType extends FileFormatType
  116. object ParquetPartitionReader
  117. object ParquetSchemaUtils extends Arm
  118. object PartChecks
  119. object PartitionReaderIterator
  120. object PartitionedFileUtils
  121. object PlanUtils
  122. object ProjectExprContext extends ExpressionContext
  123. object RankFixer extends Arm
  124. object RapidsBuffer
  125. object RapidsBufferCatalog extends Logging with Arm
  126. object RapidsBufferStore
  127. object RapidsConf
  128. object RapidsExecutorPlugin
  129. object RapidsMeta
  130. object RapidsPluginImplicits

    RapidsPluginImplicits, adds implicit functions for ColumnarBatch, Seq, Seq[AutoCloseable], and Array[AutoCloseable] that help make resource management easier within the project.

  131. object RapidsPluginUtils extends Logging
  132. object RapidsReaderType extends Enumeration
  133. object ReadFileOp extends FileFormatOp
  134. object ReductionAggExprContext extends ExpressionContext
  135. object RegexFindMode extends RegexMode
  136. object RegexParser
  137. object RegexReplaceMode extends RegexMode
  138. object RegexSplitMode extends RegexMode
  139. object RequireSingleBatch extends CoalesceSizeGoal with RequireSingleBatchLike with Product with Serializable

    A single batch is required as the input to a node in the SparkPlan.

    A single batch is required as the input to a node in the SparkPlan. This means all of the data for a given task is in a single batch. This should be avoided as much as possible because it can result in running out of memory or run into limitations of the batch size by both Spark and cudf.

  140. object RowCountPlanVisitor

    Estimate the number of rows that an operator will output.

    Estimate the number of rows that an operator will output. Note that these row counts are the aggregate across all output partitions.

    Logic is based on Spark's SizeInBytesOnlyStatsPlanVisitor. which operates on logical plans and only computes data sizes, not row counts.

  141. object SamplingUtils extends Arm
  142. object SchemaUtils extends Arm
  143. object SerializedTableColumn
  144. object ShimLoader extends Logging
  145. object ShuffleBufferCatalog
  146. object ShuffleMetadata extends Logging
  147. object ShuffleReceivedBufferCatalog
  148. object SortEachBatch extends SortExecType
  149. object SortUtils extends Arm
  150. object SpillPriorities

    Utility methods for managing spillable buffer priorities.

    Utility methods for managing spillable buffer priorities. The spill priority numerical space is divided into potentially overlapping ranges based on the type of buffer.

  151. object SpillableBuffer extends Arm
  152. object SpillableColumnarBatch extends Arm
  153. object StorageTier extends Enumeration

    Enumeration of the storage tiers

  154. object SupportedOpsDocs

    Used for generating the support docs.

  155. object SupportedOpsForTools
  156. object TableCompressionCodec
  157. object TypeChecks
  158. object TypeEnum extends Enumeration

    The Supported Types.

    The Supported Types. The TypeSig API should be preferred for this, except in a few cases when TypeSig asks for a TypeEnum.

  159. object TypeSig
  160. object VersionUtils
  161. object WindowAggExprContext extends ExpressionContext
  162. object WindowSpecCheck extends ExprChecks

    This is specific to WindowSpec, because it does not follow the typical parameter convention.

  163. object WriteFileOp extends FileFormatOp

Ungrouped