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