Class BaseTupleModel
java.lang.Object
org.apache.drill.exec.physical.resultSet.model.BaseTupleModel
- All Implemented Interfaces:
TupleModel
Base implementation for a tuple model which is common to the "single"
and "hyper" cases. Deals primarily with the structure of the model,
which is common between the two physical implementations.
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.apache.drill.exec.physical.resultSet.model.TupleModel
TupleModel.ColumnModel, TupleModel.RowSetModel
-
Field Summary
Modifier and TypeFieldDescriptionprotected final List<TupleModel.ColumnModel>
Columns within the tuple.protected final TupleMetadata
Descriptive schema associated with the columns above. -
Constructor Summary
-
Method Summary
-
Field Details
-
columns
Columns within the tuple. Columns may, themselves, be represented as tuples. -
schema
Descriptive schema associated with the columns above. Unlike aVectorContainer
, this abstraction keeps the schema in sync with vectors as columns are added.
-
-
Constructor Details
-
BaseTupleModel
public BaseTupleModel() -
BaseTupleModel
-
-
Method Details
-
schema
- Specified by:
schema
in interfaceTupleModel
-
size
public int size()- Specified by:
size
in interfaceTupleModel
-
column
- Specified by:
column
in interfaceTupleModel
-
column
- Specified by:
column
in interfaceTupleModel
-
addBaseColumn
Perform the work of keeping the list of columns and schema in-sync as columns are added. This is protected because derived classes must add logic to keep the new column in sync with the underlying container or map vector.- Parameters:
column
- column implementation to add
-