Package org.aksw.sparqlify.database
Class PrefixMapStoreAccessor
java.lang.Object
org.aksw.sparqlify.database.PrefixMapStoreAccessor
Accessor for a NavigableMap<List<?>, Object>
We separate the accessor from the store, in order to avoid duplicating
(referenences to) the index metadata at each node of the index tree -
this way there is just one accessor with the metadata, which can
work on any corresponding store at some level in an hierarchical index.
- Author:
- Claus Stadler <cstadler@informatik.uni-leipzig.de>
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionPrefixMapStoreAccessor(int[] indexColumns, Function<Object, Set<String>> prefixExtractor) -
Method Summary
Modifier and TypeMethodDescriptionlookup(Object store, Constraint constraint) The constraints given as arguments are interpreted as conjunctions.lookup(NavigableMap<String, Object> map, EqualsConstraint constraint) lookup(NavigableMap<String, Object> map, IsPrefixOfConstraint constraint) lookup(NavigableMap<String, Object> map, StartsWithConstraint constraint) voidWe assume that .void
-
Field Details
-
supportedConstraintClasses
-
-
Constructor Details
-
PrefixMapStoreAccessor
-
-
Method Details
-
getSupportedConstraintClasses
-
put
We assume that . only classes that are in supportedConstraintClasses are passed to this method. . only constraints for which the index has the right columns are passed This method should only be used by the engine- Parameters:
constraints-
-
lookup
The constraints given as arguments are interpreted as conjunctions. The set of prefixes within a constraint is interpreted as a disjunction.- Parameters:
constraints-
-
get
-
list
-
createStore
-