Package org.aksw.commons.tuple.query
Class TupleQueryImpl<ComponentType>
java.lang.Object
org.aksw.commons.tuple.query.TupleQueryImpl<ComponentType>
- Type Parameters:
ComponentType-
- All Implemented Interfaces:
TupleQuery<ComponentType>
- Author:
- Claus Stadler 11/09/2020
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected intprotected booleanprotected List<ComponentType>protected int[] -
Constructor Summary
Constructors -
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.booleanbooleanstatic <T> List<T>listOfNulls(int size) setConstraint(int idx, ComponentType value) setDistinct(boolean onOrOff) setProject(int... tupleIdxs) Replaces a projection with the given onetoString()
-
Field Details
-
dimension
protected int dimension -
pattern
-
distinct
protected boolean distinct -
projection
protected int[] projection
-
-
Constructor Details
-
TupleQueryImpl
public TupleQueryImpl(int dimension)
-
-
Method Details
-
listOfNulls
-
getDimension
public int getDimension()Description copied from interface:TupleQueryThe dimension (number of columns) of the conceptual tuple table this query is intended for- Specified by:
getDimensionin interfaceTupleQuery<ComponentType>
-
setDistinct
- Specified by:
setDistinctin interfaceTupleQuery<ComponentType>
-
isDistinct
public boolean isDistinct()- Specified by:
isDistinctin interfaceTupleQuery<ComponentType>
-
setConstraint
- Specified by:
setConstraintin interfaceTupleQuery<ComponentType>
-
getConstraint
- Specified by:
getConstraintin interfaceTupleQuery<ComponentType>
-
getProject
public int[] getProject()Description copied from interface:TupleQueryBaseline tuple query execution on a tuple table. Invokes find(...) on the tupleTable and only afterwards applies filtering, projection and distinct on the obtained stream- Specified by:
getProjectin interfaceTupleQuery<ComponentType>- Returns:
- A mutable array for configuration of the projection
-
clearProject
- Specified by:
clearProjectin interfaceTupleQuery<ComponentType>
-
getPattern
- Specified by:
getPatternin interfaceTupleQuery<ComponentType>
-
setProject
Description copied from interface:TupleQueryReplaces a projection with the given one- Specified by:
setProjectin interfaceTupleQuery<ComponentType>- Returns:
-
hasProject
public boolean hasProject()- Specified by:
hasProjectin interfaceTupleQuery<ComponentType>
-
getConstrainedComponents
- Specified by:
getConstrainedComponentsin interfaceTupleQuery<ComponentType>
-
toString
-
addProject
- Specified by:
addProjectin interfaceTupleQuery<ComponentType>
-