Liferay 6.0.5

com.liferay.portal.search.lucene
Class IndexAccessorImpl

java.lang.Object
  extended by com.liferay.portal.search.lucene.IndexAccessorImpl
All Implemented Interfaces:
IndexAccessor

public class IndexAccessorImpl
extends Object
implements IndexAccessor


Constructor Summary
IndexAccessorImpl(long companyId)
           
 
Method Summary
 void addDocument(org.apache.lucene.document.Document document)
           
 void close()
           
 void delete()
           
 void deleteDocuments(org.apache.lucene.index.Term term)
           
 long getCompanyId()
           
 org.apache.lucene.store.Directory getLuceneDir()
           
 void updateDocument(org.apache.lucene.index.Term term, org.apache.lucene.document.Document document)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

IndexAccessorImpl

public IndexAccessorImpl(long companyId)
Method Detail

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

getCompanyId

public long getCompanyId()
Specified by:
getCompanyId in interface IndexAccessor

getLuceneDir

public org.apache.lucene.store.Directory getLuceneDir()
Specified by:
getLuceneDir in interface IndexAccessor

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

Liferay 6.0.5