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

Method _buffer

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

Source from the content-addressed store, hash-verified

968 @check_arg_types
969 @contextualized_operator
970 def _buffer(
971 self,
972 threshold_column: expr.ColumnExpression,
973 time_column: expr.ColumnExpression,
974 instance_column: expr.ColumnExpression | None = None,
975 ) -> Table:
976 if instance_column is None:
977 instance_column = expr.ColumnConstExpression(None)
978 context = clmn.BufferContext(
979 self._id_column,
980 self._eval(threshold_column),
981 self._eval(time_column),
982 self._eval(instance_column),
983 )
984 return self._table_with_context(context)
985
986 @contextualized_operator
987 @check_arg_types

Callers 8

bufferMethod · 0.95
apply_temporal_behaviorFunction · 0.80
_applyMethod · 0.80
wait_resultFunction · 0.80
test_bufferFunction · 0.80
test_buffer_2Function · 0.80
test_buffer_instanceFunction · 0.80
test_buffer_no_instanceFunction · 0.80

Calls 2

_evalMethod · 0.95
_table_with_contextMethod · 0.95

Tested by 5

wait_resultFunction · 0.64
test_bufferFunction · 0.64
test_buffer_2Function · 0.64
test_buffer_instanceFunction · 0.64
test_buffer_no_instanceFunction · 0.64