Kùzu C++ API
Loading...
Searching...
No Matches
expression_type.h
Go to the documentation of this file.
1#pragma once
2
3#include <cstdint>
4#include <string>
5
6namespace kuzu {
7namespace common {
8
9enum class ExpressionType : uint8_t {
10 // Boolean Connection Expressions
11 OR = 0,
12 XOR = 1,
13 AND = 2,
14 NOT = 3,
15
16 // Comparison Expressions
17 EQUALS = 10,
18 NOT_EQUALS = 11,
19 GREATER_THAN = 12,
21 LESS_THAN = 14,
23
24 // Null Operator Expressions
25 IS_NULL = 50,
26 IS_NOT_NULL = 51,
27
28 PROPERTY = 60,
29
30 LITERAL = 70,
31
32 STAR = 80,
33
34 VARIABLE = 90,
35 PATH = 91,
36 PATTERN = 92, // Node & Rel pattern
37
38 PARAMETER = 100,
39
40 FUNCTION = 110,
41
43
44 SUBQUERY = 190,
45
46 CASE_ELSE = 200,
47
48 GRAPH = 210,
49
50 LAMBDA = 220,
51
52 // NOTE: this enum has type uint8_t so don't assign over 255.
53};
54
56 static bool isUnary(ExpressionType type);
57 static bool isBinary(ExpressionType type);
58 static bool isBoolean(ExpressionType type);
59 static bool isComparison(ExpressionType type);
60 static bool isNullOperator(ExpressionType type);
61
63
64 static std::string toString(ExpressionType type);
65};
66
67} // namespace common
68} // namespace kuzu
ExpressionType
Definition expression_type.h:9
Definition alter_type.h:5
Definition expression_type.h:55
static bool isBoolean(ExpressionType type)
static bool isBinary(ExpressionType type)
static std::string toString(ExpressionType type)
static bool isUnary(ExpressionType type)
static bool isComparison(ExpressionType type)
static ExpressionType reverseComparisonDirection(ExpressionType type)
static bool isNullOperator(ExpressionType type)