public class CastedMap extends Object implements InternalMap
InternalMap
which provides a casted view of the underlying InternalMap
.
It reads data from underlying InternalMap
according to source logical type and casts
it with specific CastExecutor
.
Modifier | Constructor and Description |
---|---|
protected |
CastedMap(CastElementGetter castValueGetter) |
Modifier and Type | Method and Description |
---|---|
static CastedMap |
from(CastElementGetter castValueGetter)
Replaces the underlying
InternalMap backing this CastedMap . |
InternalArray |
keyArray()
Returns an array view of the keys contained in this map.
|
CastedMap |
replaceMap(InternalMap map) |
int |
size()
Returns the number of key-value mappings in this map.
|
InternalArray |
valueArray()
Returns an array view of the values contained in this map.
|
protected CastedMap(CastElementGetter castValueGetter)
public static CastedMap from(CastElementGetter castValueGetter)
InternalMap
backing this CastedMap
.
This method replaces the map in place and does not return a new object. This is done for performance reasons.
public CastedMap replaceMap(InternalMap map)
public int size()
InternalMap
size
in interface InternalMap
public InternalArray keyArray()
InternalMap
A key-value pair has the same index in the key array and value array.
keyArray
in interface InternalMap
public InternalArray valueArray()
InternalMap
A key-value pair has the same index in the key array and value array.
valueArray
in interface InternalMap
Copyright © 2023–2024 The Apache Software Foundation. All rights reserved.