File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
examples/src/main/java/org/apache/spark/examples/ml Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change 1717
1818package org .apache .spark .examples .ml ;
1919
20- // $example on$
2120import java .util .regex .Pattern ;
2221
2322import org .apache .spark .SparkConf ;
2423import org .apache .spark .api .java .JavaRDD ;
2524import org .apache .spark .api .java .JavaSparkContext ;
2625import org .apache .spark .api .java .function .Function ;
26+ import org .apache .spark .sql .SQLContext ;
27+ import org .apache .spark .sql .catalyst .expressions .GenericRow ;
28+ // $example on$
2729import org .apache .spark .ml .clustering .KMeansModel ;
2830import org .apache .spark .ml .clustering .KMeans ;
2931import org .apache .spark .mllib .linalg .Vector ;
3032import org .apache .spark .mllib .linalg .VectorUDT ;
3133import org .apache .spark .mllib .linalg .Vectors ;
3234import org .apache .spark .sql .DataFrame ;
3335import org .apache .spark .sql .Row ;
34- import org .apache .spark .sql .SQLContext ;
35- import org .apache .spark .sql .catalyst .expressions .GenericRow ;
3636import org .apache .spark .sql .types .Metadata ;
3737import org .apache .spark .sql .types .StructField ;
3838import org .apache .spark .sql .types .StructType ;
You can’t perform that action at this time.
0 commit comments