public class RowSetWriterImpl extends AbstractTupleWriter implements RowSetWriter
AbstractTupleWriter.TupleObjectWriter, AbstractTupleWriter.TupleWriterListenerTupleWriter.UndefinedColumnExceptionWriterEvents.ColumnWriterListener, WriterEvents.StatechildIndex, listener, logger, state, tupleSchema, vectorIndex, writers| Modifier | Constructor and Description |
|---|---|
protected |
RowSetWriterImpl(RowSet.ExtendableRowSet rowSet,
TupleMetadata schema,
org.apache.drill.exec.physical.rowSet.RowSetWriterImpl.WriterIndexImpl index,
List<AbstractObjectWriter> writers) |
| Modifier and Type | Method and Description |
|---|---|
RowSetWriter |
addRow(Object... values)
Write a row of values, given by Java objects.
|
RowSetWriter |
addSingleCol(Object value) |
RowSet.SingleRowSet |
done()
Finish writing and finalize the row set being
written.
|
boolean |
isFull()
Indicates if the current row position is valid for
writing.
|
int |
lastWriteIndex()
Return the last write position in the vector.
|
int |
rowIndex() |
void |
save()
Saves the current row and moves to the next row.
|
ColumnMetadata |
schema()
Returns the schema of the column associated with this writer.
|
addColumn, addColumn, addColumnWriter, array, array, bindIndex, bindIndex, bindListener, bindListener, column, column, copy, dict, dict, dump, endArrayValue, endWrite, isProjected, isProjected, listener, nullable, postRollover, preRollover, restartRow, rowStartIndex, saveRow, scalar, scalar, set, setNull, setObject, size, startRow, startWrite, tuple, tuple, tupleSchema, type, type, type, variant, variant, writeIndexclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitaddColumn, addColumn, array, array, column, column, dict, dict, isProjected, scalar, scalar, set, size, tuple, tuple, tupleSchema, type, type, variant, variantcopy, isProjected, nullable, setNull, setObject, typeprotected RowSetWriterImpl(RowSet.ExtendableRowSet rowSet, TupleMetadata schema, org.apache.drill.exec.physical.rowSet.RowSetWriterImpl.WriterIndexImpl index, List<AbstractObjectWriter> writers)
public RowSetWriter addRow(Object... values)
RowSetWriteraddRow in interface RowSetWritervalues - variable-length argument list of column valuespublic RowSetWriter addSingleCol(Object value)
addSingleCol in interface RowSetWriterpublic int rowIndex()
rowIndex in interface RowSetWriterpublic void save()
RowSetWritersave in interface RowSetWriterpublic boolean isFull()
RowSetWriterisFull in interface RowSetWriterpublic RowSet.SingleRowSet done()
RowSetWriterdone in interface RowSetWriterpublic int lastWriteIndex()
WriterPositionlastWriteIndex in interface WriterPositionlastWriteIndex in class AbstractTupleWriterpublic ColumnMetadata schema()
ColumnWriterschema in interface ColumnWriterCopyright © 2021 The Apache Software Foundation. All rights reserved.