Interface TupleQuery<ComponentType>
- Type Parameters:
ComponentType-
- All Known Implementing Classes:
TupleQueryImpl
public interface TupleQuery<ComponentType>
A tuple query comprises projection, distinct and constraints on the level of tuple components
- Author:
- Claus Stadler 11/09/2020
-
Method Summary
Modifier and TypeMethodDescriptionaddProject(int... tupleIdxs) getConstraint(int idx) intThe dimension (number of columns) of the conceptual tuple table this query is intended forint[]Baseline tuple query execution on a tuple table.booleanbooleansetConstraint(int idx, ComponentType value) setDistinct(boolean onOrOff) setProject(int... tupleIdxs) Replaces a projection with the given one
-
Method Details
-
getDimension
int getDimension()The dimension (number of columns) of the conceptual tuple table this query is intended for -
setDistinct
-
isDistinct
boolean isDistinct() -
setConstraint
-
getConstraint
-
getConstrainedComponents
-
getPattern
List<ComponentType> getPattern() -
getProject
int[] getProject()Baseline tuple query execution on a tuple table. Invokes find(...) on the tupleTable and only afterwards applies filtering, projection and distinct on the obtained stream- Returns:
- A mutable array for configuration of the projection
-
clearProject
TupleQuery<ComponentType> clearProject() -
hasProject
boolean hasProject() -
addProject
-
setProject
Replaces a projection with the given one- Parameters:
tupleIdxs-- Returns:
-