Interface UnionOfConjunctiveQueries
- All Superinterfaces:
CloseableIterable<EffectiveConjunctiveQuery>, Query
- All Known Implementing Classes:
DefaultUnionOfConjunctiveQueries
public interface UnionOfConjunctiveQueries
extends Query, CloseableIterable<EffectiveConjunctiveQuery>
Query representing a finite union of conjunctive queries.
- Author:
- Clément Sipieter (INRIA) <clement@6pi.fr>
-
Method Summary
Modifier and TypeMethodDescriptionvoidAppends this object representation to the provided builder.Get the answer variablesReturns all conjunctive queries contained in this union.getLabel()The label (the name) of this query.booleanisEmpty()Returns true if there is no queries in this union, false otherwise.iterator()Returns a closeable iterator over the elements of this iterable.intsize()Returns the number of queries.
-
Method Details
-
iterator
Description copied from interface:CloseableIterableReturns a closeable iterator over the elements of this iterable.- Specified by:
iteratorin interfaceCloseableIterable<EffectiveConjunctiveQuery>- Returns:
- the iterator over the elements
-
getConjunctiveQueries
List<ConjunctiveQuery> getConjunctiveQueries()Returns all conjunctive queries contained in this union.- Returns:
- All the conjunctive queries as a list.
-
getAnswerVariables
-
getLabel
-
size
int size()Returns the number of queries.- Returns:
- the number of queries.
-
isEmpty
boolean isEmpty()Returns true if there is no queries in this union, false otherwise.- Returns:
- true if there is no queries in this union, false otherwise.
-
appendTo
Appends this object representation to the provided builder.- Parameters:
sb- the target builder
-