Class DictVector

All Implemented Interfaces:
Closeable, AutoCloseable, Iterable<ValueVector>, ContainerVectorLike, RepeatedValueVector, ValueVector

public final class DictVector extends AbstractRepeatedMapVector
A ValueVector holding key-value pairs.

This vector is essentially a RepeatedMapVector but with constraints: it may have 2 children only, named FIELD_KEY_NAME and FIELD_VALUE_NAME. The FIELD_KEY_NAME can be of primitive type only and its values should not be null, while the other, FIELD_VALUE_NAME, field can be either of primitive or complex type. Value field can hold null values.

This vector has it's own FieldReader and FieldWriter to ensure data is read and written correctly. In addition, the reader is responsible for getting a value for a given key.

Additionally, Object representation is changed in DictVector.Accessor.getObject(int) to represent it as JsonStringHashMap with appropriate key and value types.

(The structure corresponds to Java's notion of Map).

See Also: