K
- key typeV
- value typepublic class PromotableMultiMapWithOrdinal<K,V> extends Object implements MapWithOrdinal<K,V>
Constructor and Description |
---|
PromotableMultiMapWithOrdinal(boolean promotable,
AbstractStructVector.ConflictPolicy conflictPolicy)
Create promotable map.
|
Modifier and Type | Method and Description |
---|---|
void |
clear() |
boolean |
containsKey(K key) |
V |
get(K key) |
Collection<V> |
getAll(K key) |
V |
getByOrdinal(int id) |
int |
getOrdinal(K key) |
boolean |
isEmpty() |
Set<K> |
keys() |
boolean |
put(K key,
V value,
boolean overwrite) |
boolean |
remove(K key,
V value) |
boolean |
removeAll(K key) |
void |
setConflictPolicy(AbstractStructVector.ConflictPolicy conflictPolicy) |
int |
size() |
Collection<V> |
values() |
public PromotableMultiMapWithOrdinal(boolean promotable, AbstractStructVector.ConflictPolicy conflictPolicy)
promotable
- if promotion is allowed, otherwise delegate to MapWithOrdinal.conflictPolicy
- how to handle name conflicts.public V getByOrdinal(int id)
getByOrdinal
in interface MapWithOrdinal<K,V>
public int getOrdinal(K key)
getOrdinal
in interface MapWithOrdinal<K,V>
public int size()
size
in interface MapWithOrdinal<K,V>
public boolean isEmpty()
isEmpty
in interface MapWithOrdinal<K,V>
public Collection<V> getAll(K key)
getAll
in interface MapWithOrdinal<K,V>
public boolean put(K key, V value, boolean overwrite)
put
in interface MapWithOrdinal<K,V>
public Collection<V> values()
values
in interface MapWithOrdinal<K,V>
public boolean containsKey(K key)
containsKey
in interface MapWithOrdinal<K,V>
public boolean removeAll(K key)
removeAll
in interface MapWithOrdinal<K,V>
public void clear()
clear
in interface MapWithOrdinal<K,V>
public void setConflictPolicy(AbstractStructVector.ConflictPolicy conflictPolicy)
Copyright © 2024 The Apache Software Foundation. All rights reserved.