mirror of
https://github.com/johnkerl/miller.git
synced 2026-01-23 02:14:13 +00:00
28 lines
664 B
Go
28 lines
664 B
Go
// ================================================================
|
|
// Helper data structure for the join verb
|
|
// ================================================================
|
|
|
|
package utils
|
|
|
|
import (
|
|
"container/list"
|
|
|
|
"github.com/johnkerl/miller/internal/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,
|
|
}
|
|
}
|