-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
2 changed files
with
47 additions
and
80 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
## Formal Definition of the Expressions | ||
|
||
The formal definition of the Criteria4s' type-classes (expressions) is as follows: | ||
|
||
```text | ||
Criteria := Conjuction Criteria Criteria | Predicate | Value<Boolean> | ||
Predicate := UnaryPred Ref | BinaryPred Ref Ref | ||
Ref := Value<T> | Col | ||
Conjuction := AND | OR | ||
UnaryPred := IS_NULL | IS_NOT_NULL ... | ||
BinaryPred := EQ | NEQ | GT | LT | GEQ | LEQ | IN | LIKE ... | ||
``` | ||
|
||
Where: | ||
|
||
- `Criteria` is the main expression of the DSL | ||
- `Conjuction` is the conjunction operator expression | ||
- `UnaryPredOp` is the unary predicate operator expression | ||
- `BinaryPredOp` is the binary predicate operator expression | ||
- `Ref` is a reference to a value or a column | ||
- `Value<T>` is a value expression of a certain type `T` | ||
- `Col` is a column expression |