miller/pkg/transformers/utils/join_bucket.go
Adam Lesperance 085e831668
The package version must match the major tag version (#1654)
* Update package version

* Update makefile targets

* Update readme packages

* Remaining old packages via rg/sd
2024-09-20 12:10:11 -04:00

28 lines
658 B
Go

// ================================================================
// Helper data structure for the join verb
// ================================================================
package utils
import (
"container/list"
"github.com/johnkerl/miller/v6/pkg/mlrval"
)
// ----------------------------------------------------------------
type JoinBucket struct {
leftFieldValues []*mlrval.Mlrval
RecordsAndContexts *list.List
WasPaired bool
}
func NewJoinBucket(
leftFieldValues []*mlrval.Mlrval,
) *JoinBucket {
return &JoinBucket{
leftFieldValues: leftFieldValues,
RecordsAndContexts: list.New(),
WasPaired: false,
}
}