MCPcopy
hub / github.com/pathwaycom/pathway / _forget

Method _forget

python/pathway/internals/table.py:761–777  ·  view source on GitHub ↗
(
        self,
        threshold_column: expr.ColumnExpression,
        time_column: expr.ColumnExpression,
        mark_forgetting_records: bool,
        instance_column: expr.ColumnExpression | None = None,
    )

Source from the content-addressed store, hash-verified

759 @check_arg_types
760 @contextualized_operator
761 def _forget(
762 self,
763 threshold_column: expr.ColumnExpression,
764 time_column: expr.ColumnExpression,
765 mark_forgetting_records: bool,
766 instance_column: expr.ColumnExpression | None = None,
767 ) -> Table[TSchema]:
768 if instance_column is None:
769 instance_column = expr.ColumnConstExpression(None)
770 context = clmn.ForgetContext(
771 self._id_column,
772 self._eval(threshold_column),
773 self._eval(time_column),
774 self._eval(instance_column),
775 mark_forgetting_records,
776 )
777 return self._table_with_context(context)
778
779 @trace_user_frame
780 @desugar

Callers 9

forgetMethod · 0.95
apply_temporal_behaviorFunction · 0.80
_applyMethod · 0.80
logicFunction · 0.80
wait_resultFunction · 0.80
test_forget_instanceFunction · 0.80
test_forget_no_instanceFunction · 0.80

Calls 2

_evalMethod · 0.95
_table_with_contextMethod · 0.95

Tested by 6

logicFunction · 0.64
wait_resultFunction · 0.64
test_forget_instanceFunction · 0.64
test_forget_no_instanceFunction · 0.64