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
-
Method Summary
Modifier and TypeMethodDescriptionvoid
dump
(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:
scalar
in interfaceObjectWriter
- Overrides:
scalar
in classAbstractObjectWriter
-
writer
Description copied from interface:ObjectWriter
Generic version of the above, for dynamic handling of writers.- Returns:
- the generic form of the column writer
-
events
Description copied from interface:ObjectWriter
The internal state behind this writer. To be used only by the implementation, not by the client.- Specified by:
events
in interfaceObjectWriter
- Specified by:
events
in classAbstractObjectWriter
-
dump
- Specified by:
dump
in classAbstractObjectWriter
-