Class

org.apache.spark.sql.topk

TopKRelation

Related Doc: package topk

Permalink

case class TopKRelation(sqlContext: SnappyContext, topKName: String, topKOptions: Map[String, String], baseTable: Option[String], baseTableSchema: StructType, keyColumn: String, isStreamSummary: Boolean)(schema: StructType = ...) extends BaseRelation with PrunedFilteredScan with SchemaInsertableRelation with DestroyRelation with Logging with Serializable with Product

Linear Supertypes
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. TopKRelation
  2. Product
  3. Equals
  4. Serializable
  5. Serializable
  6. Logging
  7. DestroyRelation
  8. SchemaInsertableRelation
  9. InsertableRelation
  10. PrunedFilteredScan
  11. BaseRelation
  12. AnyRef
  13. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Instance Constructors

  1. new TopKRelation(sqlContext: SnappyContext, topKName: String, topKOptions: Map[String, String], baseTable: Option[String], baseTableSchema: StructType, keyColumn: String, isStreamSummary: Boolean)(schema: StructType = ...)

    Permalink

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. def append(rows: RDD[Row], time: Long): Unit

    Permalink

    Append a given RDD or rows into the relation.

    Append a given RDD or rows into the relation.

    Definition Classes
    TopKRelationSchemaInsertableRelation
  5. final def asInstanceOf[T0]: T0

    Permalink
    Definition Classes
    Any
  6. val baseTable: Option[String]

    Permalink
  7. val baseTableSchema: StructType

    Permalink
  8. def buildScan(requiredColumns: Array[String], filters: Array[Filter]): RDD[Row]

    Permalink
    Definition Classes
    TopKRelationPrunedFilteredScan
  9. def clone(): AnyRef

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  10. def create(ifExists: Boolean): Unit

    Permalink
  11. def destroy(ifExists: Boolean): Unit

    Permalink

    Destroy and cleanup this relation.

    Destroy and cleanup this relation. It may include, but not limited to, dropping the external table that this relation represents.

    Definition Classes
    TopKRelationDestroyRelation
  12. final def eq(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  13. def finalize(): Unit

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

    Permalink
    Definition Classes
    AnyRef → Any
  15. def initializeLogIfNecessary(): Unit

    Permalink
    Attributes
    protected
    Definition Classes
    Logging
  16. def insert(data: DataFrame, overwrite: Boolean): Unit

    Permalink
    Definition Classes
    TopKRelationInsertableRelation
  17. 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
    TopKRelationSchemaInsertableRelation
  18. final def isDebugEnabled: Boolean

    Permalink
    Definition Classes
    Logging
  19. final def isInfoEnabled: Boolean

    Permalink
    Definition Classes
    Logging
  20. final def isInstanceOf[T0]: Boolean

    Permalink
    Definition Classes
    Any
  21. val isStreamSummary: Boolean

    Permalink
  22. final def isTraceEnabled: Boolean

    Permalink
    Definition Classes
    Logging
  23. val keyColumn: String

    Permalink
  24. final var levelFlags: Int

    Permalink
    Attributes
    protected
    Definition Classes
    Logging
  25. def log: Logger

    Permalink
    Attributes
    protected
    Definition Classes
    Logging
  26. def logDebug(msg: ⇒ String, throwable: Throwable): Unit

    Permalink
    Definition Classes
    Logging
  27. def logDebug(msg: ⇒ String): Unit

    Permalink
    Definition Classes
    Logging
  28. def logError(msg: ⇒ String, throwable: Throwable): Unit

    Permalink
    Definition Classes
    Logging
  29. def logError(msg: ⇒ String): Unit

    Permalink
    Definition Classes
    Logging
  30. def logInfo(msg: ⇒ String, throwable: Throwable): Unit

    Permalink
    Definition Classes
    Logging
  31. def logInfo(msg: ⇒ String): Unit

    Permalink
    Definition Classes
    Logging
  32. def logName: String

    Permalink
    Attributes
    protected
    Definition Classes
    Logging
  33. def logTrace(msg: ⇒ String, throwable: Throwable): Unit

    Permalink
    Definition Classes
    Logging
  34. def logTrace(msg: ⇒ String): Unit

    Permalink
    Definition Classes
    Logging
  35. def logWarning(msg: ⇒ String, throwable: Throwable): Unit

    Permalink
    Definition Classes
    Logging
  36. def logWarning(msg: ⇒ String): Unit

    Permalink
    Definition Classes
    Logging
  37. final var log_: Logger

    Permalink
    Attributes
    protected
    Definition Classes
    Logging
  38. final def ne(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  39. val 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
    TopKRelationBaseRelation
    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.

  40. final def notify(): Unit

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

    Permalink
    Definition Classes
    AnyRef
  42. def resetLogger(): Unit

    Permalink
    Attributes
    protected
    Definition Classes
    Logging
  43. val schema: StructType

    Permalink
    Definition Classes
    TopKRelationBaseRelation
  44. 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).

  45. val sqlContext: SnappyContext

    Permalink
    Definition Classes
    TopKRelationBaseRelation
  46. final def synchronized[T0](arg0: ⇒ T0): T0

    Permalink
    Definition Classes
    AnyRef
  47. val topKName: String

    Permalink
  48. val topKOptions: Map[String, String]

    Permalink
  49. def truncate(): Unit

    Permalink

    Truncate the table represented by this relation.

    Truncate the table represented by this relation.

    Definition Classes
    TopKRelationDestroyRelation
  50. 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

  51. final def wait(): Unit

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

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

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

Inherited from Product

Inherited from Equals

Inherited from Serializable

Inherited from Serializable

Inherited from Logging

Inherited from DestroyRelation

Inherited from SchemaInsertableRelation

Inherited from InsertableRelation

Inherited from PrunedFilteredScan

Inherited from BaseRelation

Inherited from AnyRef

Inherited from Any

Ungrouped