public class DBOIndex extends Object
| Modifier and Type | Field and Description |
|---|---|
private org.apache.lucene.analysis.core.SimpleAnalyzer |
analyzer |
private org.apache.lucene.store.Directory |
directory |
String |
FIELD_NAME_OBJECT |
String |
FIELD_NAME_PREDICATE |
String |
FIELD_NAME_SUBJECT |
private org.apache.lucene.index.DirectoryReader |
ireader |
private org.apache.lucene.search.IndexSearcher |
isearcher |
private org.apache.lucene.index.IndexWriter |
iwriter |
private org.slf4j.Logger |
log |
private static org.apache.lucene.util.Version |
LUCENE_VERSION |
private int |
numberOfDocsRetrievedFromIndex |
| Constructor and Description |
|---|
DBOIndex() |
| Modifier and Type | Method and Description |
|---|---|
private void |
addDocumentToIndex(org.apache.jena.rdf.model.Resource resource,
String predicate,
String object) |
void |
close() |
private void |
index() |
ArrayList<String> |
search(String object) |
private static final org.apache.lucene.util.Version LUCENE_VERSION
private org.slf4j.Logger log
public String FIELD_NAME_SUBJECT
public String FIELD_NAME_PREDICATE
public String FIELD_NAME_OBJECT
private int numberOfDocsRetrievedFromIndex
private org.apache.lucene.store.Directory directory
private org.apache.lucene.search.IndexSearcher isearcher
private org.apache.lucene.index.DirectoryReader ireader
private org.apache.lucene.index.IndexWriter iwriter
private org.apache.lucene.analysis.core.SimpleAnalyzer analyzer
public void close()
private void index()
private void addDocumentToIndex(org.apache.jena.rdf.model.Resource resource,
String predicate,
String object)
throws IOException
IOExceptionCopyright © 2016–2017 Pivotal Software, Inc.. All rights reserved.