java.lang.Object
java.lang.Enum<TokenType>
com.darkcollective.relix.parser.TokenType
All Implemented Interfaces:
Serializable, Comparable<TokenType>, Constable

public enum TokenType extends Enum<TokenType>
Syntactic categories recognised by the Lexer.

Constants are grouped by semantic role:

  • Literals and identifiers — IDENTIFIER, STRING, NUMBER, TRUE, FALSE, and the nullary truth-relation literals UNIT (alias DEE) and EMPTY (alias DUM).
  • Unary RA operators — PROJECT (π), SELECT (σ), RENAME (ρ), AGGREGATION (γ), SORT (τ), LIMIT (λ), DISTINCT (δ).
  • Kleene postfix glyphs — KLEENE_PLUS (⁺) and the contextual-MULTIPLY (*) together with OVER implement the postfix closure syntax R⁺ OVER (from, to) / R* OVER (from, to), producing the same AST as the prefix CLOSURE / RCLOSURE keywords.
  • Sort direction — ASC, DESC.
  • Binary RA operators — joins (natural, theta, outer, semi, anti), set operations (union, union-all, difference, intersection, division), and Cartesian product.
  • Logical operators — AND (∧), OR (∨), NOT (¬).
  • Aggregate functions — SUM, AVG, COUNT, MIN, MAX.
  • Comparison operators — EQUAL (=), NOT_EQUAL (≠), LESS (<), LESS_EQUAL (≤), GREATER (>), GREATER_EQUAL (≥), NULL (⊥).
  • Arithmetic operators — PLUS, MINUS, MULTIPLY, DIVIDE.
  • Punctuation — LPAREN, RPAREN, COMMA, DOT, ARROW (→), UNDIRECTED_EDGE (↔), LBRACE, RBRACE.
  • Set membership — ELEMENT_OF (∈), NOT_ELEMENT_OF (∉).
  • Sentinel — EOF.
  • Enum Constant Details

    • IDENTIFIER

      public static final TokenType IDENTIFIER
    • STRING

      public static final TokenType STRING
    • NUMBER

      public static final TokenType NUMBER
    • TRUE

      public static final TokenType TRUE
    • FALSE

      public static final TokenType FALSE
    • UNIT

      public static final TokenType UNIT
    • EMPTY

      public static final TokenType EMPTY
    • DATE

      public static final TokenType DATE
    • TIME

      public static final TokenType TIME
    • TIMESTAMP

      public static final TokenType TIMESTAMP
    • DURATION

      public static final TokenType DURATION
    • PROJECT

      public static final TokenType PROJECT
    • SELECT

      public static final TokenType SELECT
    • RENAME

      public static final TokenType RENAME
    • AGGREGATION

      public static final TokenType AGGREGATION
    • SORT

      public static final TokenType SORT
    • LIMIT

      public static final TokenType LIMIT
    • DISTINCT

      public static final TokenType DISTINCT
    • UNNEST

      public static final TokenType UNNEST
    • CLOSURE

      public static final TokenType CLOSURE
    • RCLOSURE

      public static final TokenType RCLOSURE
    • CLUSTER

      public static final TokenType CLUSTER
    • AS

      public static final TokenType AS
    • PATH

      public static final TokenType PATH
    • HOPS

      public static final TokenType HOPS
    • FIX

      public static final TokenType FIX
    • ITERATE

      public static final TokenType ITERATE
    • KLEENE_PLUS

      public static final TokenType KLEENE_PLUS
    • OVER

      public static final TokenType OVER
    • ASC

      public static final TokenType ASC
    • DESC

      public static final TokenType DESC
    • NATURAL_JOIN

      public static final TokenType NATURAL_JOIN
    • THETA_JOIN

      public static final TokenType THETA_JOIN
    • LEFT_OUTER_JOIN

      public static final TokenType LEFT_OUTER_JOIN
    • RIGHT_OUTER_JOIN

      public static final TokenType RIGHT_OUTER_JOIN
    • FULL_OUTER_JOIN

      public static final TokenType FULL_OUTER_JOIN
    • SEMI_JOIN

      public static final TokenType SEMI_JOIN
    • ANTI_JOIN

      public static final TokenType ANTI_JOIN
    • UNIVERSAL_SEMI_JOIN

      public static final TokenType UNIVERSAL_SEMI_JOIN
    • ASOF_JOIN

      public static final TokenType ASOF_JOIN
    • IJOIN

      public static final TokenType IJOIN
    • WITHIN

      public static final TokenType WITHIN
    • TIES

      public static final TokenType TIES
    • PRODUCT

      public static final TokenType PRODUCT
    • UNION

      public static final TokenType UNION
    • UNION_ALL

      public static final TokenType UNION_ALL
    • OUTER_UNION

      public static final TokenType OUTER_UNION
    • DIFFERENCE

      public static final TokenType DIFFERENCE
    • INTERSECTION

      public static final TokenType INTERSECTION
    • DIVISION

      public static final TokenType DIVISION
    • SYMMETRIC_DIFFERENCE

      public static final TokenType SYMMETRIC_DIFFERENCE
    • COMPOSITION

      public static final TokenType COMPOSITION
    • FORALL

      public static final TokenType FORALL
    • SAMPLE

      public static final TokenType SAMPLE
    • SEED

      public static final TokenType SEED
    • SOLVE

      public static final TokenType SOLVE
    • OPTIMIZE

      public static final TokenType OPTIMIZE
    • ALLOCATE

      public static final TokenType ALLOCATE
    • MAXIMIZE

      public static final TokenType MAXIMIZE
    • MINIMIZE

      public static final TokenType MINIMIZE
    • SUBJECT

      public static final TokenType SUBJECT
    • TO

      public static final TokenType TO
    • TOP

      public static final TokenType TOP
    • PER

      public static final TokenType PER
    • ROWS

      public static final TokenType ROWS
    • WITH

      public static final TokenType WITH
    • ORDINALITY

      public static final TokenType ORDINALITY
    • COVER

      public static final TokenType COVER
    • EXACT

      public static final TokenType EXACT
    • DOWNSAMPLE

      public static final TokenType DOWNSAMPLE
    • BY

      public static final TokenType BY
    • USING

      public static final TokenType USING
    • FOR

      public static final TokenType FOR
    • LATERAL

      public static final TokenType LATERAL
    • ROLLING

      public static final TokenType ROLLING
    • WINDOW

      public static final TokenType WINDOW
    • SESSIONIZE

      public static final TokenType SESSIONIZE
    • GAP

      public static final TokenType GAP
    • TRACE

      public static final TokenType TRACE
    • VIA

      public static final TokenType VIA
    • PIVOT

      public static final TokenType PIVOT
    • UNPIVOT

      public static final TokenType UNPIVOT
    • TREE

      public static final TokenType TREE
    • ORDER

      public static final TokenType ORDER
    • WHY

      public static final TokenType WHY
    • AND

      public static final TokenType AND
    • OR

      public static final TokenType OR
    • NOT

      public static final TokenType NOT
    • SUM

      public static final TokenType SUM
    • AVG

      public static final TokenType AVG
    • COUNT

      public static final TokenType COUNT
    • MIN

      public static final TokenType MIN
    • MAX

      public static final TokenType MAX
    • COLLECT

      public static final TokenType COLLECT
    • ARGMAX

      public static final TokenType ARGMAX
    • ARGMIN

      public static final TokenType ARGMIN
    • EQUAL

      public static final TokenType EQUAL
    • NOT_EQUAL

      public static final TokenType NOT_EQUAL
    • LESS

      public static final TokenType LESS
    • LESS_EQUAL

      public static final TokenType LESS_EQUAL
    • GREATER

      public static final TokenType GREATER
    • GREATER_EQUAL

      public static final TokenType GREATER_EQUAL
    • NULL

      public static final TokenType NULL
    • IS

      public static final TokenType IS
    • LIKE

      public static final TokenType LIKE
    • PLUS

      public static final TokenType PLUS
    • MINUS

      public static final TokenType MINUS
    • MULTIPLY

      public static final TokenType MULTIPLY
    • DIVIDE

      public static final TokenType DIVIDE
    • LPAREN

      public static final TokenType LPAREN
    • RPAREN

      public static final TokenType RPAREN
    • COMMA

      public static final TokenType COMMA
    • DOT

      public static final TokenType DOT
    • ARROW

      public static final TokenType ARROW
    • UNDIRECTED_EDGE

      public static final TokenType UNDIRECTED_EDGE
      The undirected-edge separator ↔ (ASCII <->), which stands where the comma stands between a graph operator's two endpoint columns and says that the edge relation is to be read both ways.
    • EOF

      public static final TokenType EOF
    • ELEMENT_OF

      public static final TokenType ELEMENT_OF
    • NOT_ELEMENT_OF

      public static final TokenType NOT_ELEMENT_OF
    • LBRACE

      public static final TokenType LBRACE
    • RBRACE

      public static final TokenType RBRACE
    • LBRACKET

      public static final TokenType LBRACKET
    • RBRACKET

      public static final TokenType RBRACKET
    • COLON

      public static final TokenType COLON
  • Method Details

    • values

      public static TokenType[] values()
      Returns an array containing the constants of this enum class, in the order they are declared.
      Returns:
      an array containing the constants of this enum class, in the order they are declared
    • valueOf

      public static TokenType valueOf(String name)
      Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)
      Parameters:
      name - the name of the enum constant to be returned.
      Returns:
      the enum constant with the specified name
      Throws:
      IllegalArgumentException - if this enum class has no constant with the specified name
      NullPointerException - if the argument is null