com.mysema.query.lucene.session.impl
Class LuceneSessionFactoryImpl

java.lang.Object
  extended by com.mysema.query.lucene.session.impl.LuceneSessionFactoryImpl
All Implemented Interfaces:
LuceneSessionFactory

public class LuceneSessionFactoryImpl
extends Object
implements LuceneSessionFactory


Constructor Summary
LuceneSessionFactoryImpl(org.apache.lucene.store.Directory directory)
           
LuceneSessionFactoryImpl(org.apache.lucene.store.Directory directory, ReleaseListener releaseListener)
           
LuceneSessionFactoryImpl(String indexPath)
           
 
Method Summary
 LuceneSession getCurrentSession()
           
 FileLockingWriter getWriter(boolean createNew)
           
 LuceneSearcher leaseSearcher()
           
 LuceneSession openSession(boolean readOnly)
           
 void setDefaultLockTimeout(long defaultLockTimeout)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

LuceneSessionFactoryImpl

public LuceneSessionFactoryImpl(String indexPath)
                         throws IOException
Throws:
IOException

LuceneSessionFactoryImpl

public LuceneSessionFactoryImpl(org.apache.lucene.store.Directory directory)

LuceneSessionFactoryImpl

public LuceneSessionFactoryImpl(org.apache.lucene.store.Directory directory,
                                ReleaseListener releaseListener)
Method Detail

getCurrentSession

public LuceneSession getCurrentSession()
Specified by:
getCurrentSession in interface LuceneSessionFactory

openSession

public LuceneSession openSession(boolean readOnly)
Specified by:
openSession in interface LuceneSessionFactory

getWriter

public FileLockingWriter getWriter(boolean createNew)

leaseSearcher

public LuceneSearcher leaseSearcher()

setDefaultLockTimeout

public void setDefaultLockTimeout(long defaultLockTimeout)


Copyright © 2007-2011 Mysema Ltd. All Rights Reserved.