mirror of
https://github.com/johnkerl/miller.git
synced 2026-01-23 02:14:13 +00:00
27 lines
708 B
Go
27 lines
708 B
Go
// ================================================================
|
|
// Helper data structure for the join verb
|
|
// ================================================================
|
|
|
|
package utils
|
|
|
|
import (
|
|
"github.com/johnkerl/miller/v6/pkg/mlrval"
|
|
"github.com/johnkerl/miller/v6/pkg/types"
|
|
)
|
|
|
|
// ----------------------------------------------------------------
|
|
type JoinBucket struct {
|
|
leftFieldValues []*mlrval.Mlrval
|
|
RecordsAndContexts *types.List[*types.RecordAndContext]
|
|
WasPaired bool
|
|
}
|
|
|
|
func NewJoinBucket(
|
|
leftFieldValues []*mlrval.Mlrval,
|
|
) *JoinBucket {
|
|
return &JoinBucket{
|
|
leftFieldValues: leftFieldValues,
|
|
RecordsAndContexts: list.New(),
|
|
WasPaired: false,
|
|
}
|
|
}
|