public static interface UnionWriterImpl.UnionShim extends WriterEvents
WriterEvents.ColumnWriterListener, WriterEvents.State
Modifier and Type | Method and Description |
---|---|
void |
addMember(AbstractObjectWriter colWriter) |
AbstractObjectWriter |
addMember(ColumnMetadata colSchema) |
AbstractObjectWriter |
addMember(TypeProtos.MinorType type) |
void |
bindWriter(UnionWriterImpl writer) |
boolean |
hasType(TypeProtos.MinorType type) |
int |
lastWriteIndex()
Return the last write position in the vector.
|
ObjectWriter |
member(TypeProtos.MinorType type)
Return an existing writer for the given type, or create a new one
if needed.
|
int |
rowStartIndex()
Position within the vector of the first value for the current row.
|
void |
setNull() |
void |
setType(TypeProtos.MinorType type) |
bindIndex, bindListener, dump, endArrayValue, endWrite, postRollover, preRollover, restartRow, saveRow, startRow, startWrite
writeIndex
void bindWriter(UnionWriterImpl writer)
void setNull()
boolean hasType(TypeProtos.MinorType type)
ObjectWriter member(TypeProtos.MinorType type)
type
- desired variant typevoid setType(TypeProtos.MinorType type)
int lastWriteIndex()
WriterPosition
lastWriteIndex
in interface WriterPosition
int rowStartIndex()
WriterPosition
rowStartIndex
in interface WriterPosition
AbstractObjectWriter addMember(ColumnMetadata colSchema)
AbstractObjectWriter addMember(TypeProtos.MinorType type)
void addMember(AbstractObjectWriter colWriter)
Copyright © 1970 The Apache Software Foundation. All rights reserved.