зеркало из https://github.com/microsoft/spark.git
Make Java API abstract wrapped functions private
This commit is contained in:
Родитель
b9badcd5bd
Коммит
0361353a70
|
@ -7,7 +7,7 @@ import scala.runtime.AbstractFunction1
|
|||
* apply() method as call() and declare that it can throw Exception (since AbstractFunction1.apply
|
||||
* isn't marked to allow that).
|
||||
*/
|
||||
abstract class WrappedFunction1[T, R] extends AbstractFunction1[T, R] {
|
||||
private[spark] abstract class WrappedFunction1[T, R] extends AbstractFunction1[T, R] {
|
||||
@throws(classOf[Exception])
|
||||
def call(t: T): R
|
||||
|
||||
|
|
|
@ -7,7 +7,7 @@ import scala.runtime.AbstractFunction2
|
|||
* apply() method as call() and declare that it can throw Exception (since AbstractFunction2.apply
|
||||
* isn't marked to allow that).
|
||||
*/
|
||||
abstract class WrappedFunction2[T1, T2, R] extends AbstractFunction2[T1, T2, R] {
|
||||
private[spark] abstract class WrappedFunction2[T1, T2, R] extends AbstractFunction2[T1, T2, R] {
|
||||
@throws(classOf[Exception])
|
||||
def call(t1: T1, t2: T2): R
|
||||
|
||||
|
|
Загрузка…
Ссылка в новой задаче