Interface AppendableRowsAndColumns
- All Superinterfaces:
RowsAndColumns
- All Known Implementing Classes:
AppendableMapOfColumns,ArrayListRowsAndColumns
A RowsAndColumns that supports appending columns. This interface is particularly useful because even if there is
some composition of code that works with RowsAndColumns, we would like to add the columns to a singular base object
instead of build up a complex object graph.
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.apache.druid.query.rowsandcols.RowsAndColumns
RowsAndColumns.RowsAndColumnsDeserializer, RowsAndColumns.RowsAndColumnsSerializer -
Method Summary
Methods inherited from interface org.apache.druid.query.rowsandcols.RowsAndColumns
as, findColumn, getColumnNames, numRows
-
Method Details
-
addColumn
Mutates the RowsAndColumns by appending the requested Column.- Parameters:
name- the name of the new columncolumn- the Column object representing the new column
-