Class AbstractFixedWidthWriter.BaseIntWriter
java.lang.Object
org.apache.drill.exec.vector.accessor.writer.AbstractScalarWriter
org.apache.drill.exec.vector.accessor.writer.AbstractScalarWriterImpl
org.apache.drill.exec.vector.accessor.writer.BaseScalarWriter
org.apache.drill.exec.vector.accessor.writer.AbstractFixedWidthWriter
org.apache.drill.exec.vector.accessor.writer.AbstractFixedWidthWriter.BaseFixedWidthWriter
org.apache.drill.exec.vector.accessor.writer.AbstractFixedWidthWriter.BaseIntWriter
- All Implemented Interfaces:
ColumnWriter
,ScalarWriter
,ValueWriter
,WriterEvents
,WriterPosition
- Direct Known Subclasses:
ColumnAccessors.IntColumnWriter
,ColumnAccessors.SmallIntColumnWriter
,ColumnAccessors.TinyIntColumnWriter
,ColumnAccessors.UInt1ColumnWriter
,ColumnAccessors.UInt2ColumnWriter
- Enclosing class:
- AbstractFixedWidthWriter
public abstract static class AbstractFixedWidthWriter.BaseIntWriter
extends AbstractFixedWidthWriter.BaseFixedWidthWriter
Base class for writers that use the Java int type as their native
type. Handles common implicit conversions from other types to int.
-
Nested Class Summary
Nested classes/interfaces inherited from class org.apache.drill.exec.vector.accessor.writer.AbstractFixedWidthWriter
AbstractFixedWidthWriter.BaseFixedWidthWriter, AbstractFixedWidthWriter.BaseIntWriter
Nested classes/interfaces inherited from class org.apache.drill.exec.vector.accessor.writer.AbstractScalarWriterImpl
AbstractScalarWriterImpl.ScalarObjectWriter
Nested classes/interfaces inherited from interface org.apache.drill.exec.vector.accessor.writer.WriterEvents
WriterEvents.ColumnWriterListener, WriterEvents.State
-
Field Summary
Fields inherited from class org.apache.drill.exec.vector.accessor.writer.AbstractFixedWidthWriter
lastWriteIndex
Fields inherited from class org.apache.drill.exec.vector.accessor.writer.BaseScalarWriter
capacity, drillBuf, emptyValue, listener, MIN_BUFFER_SIZE
Fields inherited from class org.apache.drill.exec.vector.accessor.writer.AbstractScalarWriterImpl
schema, vectorIndex
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionfinal void
setBoolean
(boolean value) final void
setDecimal
(BigDecimal value) final void
setDouble
(double value) final void
setFloat
(float value) final void
setLong
(long value) final void
Write value to a vector as a Java object of the "native" type for the column.Methods inherited from class org.apache.drill.exec.vector.accessor.writer.AbstractFixedWidthWriter.BaseFixedWidthWriter
fillEmpties, prepareWrite, prepareWrite
Methods inherited from class org.apache.drill.exec.vector.accessor.writer.AbstractFixedWidthWriter
dump, endWrite, lastWriteIndex, mandatoryResize, postRollover, preRollover, resize, restartRow, setBuffer, setLastWriteIndex, setValueCount, skipNulls, startWrite, width
Methods inherited from class org.apache.drill.exec.vector.accessor.writer.BaseScalarWriter
appendBytes, bindListener, bindSchema, canExpand, nullable, overflowed, realloc, setBytes, setDate, setInt, setNull, setPeriod, setString, setTime, setTimestamp
Methods inherited from class org.apache.drill.exec.vector.accessor.writer.AbstractScalarWriterImpl
bindIndex, endArrayValue, isProjected, rowStartIndex, saveRow, schema, startRow, type, vector, writeIndex
Methods inherited from class org.apache.drill.exec.vector.accessor.writer.AbstractScalarWriter
conversionError, extendedType, setObject, toString
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
Methods inherited from interface org.apache.drill.exec.vector.accessor.ColumnWriter
copy
Methods inherited from interface org.apache.drill.exec.vector.accessor.ScalarWriter
setDefaultValue, valueType
-
Constructor Details
-
BaseIntWriter
public BaseIntWriter()
-
-
Method Details
-
setBoolean
public final void setBoolean(boolean value) - Specified by:
setBoolean
in interfaceValueWriter
- Overrides:
setBoolean
in classBaseScalarWriter
-
setLong
public final void setLong(long value) - Specified by:
setLong
in interfaceValueWriter
- Overrides:
setLong
in classBaseScalarWriter
-
setFloat
public final void setFloat(float value) - Specified by:
setFloat
in interfaceValueWriter
- Overrides:
setFloat
in classBaseScalarWriter
-
setDouble
public final void setDouble(double value) - Specified by:
setDouble
in interfaceValueWriter
- Overrides:
setDouble
in classBaseScalarWriter
-
setDecimal
- Specified by:
setDecimal
in interfaceValueWriter
- Overrides:
setDecimal
in classBaseScalarWriter
-
setValue
Description copied from interface:ValueWriter
Write value to a vector as a Java object of the "native" type for the column. This form is available only on scalar writers. The object must be of the form for the primary write method above.Primarily to be used when the code already knows the object type.
- Parameters:
value
- a value that matches the primary setter above, or null to set the column to null- See Also:
-