mirror of
https://github.com/johnkerl/miller.git
synced 2026-01-23 10:15:36 +00:00
* Update package version * Update makefile targets * Update readme packages * Remaining old packages via rg/sd
28 lines
658 B
Go
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,
|
|
}
|
|
}
|