com.liferay.portal.search.lucene
Class IndexAccessorImpl
java.lang.Object
com.liferay.portal.search.lucene.IndexAccessorImpl
- All Implemented Interfaces:
- IndexAccessor
public class IndexAccessorImpl
- extends Object
- implements IndexAccessor
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
IndexAccessorImpl
public IndexAccessorImpl(long companyId)
addDocument
public void addDocument(org.apache.lucene.document.Document document)
throws IOException
- Specified by:
addDocument
in interface IndexAccessor
- Throws:
IOException
close
public void close()
- Specified by:
close
in interface IndexAccessor
delete
public void delete()
- Specified by:
delete
in interface IndexAccessor
deleteDocuments
public void deleteDocuments(org.apache.lucene.index.Term term)
throws IOException
- Specified by:
deleteDocuments
in interface IndexAccessor
- Throws:
IOException
dumpIndex
public void dumpIndex(OutputStream outputStream)
throws IOException
- Specified by:
dumpIndex
in interface IndexAccessor
- Throws:
IOException
getCompanyId
public long getCompanyId()
- Specified by:
getCompanyId
in interface IndexAccessor
getLastGeneration
public long getLastGeneration()
- Specified by:
getLastGeneration
in interface IndexAccessor
getLuceneDir
public org.apache.lucene.store.Directory getLuceneDir()
- Specified by:
getLuceneDir
in interface IndexAccessor
loadIndex
public void loadIndex(InputStream inputStream)
throws IOException
- Specified by:
loadIndex
in interface IndexAccessor
- Throws:
IOException
updateDocument
public void updateDocument(org.apache.lucene.index.Term term,
org.apache.lucene.document.Document document)
throws IOException
- Specified by:
updateDocument
in interface IndexAccessor
- Throws:
IOException