artemis.tools.filtercoltool¶
Module Contents¶
-
class
artemis.tools.filtercoltool.FilterColToolOptions¶
-
class
artemis.tools.filtercoltool.FilterColTool(name, **kwargs)¶ Bases:
artemis.core.tool.ToolBase-
initialize(self)¶
-
execute(self, record_batch)¶ Filter columns by column name
- Parameters
rb (arrow::RecordBatch (required)) – Input record batch.
columns (std::vector<std::string> (required)) – Keep only columns with these names.
invert (bool, default=false) – If true, changes meaning of columns: remove these columns and keep the others instead.
- Returns
arrow::RecordBatch
Record batch object stripped of specified columns.
-
finalize(self)¶
-