Package org.elasticsearch.common.collect
Class ImmutableOpenMap.Builder<KType,VType>
org.elasticsearch.common.collect.ImmutableOpenMap.Builder<KType,VType>
- All Implemented Interfaces:
com.carrotsearch.hppc.ObjectObjectAssociativeContainer<KType,VType>
,com.carrotsearch.hppc.ObjectObjectMap<KType,VType>
,<com.carrotsearch.hppc.cursors.ObjectObjectCursor<KType,VType>>
- Enclosing class:
- ImmutableOpenMap<KType,VType>
public static class ImmutableOpenMap.Builder<KType,VType>
extends
implements com.carrotsearch.hppc.ObjectObjectMap<KType,VType>
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
Builds a new instance of the<K, V> ImmutableOpenMap.Builder<K,V>
cast()
void
clear()
boolean
containsKey(KType key)
forEach(T procedure)
A put operation that can be used in the fluent pattern.Remove that can be used in the fluent pattern.getOrDefault(KType kType, VType vType)
boolean
indexExists(int index)
indexGet(int index)
void
indexInsert(int index, KType key, VType value)
int
indexReplace(int index, VType newValue)
boolean
isEmpty()
iterator()
com.carrotsearch.hppc.ObjectCollection<KType>
keys()
int
putAll(com.carrotsearch.hppc.ObjectObjectAssociativeContainer<? extends KType,? extends VType> container)
int
<? extends com.carrotsearch.hppc.cursors.ObjectObjectCursor<? extends KType,? extends VType>> iterable)
Puts all the entries in the map to the builder.void
release()
int
int
removeAll(com.carrotsearch.hppc.predicates.ObjectObjectPredicate<? super KType,? super VType> predicate)
int
int
size()
com.carrotsearch.hppc.ObjectContainer<VType>
values()
visualizeKeyDistribution(int characters)
Methods inherited from class java.lang.
, , , , , , , , , ,
Methods inherited from interface java.lang.
,
Methods inherited from interface com.carrotsearch.hppc.ObjectObjectMap
equals, hashCode
-
Constructor Details
-
Builder
public Builder() -
Builder
public Builder(int size) -
Builder
-
-
Method Details
-
build
Builds a new instance of the -
putAll
Puts all the entries in the map to the builder. -
fPut
A put operation that can be used in the fluent pattern. -
put
-
get
-
getOrDefault
-
putAll
-
putAll
-
fRemove
Remove that can be used in the fluent pattern. -
remove
-
iterator
-
containsKey
-
size
public int size() -
isEmpty
public boolean isEmpty() -
removeAll
-
removeAll
-
forEach
-
clear
public void clear() -
keys
-
values
-
cast
-
removeAll
-
forEach
-
indexOf
-
indexExists
public boolean indexExists(int index) -
indexGet
-
indexReplace
-
indexInsert
-
release
public void release() -
visualizeKeyDistribution
public visualizeKeyDistribution(int characters)
-