Package org.apache.iceberg.util
Class StructLikeMap<T>
- java.lang.Object
-
- java.util.AbstractMap<StructLike,T>
-
- org.apache.iceberg.util.StructLikeMap<T>
-
- All Implemented Interfaces:
java.util.Map<StructLike,T>
public class StructLikeMap<T> extends java.util.AbstractMap<StructLike,T> implements java.util.Map<StructLike,T>
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description void
clear()
boolean
containsKey(java.lang.Object key)
boolean
containsValue(java.lang.Object value)
static <T> StructLikeMap<T>
create(Types.StructType type)
java.util.Set<java.util.Map.Entry<StructLike,T>>
entrySet()
T
get(java.lang.Object key)
boolean
isEmpty()
java.util.Set<StructLike>
keySet()
T
put(StructLike key, T value)
T
remove(java.lang.Object key)
int
size()
<U> StructLikeMap<U>
transformValues(java.util.function.Function<T,U> func)
java.util.Collection<T>
values()
-
-
-
Method Detail
-
create
public static <T> StructLikeMap<T> create(Types.StructType type)
-
size
public int size()
- Specified by:
size
in interfacejava.util.Map<StructLike,T>
- Overrides:
size
in classjava.util.AbstractMap<StructLike,T>
-
isEmpty
public boolean isEmpty()
- Specified by:
isEmpty
in interfacejava.util.Map<StructLike,T>
- Overrides:
isEmpty
in classjava.util.AbstractMap<StructLike,T>
-
containsKey
public boolean containsKey(java.lang.Object key)
- Specified by:
containsKey
in interfacejava.util.Map<StructLike,T>
- Overrides:
containsKey
in classjava.util.AbstractMap<StructLike,T>
-
containsValue
public boolean containsValue(java.lang.Object value)
- Specified by:
containsValue
in interfacejava.util.Map<StructLike,T>
- Overrides:
containsValue
in classjava.util.AbstractMap<StructLike,T>
-
get
public T get(java.lang.Object key)
- Specified by:
get
in interfacejava.util.Map<StructLike,T>
- Overrides:
get
in classjava.util.AbstractMap<StructLike,T>
-
put
public T put(StructLike key, T value)
- Specified by:
put
in interfacejava.util.Map<StructLike,T>
- Overrides:
put
in classjava.util.AbstractMap<StructLike,T>
-
remove
public T remove(java.lang.Object key)
- Specified by:
remove
in interfacejava.util.Map<StructLike,T>
- Overrides:
remove
in classjava.util.AbstractMap<StructLike,T>
-
clear
public void clear()
- Specified by:
clear
in interfacejava.util.Map<StructLike,T>
- Overrides:
clear
in classjava.util.AbstractMap<StructLike,T>
-
keySet
public java.util.Set<StructLike> keySet()
- Specified by:
keySet
in interfacejava.util.Map<StructLike,T>
- Overrides:
keySet
in classjava.util.AbstractMap<StructLike,T>
-
values
public java.util.Collection<T> values()
- Specified by:
values
in interfacejava.util.Map<StructLike,T>
- Overrides:
values
in classjava.util.AbstractMap<StructLike,T>
-
entrySet
public java.util.Set<java.util.Map.Entry<StructLike,T>> entrySet()
- Specified by:
entrySet
in interfacejava.util.Map<StructLike,T>
- Specified by:
entrySet
in classjava.util.AbstractMap<StructLike,T>
-
transformValues
public <U> StructLikeMap<U> transformValues(java.util.function.Function<T,U> func)
-
-