Liferay 6.1.2-ce-ga3

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


Field Summary
 
Fields inherited from interface com.liferay.portal.search.lucene.IndexAccessor
DEFAULT_LAST_GENERATION
 
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)
           
 void dumpIndex(OutputStream outputStream)
           
 long getCompanyId()
           
 long getLastGeneration()
           
 org.apache.lucene.store.Directory getLuceneDir()
           
 void loadIndex(InputStream inputStream)
           
 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

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

Liferay 6.1.2-ce-ga3