Interface DictWriter
- All Superinterfaces:
ArrayWriter
,ColumnWriter
- All Known Implementing Classes:
DummyDictWriter
,ObjectDictWriter
Physically the writer is an array writer with special tuple writer as its element.
Its
ColumnWriter.type()
returns ARRAY
and ArrayWriter.entryType()
returns TUPLE
.
To know whether it is a Dict logically, one may use schema().isDict()
.- See Also:
-
Method Summary
Modifier and TypeMethodDescriptionkeyType()
Returns scalar type of the key field.Returns the writer associated with key field.Returns object type of the value field.Returns the writer associated with value field.Methods inherited from interface org.apache.drill.exec.vector.accessor.ArrayWriter
array, dict, entry, entryType, save, scalar, setNull, size, tuple, variant
Methods inherited from interface org.apache.drill.exec.vector.accessor.ColumnWriter
copy, isProjected, nullable, schema, setNull, setObject, type
-
Method Details
-
keyType
ValueType keyType()Returns scalar type of the key field.- Returns:
- type of the key
-
valueType
ObjectType valueType()Returns object type of the value field.- Returns:
- type of the value
-
keyWriter
ScalarWriter keyWriter()Returns the writer associated with key field.- Returns:
- key writer
-
valueWriter
ObjectWriter valueWriter()Returns the writer associated with value field.- Returns:
- value writer
-