Package org.apache.spark.util
Interface SparkCollectionUtils
public interface SparkCollectionUtils
- 
Method Summary
Modifier and TypeMethodDescription<K> ObjectcreateArray(int size, K defaultValue, scala.reflect.ClassTag<K> evidence$1) <K,V> boolean <K,V> boolean isNotEmpty(Map<K, V> map) <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)
 
 - 
isEmpty
 - 
isNotEmpty
 - 
createArray
 
 -