mirror of
https://github.com/querydsl/querydsl.git
synced 2026-07-03 21:07:49 +08:00
This commit is contained in:
parent
69284d73fb
commit
40f948ca97
@ -3,6 +3,7 @@ package com.mysema.query.lucene.session;
|
||||
public interface LuceneSessionFactory {
|
||||
|
||||
LuceneSession getCurrentSession();
|
||||
|
||||
LuceneSession openSession(boolean readOnly);
|
||||
|
||||
}
|
||||
|
||||
@ -18,9 +18,9 @@ import com.mysema.query.QueryException;
|
||||
|
||||
public class LuceneSessionFactoryImpl implements LuceneSessionFactory {
|
||||
|
||||
private final Logger logger = LoggerFactory.getLogger(LuceneSessionFactoryImpl.class);
|
||||
private static final Logger logger = LoggerFactory.getLogger(LuceneSessionFactoryImpl.class);
|
||||
|
||||
private Directory directory;
|
||||
private final Directory directory;
|
||||
|
||||
private final AtomicReference<IndexSearcher> searcher = new AtomicReference<IndexSearcher>();
|
||||
|
||||
|
||||
@ -9,17 +9,17 @@ import com.mysema.query.lucene.LuceneSerializer;
|
||||
|
||||
public class LuceneSessionImpl implements LuceneSession {
|
||||
|
||||
private boolean readOnly;
|
||||
private final boolean readOnly;
|
||||
|
||||
private boolean closed = false;
|
||||
|
||||
private LuceneSessionFactoryImpl sessionFactory;
|
||||
private final LuceneSessionFactoryImpl sessionFactory;
|
||||
|
||||
private IndexSearcher searcher;
|
||||
|
||||
private IndexWriter writer;
|
||||
|
||||
private LuceneSerializer serializer = new LuceneSerializer(true, true);
|
||||
private final LuceneSerializer serializer = new LuceneSerializer(true, true);
|
||||
|
||||
public LuceneSessionImpl(LuceneSessionFactoryImpl sessionFactory,
|
||||
boolean readOnly) {
|
||||
|
||||
Loading…
Reference in New Issue
Block a user