Trait

org.apache.spark.sql.sources

SamplingRelation

Related Doc: package sources

Permalink

trait SamplingRelation extends BaseRelation with SchemaInsertableRelation

Annotations
@DeveloperApi()
Linear Supertypes
Known Subclasses
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. SamplingRelation
  2. SchemaInsertableRelation
  3. InsertableRelation
  4. BaseRelation
  5. AnyRef
  6. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Abstract Value Members

  1. abstract def append(rows: RDD[Row], time: Long = 1): Unit

    Permalink

    Append a given RDD or rows into the relation.

    Append a given RDD or rows into the relation.

    Definition Classes
    SchemaInsertableRelation
  2. abstract def baseRelation: BaseColumnFormatRelation

    Permalink

    The underlying column table used to store data.

  3. abstract def baseTable: Option[String]

    Permalink

    Base table of this relation.

  4. abstract def canBeOnBuildSide: Boolean

    Permalink
  5. abstract def insert(data: DataFrame, overwrite: Boolean): Unit

    Permalink
    Definition Classes
    InsertableRelation
  6. abstract def insertableRelation(sourceSchema: Seq[Attribute]): Option[InsertableRelation]

    Permalink

    Return the actual relation to be used for insertion into the relation or None if sourceSchema cannot be inserted.

    Return the actual relation to be used for insertion into the relation or None if sourceSchema cannot be inserted.

    Definition Classes
    SchemaInsertableRelation
  7. abstract def isPartitioned: Boolean

    Permalink

    If underlying sample table is partitioned

  8. abstract def isReservoirAsRegion: Boolean

    Permalink

    True if underlying sample table is using a row table as reservoir store.

  9. abstract def qcs: Array[String]

    Permalink

    The QCS columns for the sample.

  10. abstract def samplingOptions: Map[String, Any]

    Permalink

    Options set for this sampling relation.

  11. abstract def schema: StructType

    Permalink
    Definition Classes
    BaseRelation
  12. abstract def sqlContext: SQLContext

    Permalink
    Definition Classes
    BaseRelation

Concrete Value Members

  1. final def !=(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  2. final def ##(): Int

    Permalink
    Definition Classes
    AnyRef → Any
  3. final def ==(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  4. final def asInstanceOf[T0]: T0

    Permalink
    Definition Classes
    Any
  5. def clone(): AnyRef

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  6. final def eq(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  7. def equals(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  8. def finalize(): Unit

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  9. final def getClass(): Class[_]

    Permalink
    Definition Classes
    AnyRef → Any
  10. def hashCode(): Int

    Permalink
    Definition Classes
    AnyRef → Any
  11. final def isInstanceOf[T0]: Boolean

    Permalink
    Definition Classes
    Any
  12. final def ne(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  13. def needConversion: Boolean

    Permalink

    Whether does it need to convert the objects in Row to internal representation, for example: java.lang.String to UTF8String java.lang.Decimal to Decimal

    Whether does it need to convert the objects in Row to internal representation, for example: java.lang.String to UTF8String java.lang.Decimal to Decimal

    If needConversion is false, buildScan() should return an RDD of InternalRow

    Definition Classes
    BaseRelation
    Since

    1.4.0

    Note

    The internal representation is not stable across releases and thus data sources outside of Spark SQL should leave this as true.

  14. final def notify(): Unit

    Permalink
    Definition Classes
    AnyRef
  15. final def notifyAll(): Unit

    Permalink
    Definition Classes
    AnyRef
  16. def sizeInBytes: Long

    Permalink

    Returns an estimated size of this relation in bytes.

    Returns an estimated size of this relation in bytes. This information is used by the planner to decide when it is safe to broadcast a relation and can be overridden by sources that know the size ahead of time. By default, the system will assume that tables are too large to broadcast. This method will be called multiple times during query planning and thus should not perform expensive operations for each invocation.

    Definition Classes
    BaseRelation
    Since

    1.3.0

    Note

    It is always better to overestimate size than underestimate, because underestimation could lead to execution plans that are suboptimal (i.e. broadcasting a very large table).

  17. final def synchronized[T0](arg0: ⇒ T0): T0

    Permalink
    Definition Classes
    AnyRef
  18. def toString(): String

    Permalink
    Definition Classes
    AnyRef → Any
  19. def unhandledFilters(filters: Array[Filter]): Array[Filter]

    Permalink

    Returns the list of Filters that this datasource may not be able to handle.

    Returns the list of Filters that this datasource may not be able to handle. These returned Filters will be evaluated by Spark SQL after data is output by a scan. By default, this function will return all filters, as it is always safe to double evaluate a Filter. However, specific implementations can override this function to avoid double filtering when they are capable of processing a filter internally.

    Definition Classes
    BaseRelation
    Since

    1.6.0

  20. final def wait(): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  21. final def wait(arg0: Long, arg1: Int): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  22. final def wait(arg0: Long): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )

Inherited from SchemaInsertableRelation

Inherited from InsertableRelation

Inherited from BaseRelation

Inherited from AnyRef

Inherited from Any

Ungrouped