Interface AtomicPattern
- All Known Subinterfaces:
View<NativeQueryType>
- All Known Implementing Classes:
AbstractAtomicPattern, ViewImpl
public interface AtomicPattern
Represents a basic pattern for querying predicates with specific constraints on term positions.
This pattern defines which positions must be specified (Mandatory), which can be indexed (Indexable),
and what types of terms are allowed in each position.
-
Method Summary
Modifier and TypeMethodDescriptioncreateQueries(Map<Integer, Term> positionsAssignation) Creates basic queries compatible with this atom.Returns the sets of positions that can be indexed together.Returns the positions that must be assigned before evaluation.Returns the predicate described by this pattern.getTermConstraint(int position) Retrieves the allowed term type for a specific position.booleanhasAssignedMandatoryParameters(Map<Integer, Term> positionsAssignation) Checks whether all mandatory parameters are assigned.
-
Method Details
-
getPredicate
Predicate getPredicate()Returns the predicate described by this pattern.- Returns:
- The predicate associated with this pattern.
-
getTermConstraint
-
getMandatoryPositions
-
getIndexablePatterns
-
createQueries
Creates basic queries compatible with this atom.The result can be empty if it is not possible to build a Basic Query
- Parameters:
positionsAssignation- the assignation of the positions- Returns:
- A stream containing the BasicQueries compatible with this termSequence.
-
hasAssignedMandatoryParameters
-