Class ScalarArrayWriter.ScalarElementWriterIndex
java.lang.Object
org.apache.drill.exec.vector.accessor.writer.AbstractArrayWriter.ArrayElementWriterIndex
org.apache.drill.exec.vector.accessor.writer.ScalarArrayWriter.ScalarElementWriterIndex
- All Implemented Interfaces:
ColumnWriterIndex
- Enclosing class:
- ScalarArrayWriter
public class ScalarArrayWriter.ScalarElementWriterIndex
extends AbstractArrayWriter.ArrayElementWriterIndex
For scalar arrays, incrementing the element index and
committing the current value is done automatically since
there is exactly one value per array element.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionfinal void
Increment the index for an array.final void
Decrement the index for an array.Methods inherited from class org.apache.drill.exec.vector.accessor.writer.AbstractArrayWriter.ArrayElementWriterIndex
arraySize, next, outerIndex, prev, reset, rollover, rowStartIndex, toString, valueStartOffset, vectorIndex
-
Constructor Details
-
ScalarElementWriterIndex
public ScalarElementWriterIndex()
-
-
Method Details
-
nextElement
public final void nextElement()Description copied from interface:ColumnWriterIndex
Increment the index for an array. For arrays, writing (or saving) one value automatically moves to the next value. Ignored for non-element indexes.- Specified by:
nextElement
in interfaceColumnWriterIndex
- Overrides:
nextElement
in classAbstractArrayWriter.ArrayElementWriterIndex
-
prevElement
public final void prevElement()Description copied from interface:ColumnWriterIndex
Decrement the index for an array. Used exclusively for appending bytes to a VarChar, Var16Char or VarBytes column. Assumed to be followed by another call to nextElement().- Specified by:
prevElement
in interfaceColumnWriterIndex
- Overrides:
prevElement
in classAbstractArrayWriter.ArrayElementWriterIndex
-