Appendix: Nodes for Search¶

A Node is an object used to define search conditions in queries.

Overview¶

Nodes represent logical or comparison expressions used to build complex query filters.

There are two major types of nodes:

  • LogicalNode – Combines multiple conditions (AND / OR / NOT).

  • ComparisonNode – Compares field values or patterns.

All nodes inherit from QueryNode, which provides the base interface for evaluation and serialization.

Logical Nodes¶

Logical nodes are used to combine multiple conditions into composite expressions.

  • AndNode Evaluates to true only if all child nodes are true.

  • OrNode Evaluates to true if any child node is true.

  • NotNode Negates the result of the child node.

Comparison Nodes¶

Comparison nodes are used to compare field values with constants or patterns.

Equality
  • FieldEquals

  • FieldNotEquals

Relational (Greater/Less)
  • FieldGreaterThan

  • FieldGreaterThanOrEqual

  • FieldLessThan

  • FieldLessThanOrEqual

Membership
  • FieldIn

  • FieldNotIn

  • FieldContains

Pattern Matching
  • FieldMatchesRegex

  • FieldStartsWith

  • FieldEndsWith

Each node evaluates whether the specified field satisfies the corresponding condition.

For implementation details and examples, see Comparison Nodes.

API¶

  • Dart: [QueryNode]

  • Python: [LogicalNode]

  • Python: [ComparisonNode]

DeltaTraceDB Docs

Navigation

Contents:

  • Introduction
  • Installation
  • Query Operations
    • CloneableFile or Raw Data
    • Add items
    • Update or UpdateOne
    • Delete or DeleteOne
    • Search or SearchOne
    • GetAll
    • ConformToTemplate
    • RenameField
    • Count
    • Clear & ClearAdd
    • Remove Collection
    • Transaction Queries
    • Appendix: Nodes for Search
    • Appendix: Sort
    • Appendix: Query Metadata
  • DB Listeners
  • Server-Side Coding
  • Best Practices
  • Glossary
  • Python version API Reference
  • Notice

Related Topics

  • Documentation overview
    • Query Operations
      • Previous: Transaction Queries
      • Next: Comparison Nodes
©2025, Masahide Mori. | Powered by Sphinx 8.2.3 & Alabaster 1.0.0 | Page source