Enum Class BooleanSemiring
- All Implemented Interfaces:
Semiring<Boolean>,Serializable,Comparable<BooleanSemiring>,Constable
The boolean semiring
(𝔹, ∨, ∧, false, true) — plain set semantics
(a tuple is present or absent). This is relix's default annotation: a query with
no provenance request behaves exactly as a boolean K-relation.
⊕ is logical OR (a tuple exists if any derivation produces it),
⊗ is logical AND (a join's tuple exists only if both inputs do),
0 is false (absent), and 1 is true.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum Constants -
Method Summary
Modifier and TypeMethodDescriptionone()Returns the multiplicative identity1.Combines two annotations with⊕— the way alternative derivations of the same tuple (union, projection) are merged.Combines two annotations with⊗— the way the joint requirements of a tuple (join, product) are merged.static BooleanSemiringReturns the enum constant of this class with the specified name.static BooleanSemiring[]values()Returns an array containing the constants of this enum class, in the order they are declared.zero()Returns the additive identity0.
-
Enum Constant Details
-
INSTANCE
The singleton instance.
-
-
Method Details
-
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
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 nameNullPointerException- if the argument is null
-
zero
Description copied from interface:SemiringReturns the additive identity0. It is the identity ofSemiring.plus(K, K)and the annihilator ofSemiring.times(K, K), and denotes an absent tuple. -
one
Description copied from interface:SemiringReturns the multiplicative identity1. It is the identity ofSemiring.times(K, K). -
plus
Description copied from interface:SemiringCombines two annotations with⊕— the way alternative derivations of the same tuple (union, projection) are merged. Associative and commutative, with identitySemiring.zero(). -
times
Description copied from interface:SemiringCombines two annotations with⊗— the way the joint requirements of a tuple (join, product) are merged. Associative and commutative, with identitySemiring.one(), annihilated bySemiring.zero().
-