simple

package
v0.6.1 Latest Latest
Warning

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

Go to latest
Published: Nov 6, 2013 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CanFastCountBucket added in v0.6.0

func CanFastCountBucket(resultExprList ast.ResultExpressionList) bool

func CanFastCountIndex added in v0.6.0

func CanFastCountIndex(index catalog.CountIndex, bucket string, resultExprList ast.ResultExpressionList) ast.Expression

func CanIUseThisIndexForThisProjectionNoWhereNoGroupClause added in v0.6.0

func CanIUseThisIndexForThisProjectionNoWhereNoGroupClause(index catalog.RangeIndex, resultExprList ast.ResultExpressionList, bucket string) (bool, plan.ScanRanges, ast.Expression, error)

func CanIUseThisIndexForThisWhereClause

func CanIUseThisIndexForThisWhereClause(index catalog.RangeIndex, where ast.Expression, bucket string) (bool, plan.ScanRanges, ast.Expression, error)

func DoesIndexCoverStatement added in v0.6.0

func DoesIndexCoverStatement(index catalog.RangeIndex, stmt *ast.SelectStatement) bool

func IndexKeyInFormalNotation

func IndexKeyInFormalNotation(key catalog.IndexKey, bucket string) (catalog.IndexKey, error)

func MergeRanges added in v0.6.0

func MergeRanges(origr plan.ScanRanges, newr *plan.ScanRange) plan.ScanRanges

func WhereClauseFindById added in v0.6.0

func WhereClauseFindById(where ast.Expression) []string

Types

type ExpressionSargable

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

determines if the given expression is sargable with respect to a given index expression for example is abv > 7 sargable with respect to an index on abv? yes

func NewExpressionSargable

func NewExpressionSargable(indexExpression ast.Expression) *ExpressionSargable

func (*ExpressionSargable) IsSargable

func (this *ExpressionSargable) IsSargable() bool

func (*ExpressionSargable) ScanRanges

func (this *ExpressionSargable) ScanRanges() plan.ScanRanges

func (*ExpressionSargable) Visit

type SimplePlanner

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

func NewSimplePlanner

func NewSimplePlanner(site catalog.Site, defaultPool string) *SimplePlanner

func (*SimplePlanner) Plan

Jump to

Keyboard shortcuts

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