classTopKUDAF[B] extends UserDefinedAggregateFunction with Logging
Created by eugeny.malyutin on 24.06.16.
UDAF designed to extract top-numRows rows by columnValue
Used to replace Hive Window-functions which are to slow in case of all-df in one aggregation cell
Result of aggFun is packed in a column "arrData" and need to be org.apache.spark.sql.functions.explode-d
B
- type of columnToSortBy with implicit ordering for type B
Linear Supertypes
Logging, UserDefinedAggregateFunction, Serializable, Serializable, AnyRef, Any
Created by eugeny.malyutin on 24.06.16.
UDAF designed to extract top-numRows rows by columnValue Used to replace Hive Window-functions which are to slow in case of all-df in one aggregation cell Result of aggFun is packed in a column "arrData" and need to be org.apache.spark.sql.functions.explode-d
- type of columnToSortBy with implicit ordering for type B