public class TakeOrdered extends SparkPlan implements scala.Product, scala.Serializable
Limit
operator after a Sort
operator. This could have been named TopK, but
Spark's top operator does the opposite in ordering so we name it TakeOrdered to avoid confusion.Constructor and Description |
---|
TakeOrdered(int limit,
scala.collection.Seq<org.apache.spark.sql.catalyst.expressions.SortOrder> sortOrder,
SparkPlan child,
SQLContext sqlContext) |
Modifier and Type | Method and Description |
---|---|
SparkPlan |
child() |
RDD<org.apache.spark.sql.catalyst.expressions.Row> |
execute()
Runs this query returning the result as an RDD.
|
org.apache.spark.sql.catalyst.expressions.Row[] |
executeCollect()
Runs this query returning the result as an array.
|
int |
limit() |
org.apache.spark.sql.catalyst.expressions.RowOrdering |
ordering() |
scala.collection.immutable.List<SQLContext> |
otherCopyArgs() |
scala.collection.Seq<org.apache.spark.sql.catalyst.expressions.Attribute> |
output() |
org.apache.spark.sql.catalyst.plans.physical.Partitioning |
outputPartitioning() |
scala.collection.Seq<org.apache.spark.sql.catalyst.expressions.SortOrder> |
sortOrder() |
outputPartitioning, requiredChildDistribution
expressions, generateSchemaString, generateSchemaString, org$apache$spark$sql$catalyst$plans$QueryPlan$$transformExpressionDown$1, org$apache$spark$sql$catalyst$plans$QueryPlan$$transformExpressionUp$1, outputSet, printSchema, schemaString, transformAllExpressions, transformExpressions, transformExpressionsDown, transformExpressionsUp
apply, argString, asCode, children, collect, fastEquals, flatMap, foreach, generateTreeString, getNodeNumbered, id, makeCopy, map, mapChildren, nextId, nodeName, numberedTreeString, sameInstance, simpleString, stringArgs, toString, transform, transformChildrenDown, transformChildrenUp, transformDown, transformUp, treeString, withNewChildren
public TakeOrdered(int limit, scala.collection.Seq<org.apache.spark.sql.catalyst.expressions.SortOrder> sortOrder, SparkPlan child, SQLContext sqlContext)
public int limit()
public scala.collection.Seq<org.apache.spark.sql.catalyst.expressions.SortOrder> sortOrder()
public SparkPlan child()
public scala.collection.immutable.List<SQLContext> otherCopyArgs()
public scala.collection.Seq<org.apache.spark.sql.catalyst.expressions.Attribute> output()
output
in class org.apache.spark.sql.catalyst.plans.QueryPlan<SparkPlan>
public org.apache.spark.sql.catalyst.expressions.RowOrdering ordering()
public org.apache.spark.sql.catalyst.expressions.Row[] executeCollect()
SparkPlan
executeCollect
in class SparkPlan
public RDD<org.apache.spark.sql.catalyst.expressions.Row> execute()
SparkPlan
public org.apache.spark.sql.catalyst.plans.physical.Partitioning outputPartitioning()