public final class VectorUtils
extends Object
| Modifier and Type | Method and Description |
|---|---|
static <T> java.util.List<T> |
toJavaList(ArrayValue arrayValue)
Converts an
ArrayValue to a Java list. |
static <K,V> java.util.Map<K,V> |
toJavaMap(MapValue mapValue)
Converts a
MapValue to a Java map. |
public static <T> java.util.List<T> toJavaList(ArrayValue arrayValue)
ArrayValue to a Java list. Any nested complex types are also converted
to their Java type.public static <K,V> java.util.Map<K,V> toJavaMap(MapValue mapValue)
MapValue to a Java map. Any nested complex types are also converted
to their Java type.
Please note not all key types override hashCode/equals. Be careful when using with keys of:
- Struct type at any nesting level (i.e. ArrayType(StructType) does not)
- Binary type