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
Constructors -
Method Summary
Modifier and TypeMethodDescriptionfinal voidIncrement the index for an array.final voidDecrement 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:ColumnWriterIndexIncrement 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:
nextElementin interfaceColumnWriterIndex- Overrides:
nextElementin classAbstractArrayWriter.ArrayElementWriterIndex
-
prevElement
public final void prevElement()Description copied from interface:ColumnWriterIndexDecrement 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:
prevElementin interfaceColumnWriterIndex- Overrides:
prevElementin classAbstractArrayWriter.ArrayElementWriterIndex
-