stream: clone stream before execution

This commit is contained in:
Asdine El Hrychy
2024-02-17 17:56:41 +04:00
parent bac26ce46a
commit 71146bcc9b
37 changed files with 464 additions and 13 deletions

View File

@@ -20,6 +20,13 @@ func Replace(tableName string) *ReplaceOperator {
return &ReplaceOperator{Name: tableName}
}
func (op *ReplaceOperator) Clone() stream.Operator {
return &ReplaceOperator{
BaseOperator: op.BaseOperator.Clone(),
Name: op.Name,
}
}
// Iterate implements the Operator interface.
func (op *ReplaceOperator) Iterate(in *environment.Environment, f func(out *environment.Environment) error) error {
var table *database.Table