[HOTFIX] Remove trailing whitespace to fix Scalastyle checks
866652c903
enabled this check.
This commit is contained in:
parent
f1d4e7e311
commit
df0bf71ee0
|
@ -60,7 +60,7 @@ trait JavaRDDLike[T, This <: JavaRDDLike[T, This]] extends Serializable {
|
|||
|
||||
@deprecated("Use partitions() instead.", "1.1.0")
|
||||
def splits: JList[Partition] = new java.util.ArrayList(rdd.partitions.toSeq)
|
||||
|
||||
|
||||
/** Set of partitions in this RDD. */
|
||||
def partitions: JList[Partition] = new java.util.ArrayList(rdd.partitions.toSeq)
|
||||
|
||||
|
@ -492,9 +492,9 @@ trait JavaRDDLike[T, This <: JavaRDDLike[T, This]] extends Serializable {
|
|||
new java.util.ArrayList(arr)
|
||||
}
|
||||
|
||||
def takeSample(withReplacement: Boolean, num: Int): JList[T] =
|
||||
def takeSample(withReplacement: Boolean, num: Int): JList[T] =
|
||||
takeSample(withReplacement, num, Utils.random.nextLong)
|
||||
|
||||
|
||||
def takeSample(withReplacement: Boolean, num: Int, seed: Long): JList[T] = {
|
||||
import scala.collection.JavaConversions._
|
||||
val arr: java.util.Collection[T] = rdd.takeSample(withReplacement, num, seed).toSeq
|
||||
|
|
|
@ -25,7 +25,7 @@ import org.apache.spark.sql.types._
|
|||
*/
|
||||
case class CreateArray(children: Seq[Expression]) extends Expression {
|
||||
override type EvaluatedType = Any
|
||||
|
||||
|
||||
override def foldable: Boolean = children.forall(_.foldable)
|
||||
|
||||
lazy val childTypes = children.map(_.dataType).distinct
|
||||
|
|
|
@ -211,7 +211,7 @@ case class EndsWith(left: Expression, right: Expression)
|
|||
*/
|
||||
case class Substring(str: Expression, pos: Expression, len: Expression)
|
||||
extends Expression with ExpectsInputTypes {
|
||||
|
||||
|
||||
type EvaluatedType = Any
|
||||
|
||||
override def foldable: Boolean = str.foldable && pos.foldable && len.foldable
|
||||
|
|
Loading…
Reference in a new issue