fill

package
v1.0.2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 14, 2023 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	EmptyDoc                       = bsonx.Empty()
	DefaultFillOptions FillOptions = FillConstructibleBson{}.of(EmptyDoc)
	PartitionByFields              = func(o FillConstructibleBson, fields ...string) FillOptions {
		return o.PartitionByFields(fields...)
	}
)

Functions

This section is empty.

Types

type FillConstructibleBson

type FillConstructibleBson struct {
	// contains filtered or unexported fields
}

func NewFillConstructibleBson

func NewFillConstructibleBson(base bsonx.Bson, appended *bsonx.Document) FillConstructibleBson

func (FillConstructibleBson) BsonDocument

func (a FillConstructibleBson) BsonDocument() *bsonx.BsonDocument

func (FillConstructibleBson) Document

func (a FillConstructibleBson) Document() bson.D

func (FillConstructibleBson) Option

func (a FillConstructibleBson) Option(name string, value any) FillOptions

func (FillConstructibleBson) PartitionBy

func (a FillConstructibleBson) PartitionBy(expression expression.AnyExpression) FillOptions

func (FillConstructibleBson) PartitionByFields

func (a FillConstructibleBson) PartitionByFields(fields ...string) FillOptions

func (FillConstructibleBson) SortBy

func (a FillConstructibleBson) SortBy(sortBy bsonx.Bson) FillOptions

type FillConstructibleBsonElement

type FillConstructibleBsonElement struct {
	// contains filtered or unexported fields
}

func NewFillConstructibleBsonElement

func NewFillConstructibleBsonElement(name string, value bsonx.Bson, appendedElementValue bsonx.Bson) FillConstructibleBsonElement

func (FillConstructibleBsonElement) BsonDocument

func (FillConstructibleBsonElement) Document

func (a FillConstructibleBsonElement) Document() bson.D

type FillOptions

type FillOptions interface {
	bsonx.Bson
	PartitionBy(expression expression.AnyExpression) FillOptions
	PartitionByFields(fields ...string) FillOptions
	SortBy(sortBy bsonx.Bson) FillOptions
	Option(name string, value any) FillOptions
}

type FillOutputField

type FillOutputField interface {
	bsonx.Bson
}

func Of

func Of(fill bsonx.Bson) FillOutputField

type LinearFillOutputField

type LinearFillOutputField interface {
	FillOutputField
}

func Linear

func Linear(field string) LinearFillOutputField

type LocfFillOutputField

type LocfFillOutputField interface {
	FillOutputField
}

func Locf

func Locf(field string) LocfFillOutputField

type ValueFillOutputField

type ValueFillOutputField interface {
	FillOutputField
}

func Value

func Value(field string, expression expression.AnyExpression) ValueFillOutputField

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL