Packages

t

org.apache.spark.sql.execution

ScanFileListing

trait ScanFileListing extends AnyRef

Trait used to represent the selected partitions and dynamically selected partitions during file listing.

The ScanFileListing trait defines the core API for interacting with selected partitions, establishing a contract for subclasses. It is situated at the root of this package and it is designed to provide a widely accessible definition, that is accessible to other packages and classes that need a way to represent the selected partitions and dynamically selected partitions.

Linear Supertypes
AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. ScanFileListing
  2. AnyRef
  3. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. Protected

Abstract Value Members

  1. abstract def bucketsContainSingleFile: Boolean

    Determines if each bucket in the current file listing representation contains at most one file.

    Determines if each bucket in the current file listing representation contains at most one file. This function returns true if it does, or false otherwise.

  2. abstract def calculateTotalPartitionBytes: Long

    Returns the total partition size in bytes for the current ScanFileListing representation.

  3. abstract def filePartitionIterator: Iterator[ListingPartition]

    Returns an iterator of over the partitions and their files for the file listing representation.

    Returns an iterator of over the partitions and their files for the file listing representation. This allows us to iterate over the partitions without the additional overhead of materializing the whole collection.

  4. abstract def filterAndPruneFiles(boundPredicate: BasePredicate, dynamicFileFilters: Seq[Expression]): ScanFileListing

    Filters and prunes files from the current scan file listing representation based on the given predicate and dynamic file filters.

    Filters and prunes files from the current scan file listing representation based on the given predicate and dynamic file filters. Initially, it filters partitions based on a static predicate. For partitions that pass this filter, it further prunes files using dynamic file filters, if any are provided. This method assumes that dynamic file filters are applicable only to files within partitions that have already passed the static predicate filter.

  5. abstract def partitionCount: Int

    Returns the number of partitions for the current partition representation.

  6. abstract def toPartitionArray: Array[PartitionedFile]

    Returns an Array[PartitionedFile from the current ScanFileListing representation.

  7. abstract def totalFileSize: Long

    Calculates the total size in bytes of all files across the current file listing representation.

  8. abstract def totalNumberOfFiles: Long

    Returns the total number of files across the current file listing representation.

Concrete Value Members

  1. final def !=(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  2. final def ##: Int
    Definition Classes
    AnyRef → Any
  3. final def ==(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  4. final def asInstanceOf[T0]: T0
    Definition Classes
    Any
  5. def clone(): AnyRef
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.CloneNotSupportedException]) @IntrinsicCandidate() @native()
  6. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  7. def equals(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef → Any
  8. final def getClass(): Class[_ <: AnyRef]
    Definition Classes
    AnyRef → Any
    Annotations
    @IntrinsicCandidate() @native()
  9. def hashCode(): Int
    Definition Classes
    AnyRef → Any
    Annotations
    @IntrinsicCandidate() @native()
  10. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  11. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  12. final def notify(): Unit
    Definition Classes
    AnyRef
    Annotations
    @IntrinsicCandidate() @native()
  13. final def notifyAll(): Unit
    Definition Classes
    AnyRef
    Annotations
    @IntrinsicCandidate() @native()
  14. final def synchronized[T0](arg0: => T0): T0
    Definition Classes
    AnyRef
  15. def toString(): String
    Definition Classes
    AnyRef → Any
  16. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  17. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException]) @native()
  18. final def wait(): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])

Deprecated Value Members

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

    (Since version 9)

Inherited from AnyRef

Inherited from Any

Ungrouped