Package org.aksw.sparqlify.database
Class IndexCollection<T>
- All Implemented Interfaces:
Iterable<Index<T>>,Collection<Index<T>>
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid_execute(Object store, org.aksw.sparqlify.database.IndexCandidate pathNode, Collection<List<Object>> result, org.aksw.sparqlify.database.RowRechecker rechecker) booleanexecute(Index index, org.aksw.sparqlify.database.IndexCandidate pathNode, org.aksw.sparqlify.database.RowRechecker rechecker) org.aksw.sparqlify.database.IndexCandidateget(List<IndexMetaNode> nodes, int baseNodeDepth, int baseColumnDepth, Map<String, Constraint> constraints) TODO Given {a = const , b = const} and an index (a, b) with support for equals.voidgetRows(Map<String, Constraint> constraints, IndexMetaNode node, List<Integer> path) iterator()intsize()Methods inherited from class java.util.AbstractCollection
addAll, clear, contains, containsAll, isEmpty, remove, removeAll, retainAll, toArray, toArray, toStringMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface java.util.Collection
equals, hashCode, parallelStream, removeIf, spliterator, stream, toArray
-
Constructor Details
-
IndexCollection
public IndexCollection()
-
-
Method Details
-
add
- Specified by:
addin interfaceCollection<T>- Overrides:
addin classAbstractCollection<Index<T>>
-
getRows
-
get
public Collection<List<Object>> get(Map<String, Constraint> constraints, IndexMap<String, Column> columns) - Parameters:
columnNames-- Returns:
-
execute
public Collection<List<Object>> execute(Index index, org.aksw.sparqlify.database.IndexCandidate pathNode, org.aksw.sparqlify.database.RowRechecker rechecker) -
_execute
public void _execute(Object store, org.aksw.sparqlify.database.IndexCandidate pathNode, Collection<List<Object>> result, org.aksw.sparqlify.database.RowRechecker rechecker) -
get
public org.aksw.sparqlify.database.IndexCandidate get(List<IndexMetaNode> nodes, int baseNodeDepth, int baseColumnDepth, Map<String, Constraint> constraints) TODO Given {a = const , b = const} and an index (a, b) with support for equals. How can we pass on the constraints??? For now lets assume only single column indexes... :/- Parameters:
nodes-baseNodeDepth-baseColumnDepth-constraints-- Returns:
-
iterator
- Specified by:
iteratorin interfaceCollection<T>- Specified by:
iteratorin interfaceIterable<T>- Specified by:
iteratorin classAbstractCollection<Index<T>>
-
size
public int size()- Specified by:
sizein interfaceCollection<T>- Specified by:
sizein classAbstractCollection<Index<T>>
-