Interface WriterPosition
- All Known Subinterfaces:
OffsetVectorWriter
,UnionShim
,WriterEvents
- All Known Implementing Classes:
AbstractArrayWriter
,AbstractArrayWriter.BaseArrayWriter
,AbstractFixedWidthWriter
,AbstractFixedWidthWriter.BaseFixedWidthWriter
,AbstractFixedWidthWriter.BaseIntWriter
,AbstractScalarWriterImpl
,AbstractTupleWriter
,BaseScalarWriter
,BaseVarWidthWriter
,BitColumnWriter
,ColumnAccessors.BigIntColumnWriter
,ColumnAccessors.DateColumnWriter
,ColumnAccessors.Decimal18ColumnWriter
,ColumnAccessors.Decimal28SparseColumnWriter
,ColumnAccessors.Decimal38SparseColumnWriter
,ColumnAccessors.Decimal9ColumnWriter
,ColumnAccessors.Float4ColumnWriter
,ColumnAccessors.Float8ColumnWriter
,ColumnAccessors.IntColumnWriter
,ColumnAccessors.IntervalColumnWriter
,ColumnAccessors.IntervalDayColumnWriter
,ColumnAccessors.IntervalYearColumnWriter
,ColumnAccessors.SmallIntColumnWriter
,ColumnAccessors.TimeColumnWriter
,ColumnAccessors.TimeStampColumnWriter
,ColumnAccessors.TinyIntColumnWriter
,ColumnAccessors.UInt1ColumnWriter
,ColumnAccessors.UInt2ColumnWriter
,ColumnAccessors.UInt4ColumnWriter
,ColumnAccessors.UInt8ColumnWriter
,ColumnAccessors.Var16CharColumnWriter
,ColumnAccessors.VarBinaryColumnWriter
,ColumnAccessors.VarCharColumnWriter
,ColumnAccessors.VarDecimalColumnWriter
,DictEntryWriter
,DummyArrayWriter
,DummyArrayWriter.DummyOffsetVectorWriter
,DummyDictWriter
,DummyScalarWriter
,EmptyListShim
,ListWriterImpl
,MapWriter
,MapWriter.ArrayMapWriter
,MapWriter.DummyArrayMapWriter
,MapWriter.DummyMapWriter
,MapWriter.SingleMapWriter
,NullableScalarWriter
,ObjectArrayWriter
,ObjectDictWriter
,OffsetVectorWriterImpl
,RepeatedListWriter
,RowSetLoaderImpl
,RowSetWriterImpl
,ScalarArrayWriter
,SimpleListShim
,UnionShim.AbstractUnionShim
,UnionVectorShim
,UnionWriterImpl
public interface WriterPosition
Position information about a writer used during vector overflow.
-
Method Summary
Modifier and TypeMethodDescriptionint
Return the last write position in the vector.int
Position within the vector of the first value for the current row.int
Current write index for the writer.
-
Method Details
-
rowStartIndex
int rowStartIndex()Position within the vector of the first value for the current row. Note that this is always the first value for the row, even for a writer deeply nested within a hierarchy of arrays. (The first position for the current array is not exposed in this API.)- Returns:
- the vector offset of the first value for the current row
-
lastWriteIndex
int lastWriteIndex()Return the last write position in the vector. This may be the same as the writer index position (if the vector was written at that point), or an earlier point. In either case, this value points to the last valid value in the vector.- Returns:
- index of the last valid value in the vector
-
writeIndex
int writeIndex()Current write index for the writer. This is the global array location for arrays, same as the row index for top-level columns.- Returns:
- current write index
-