pipeline

package
v0.0.0-...-492a895 Latest Latest
Warning

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

Go to latest
Published: Dec 26, 2019 License: MIT Imports: 6 Imported by: 7

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type TransmutePipeline

type TransmutePipeline struct {
	Parser   parser.QueryParser
	Compiler backend.Compiler
	Options  TransmutePipelineOptions
}

TransmutePipeline contains the information needed to execute a full compilation.

func NewPipeline

func NewPipeline(parser parser.QueryParser, compiler backend.Compiler, options TransmutePipelineOptions) TransmutePipeline

NewPipeline creates a new transmute pipeline.

func (TransmutePipeline) Execute

func (p TransmutePipeline) Execute(query string) (backend.BooleanQuery, error)

Execute takes a pipeline and a query and will fully lex, parse, and compile the query.

type TransmutePipelineOptions

type TransmutePipelineOptions struct {
	LexOptions              lexer.LexOptions
	FieldMapping            map[string][]string
	AddRedundantParenthesis bool
	RequiresLexing          bool
}

TransmutePipelineOptions contains additional optional components relating to the pipeline.

Jump to

Keyboard shortcuts

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