FqlTemplateTree

Namespace: FoundationDB.Client · class

Tree that can match a key against a collection of FqlTemplateExpression>

Methods

CreateBuilder

static Builder CreateBuilder()

Creates a new Builder that can compile a set of FqlTemplateExpression into a FqlTemplateTree

GetTemplates

IEnumerable<FqlTemplateExpression> GetTemplates()

Enumerates the templates used by this tree

TryMatch

bool TryMatch(SpanTuple tuple, out FqlTemplateExpression template)

Finds the expression that matches the given tuple

  • tuple — Tuple to match against the tree
  • template — Receives the expression that was matched

Returns: true if an expression matched the tuple; otherwise, false