Package org.apache.spark.mllib.rdd
Class RDDFunctions<T>
Object
org.apache.spark.mllib.rdd.RDDFunctions<T>
- All Implemented Interfaces:
- Serializable
Machine learning specific RDD functions.
- See Also:
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionstatic <T> RDDFunctions<T>Implicit conversion from an RDD to RDDFunctions.sliding(int windowSize) sliding(Int, Int)*with step = 1.sliding(int windowSize, int step) Returns an RDD from grouping items of its parent RDD in fixed size blocks by passing a sliding window over them.
- 
Constructor Details- 
RDDFunctions
 
- 
- 
Method Details- 
fromRDDImplicit conversion from an RDD to RDDFunctions.
- 
slidingReturns an RDD from grouping items of its parent RDD in fixed size blocks by passing a sliding window over them. The ordering is first based on the partition index and then the ordering of items within each partition. This is similar to sliding in Scala collections, except that it becomes an empty RDD if the window size is greater than the total number of items. It needs to trigger a Spark job if the parent RDD has more than one partitions and the window size is greater than 1.- Parameters:
- windowSize- (undocumented)
- step- (undocumented)
- Returns:
- (undocumented)
 
- 
slidingsliding(Int, Int)*with step = 1.- Parameters:
- windowSize- (undocumented)
- Returns:
- (undocumented)
 
 
-