public class IndexBasedEntityChecker extends Object implements EntityChecker, Closeable
| Modifier and Type | Field and Description |
|---|---|
static String |
URI_FIELD_NAME |
| Modifier | Constructor and Description |
|---|---|
protected |
IndexBasedEntityChecker(org.apache.lucene.search.IndexSearcher indexSearcher,
org.apache.lucene.store.Directory indexDirectory,
org.apache.lucene.index.IndexReader indexReader) |
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
static IndexBasedEntityChecker |
create(String indexDirPath) |
boolean |
entityExists(String uri)
Returns true if there is an entity with the given URI.
|
public static final String URI_FIELD_NAME
protected IndexBasedEntityChecker(org.apache.lucene.search.IndexSearcher indexSearcher,
org.apache.lucene.store.Directory indexDirectory,
org.apache.lucene.index.IndexReader indexReader)
public static IndexBasedEntityChecker create(String indexDirPath)
public boolean entityExists(String uri)
EntityCheckerentityExists in interface EntityCheckeruri - the URI of the entity that should be checkedpublic void close()
throws IOException
close in interface Closeableclose in interface AutoCloseableIOExceptionCopyright © 2014–2017. All rights reserved.