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
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.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoiddump(HierarchicalFormatter format) events()The internal state behind this writer.scalar()writer()Generic version of the above, for dynamic handling of writers.
-
Constructor Details
-
ScalarObjectWriter
-
-
Method Details
-
scalar
- Specified by:
scalarin interfaceObjectWriter- Overrides:
scalarin classAbstractObjectWriter
-
writer
Description copied from interface:ObjectWriterGeneric version of the above, for dynamic handling of writers.- Returns:
- the generic form of the column writer
-
events
Description copied from interface:ObjectWriterThe internal state behind this writer. To be used only by the implementation, not by the client.- Specified by:
eventsin interfaceObjectWriter- Specified by:
eventsin classAbstractObjectWriter
-
dump
- Specified by:
dumpin classAbstractObjectWriter
-