Class AbstractScalarWriterImpl.ScalarObjectWriter

java.lang.Object
org.apache.drill.exec.vector.accessor.writer.AbstractObjectWriter
org.apache.drill.exec.vector.accessor.writer.AbstractScalarWriterImpl.ScalarObjectWriter
All Implemented Interfaces:
ColumnWriter, ObjectWriter
Enclosing class:
AbstractScalarWriterImpl

public static class AbstractScalarWriterImpl.ScalarObjectWriter extends AbstractObjectWriter
Wraps a scalar writer and its event handler to provide a uniform JSON-like interface for all writer types.

The client sees only the scalar writer API. But, internals need visibility into a rather complex set of events to orchestrate vector events: mostly sent to the writer, but some times sent from the writer, such as vector overflow. Separating the two concepts makes it easier to add type-conversion shims on top of the actual vector writer.