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 Details

    • getDimension

      int getDimension()
      The dimension (number of columns) of the conceptual tuple table this query is intended for
    • setDistinct

      TupleQuery<ComponentType> setDistinct(boolean onOrOff)
    • isDistinct

      boolean isDistinct()
    • setConstraint

      TupleQuery<ComponentType> setConstraint(int idx, ComponentType value)
    • getConstraint

      ComponentType getConstraint(int idx)
    • getConstrainedComponents

      Set<Integer> 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

      TupleQuery<ComponentType> addProject(int... tupleIdxs)
    • setProject

      TupleQuery<ComponentType> setProject(int... tupleIdxs)
      Replaces a projection with the given one
      Parameters:
      tupleIdxs -
      Returns: