java.lang.Object
com.darkcollective.relix.ast.visitor.internal.PrettyPrinter
All Implemented Interfaces:
RelNodeVisitor<String>

public final class PrettyPrinter extends Object implements RelNodeVisitor<String>
Serialises a RelNode tree to a Unicode relational algebra string.

The output uses standard relational algebra symbols (π σ ρ ⋈ ⨝ ⟕ ⟖ ⟗ ⋉ ▷ × ∪ ⊎ − ∩ ÷ ∆ ∘ ∀ γ τ λ δ ω) and is designed to round-trip through the relix-parser module.

Predicate and operand formatting is delegated to PredicatePrettyPrinter and OperandPrettyPrinter respectively.

Instances are stateless and safe for concurrent use.

See Also: