Package org.apache.spark.util
Interface SparkCollectionUtils
public interface SparkCollectionUtils
-
Method Summary
Modifier and TypeMethodDescription<K> scala.collection.immutable.Map<K,Object> toMapWithIndex(scala.collection.Iterable<K> keys) Same function askeys.zipWithIndex.toMap, but has perf gain.
-
Method Details
-
toMapWithIndex
Same function askeys.zipWithIndex.toMap, but has perf gain.- Parameters:
keys- (undocumented)- Returns:
- (undocumented)
-