public class RDDFunctions<T>
extends java.lang.Object
implements scala.Serializable
Constructor and Description |
---|
RDDFunctions(RDD<T> self,
scala.reflect.ClassTag<T> evidence$1) |
Modifier and Type | Method and Description |
---|---|
static <T> RDDFunctions<T> |
fromRDD(RDD<T> rdd,
scala.reflect.ClassTag<T> evidence$3)
Implicit conversion from an RDD to RDDFunctions.
|
RDD<java.lang.Object> |
sliding(int windowSize)
Returns a RDD from grouping items of its parent RDD in fixed size blocks by passing a sliding
window over them.
|
<U> U |
treeAggregate(U zeroValue,
scala.Function2<U,T,U> seqOp,
scala.Function2<U,U,U> combOp,
int depth,
scala.reflect.ClassTag<U> evidence$2)
|
T |
treeReduce(scala.Function2<T,T,T> f,
int depth)
Deprecated.
Use
RDD.treeReduce(scala.Function2<T, T, T>, int) instead. |
public static <T> RDDFunctions<T> fromRDD(RDD<T> rdd, scala.reflect.ClassTag<T> evidence$3)
public RDD<java.lang.Object> sliding(int windowSize)
windowSize
- (undocumented)public T treeReduce(scala.Function2<T,T,T> f, int depth)
RDD.treeReduce(scala.Function2<T, T, T>, int)
instead.depth
- suggested depth of the tree (default: 2)f
- (undocumented)RDD.treeReduce(scala.Function2<T, T, T>, int)
public <U> U treeAggregate(U zeroValue, scala.Function2<U,T,U> seqOp, scala.Function2<U,U,U> combOp, int depth, scala.reflect.ClassTag<U> evidence$2)
RDD.treeAggregate(U, scala.Function2<U, T, U>, scala.Function2<U, U, U>, int, scala.reflect.ClassTag<U>)
instead.depth
- suggested depth of the tree (default: 2)zeroValue
- (undocumented)seqOp
- (undocumented)combOp
- (undocumented)evidence$2
- (undocumented)RDD.treeAggregate(U, scala.Function2<U, T, U>, scala.Function2<U, U, U>, int, scala.reflect.ClassTag<U>)