Class AccurateRepositoryBloomFilter
java.lang.Object
org.eclipse.rdf4j.repository.filters.AccurateRepositoryBloomFilter
- All Implemented Interfaces:
RepositoryBloomFilter
A bloom filter that is exact (no false positives) at the cost of always having to query the repository.
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionboolean
mayHaveStatement
(RepositoryConnection conn, Resource subj, IRI pred, Value obj, Resource... contexts) Returns true if the repository may have such a statement or false if it definitely does not.
-
Field Details
-
INCLUDE_INFERRED_INSTANCE
-
-
Constructor Details
-
AccurateRepositoryBloomFilter
public AccurateRepositoryBloomFilter(boolean includeInferred)
-
-
Method Details
-
mayHaveStatement
public boolean mayHaveStatement(RepositoryConnection conn, Resource subj, IRI pred, Value obj, Resource... contexts) Description copied from interface:RepositoryBloomFilter
Returns true if the repository may have such a statement or false if it definitely does not.- Specified by:
mayHaveStatement
in interfaceRepositoryBloomFilter
- Parameters:
conn
- connection to the repository to check.subj
- subject of the statement to check for (can be null).pred
- predicate of the statement to check for (can be null).obj
- object of the statement to check for (can be null).contexts
- contexts of the statement to check for.
-