package
0.0.0-20250403163419-0d37c2ab99ca
Repository: https://github.com/couchbase/n1fty.git
Documentation: pkg.go.dev

# Packages

No description provided by the author

# Functions

BleveToCondFlexIndexes translates a bleve index into CondFlexIndexes.
Recursively initializes a FlexIndex from a given bleve document mapping.
CFTArray() looks for range comparisons that tells us that a field is an array.
CFTNumber() looks for range comparisons that tells us that a field is a number.
CFTString() looks for range comparisons that tells us that a field is a string.
No description provided by the author
Checks whether an expr, such as `emp`.`locations`.`work`.`address`.`city`, is a nested fields reference against the identifiers (e.g., "emp"), and also has a given prefix (e.g., ["locations", "work"]), and if so returns the remaining field path suffix (e.g., ["address", "city"]).
FlexBuildToBleveQuery translates a flex build tree into a bleve query tree in map[string]interface{} representation.
No description provided by the author
LearnConjunctFieldTypes examines the conjunct exprs (e.g., children of an "AND" expression) to discover field-type information.
Returns a CondFunc that represents checking a field for value equality.
Returns a CondFunc that represents checking a field is not equal to any of the given vals.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author

# Variables

This map contains types that Bleve supports for N1QL queries.
This map translates Bleve's supported types to types as identified by N1QL.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author

# Structs

Associates a condition check to a FlexIndex, used for type mappings.
ConjunctFieldTypes represents state as a conjunct expression is examined and processed for field-type information.
No description provided by the author
FlexBuild represents hierarchical state that's gathered during Sargable() recursion, which can be used to formulate an index scan.
FlexIndex represents the subset of a flexible index definition that's needed for sargable processing.
No description provided by the author
No description provided by the author
No description provided by the author
SupportedExprCmpFieldConstant implements the SupportedExpr interface and represents a comparison of a field to a constant value with a given type.
A supported expression that never matches, useful for debugging.
A supported expression that always returns not-sargable, useful to mark unknown exprs as not-sargable rather than as filterable.

# Interfaces

Allows apps to declare supported expressions to FlexSargable().

# Type aliases

A slice of conditional flex indexes.
Returns true when the expressions match the condition check, also returns an array of the requested "types" (obtained from query).
No description provided by the author
No description provided by the author
No description provided by the author
Used to track field-type learnings, FieldTypes is a copy-on-write, left-side-pushed stack of immutable dictionaries.
No description provided by the author