public class GraphXPrimitiveKeyOpenHashMap<K,V>
extends Object
implements scala.collection.Iterable<scala.Tuple2<K,V>>, scala.Serializable
Under the hood, it uses our OpenHashSet implementation.
| Constructor and Description |
|---|
GraphXPrimitiveKeyOpenHashMap(scala.reflect.ClassTag<K> evidence$5,
scala.reflect.ClassTag<V> evidence$6)
Allocate an OpenHashMap with a default initial capacity, providing a true
no-argument constructor.
|
GraphXPrimitiveKeyOpenHashMap(int initialCapacity,
scala.reflect.ClassTag<K> evidence$3,
scala.reflect.ClassTag<V> evidence$4)
Allocate an OpenHashMap with a fixed initial capacity
|
GraphXPrimitiveKeyOpenHashMap(org.apache.spark.util.collection.OpenHashSet<K> keySet,
scala.reflect.ClassTag<K> evidence$7,
scala.reflect.ClassTag<V> evidence$8)
Allocate an OpenHashMap with a fixed initial capacity
|
GraphXPrimitiveKeyOpenHashMap(org.apache.spark.util.collection.OpenHashSet<K> keySet,
Object _values,
scala.reflect.ClassTag<K> evidence$1,
scala.reflect.ClassTag<V> evidence$2) |
| Modifier and Type | Method and Description |
|---|---|
Object |
_values() |
V |
apply(K k)
Get the value for a given key
|
V |
changeValue(K k,
scala.Function0<V> defaultValue,
scala.Function1<V,V> mergeValue)
If the key doesn't exist yet in the hash map, set its value to defaultValue; otherwise,
set its value to mergeValue(oldValue).
|
V |
getOrElse(K k,
V elseValue)
Get the value for a given key, or returns elseValue if it doesn't exist.
|
Object |
iterator() |
org.apache.spark.util.collection.OpenHashSet<K> |
keySet() |
void |
setMerge(K k,
V v,
scala.Function2<V,V,V> mergeF)
Set the value for a key
|
int |
size() |
void |
update(K k,
V v)
Set the value for a key
|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitcanEqual, copyToArray, drop, dropRight, exists, find, foldRight, forall, foreach, grouped, head, isEmpty, reduceRight, sameElements, slice, sliding, sliding, take, takeRight, takeWhile, thisCollection, toCollection, toIterable, toIterator, toStream, view, view, zip, zipAll, zipWithIndex$plus$plus, $plus$plus$colon, $plus$plus$colon, collect, dropWhile, filter, filterNot, flatMap, groupBy, hasDefiniteSize, headOption, init, inits, isTraversableAgain, last, lastOption, map, parCombiner, partition, repr, scan, scanLeft, scanRight, sliceWithKnownBound, sliceWithKnownDelta, span, splitAt, stringPrefix, tail, tails, to, toString, toTraversable, withFilterpublic GraphXPrimitiveKeyOpenHashMap(org.apache.spark.util.collection.OpenHashSet<K> keySet, Object _values, scala.reflect.ClassTag<K> evidence$1, scala.reflect.ClassTag<V> evidence$2)
public GraphXPrimitiveKeyOpenHashMap(int initialCapacity,
scala.reflect.ClassTag<K> evidence$3,
scala.reflect.ClassTag<V> evidence$4)
public GraphXPrimitiveKeyOpenHashMap(scala.reflect.ClassTag<K> evidence$5, scala.reflect.ClassTag<V> evidence$6)
public org.apache.spark.util.collection.OpenHashSet<K> keySet()
public Object _values()
public int size()
size in interface scala.collection.GenTraversableLike<scala.Tuple2<K,V>,scala.collection.Iterable<scala.Tuple2<K,V>>>size in interface scala.collection.GenTraversableOnce<scala.Tuple2<K,V>>size in interface scala.collection.TraversableOnce<scala.Tuple2<K,V>>public V getOrElse(K k, V elseValue)
public V changeValue(K k, scala.Function0<V> defaultValue, scala.Function1<V,V> mergeValue)