S - storable bean typepublic class LuceneStoreImpl<S extends Storable> extends Object implements LuceneStore<S>
LuceneStore implementation.| Modifier | Constructor and Description |
|---|---|
protected |
LuceneStoreImpl(Class<S> aBeanType,
LuceneStoreConfig configuration)
Constructor.
|
protected |
LuceneStoreImpl(Class<S> aBeanType,
String configuration)
Protected constructor.
|
| Modifier and Type | Method and Description |
|---|---|
void |
add(Collection<S> toAdd)
Add beans.
All not valid bean's would be skipped. |
void |
add(S toAdd)
Add bean.
|
int |
count()
Get all beans count.
|
int |
count(org.apache.lucene.search.Query query)
Get beans count.
|
Collection<S> |
get(org.apache.lucene.search.Query query)
Search bean's.
|
Collection<S> |
get(org.apache.lucene.search.Query query,
int limit)
Search beans.
|
Collection<S> |
get(org.apache.lucene.search.Query query,
int offset,
int limit)
Search beans.
|
Collection<S> |
get(org.apache.lucene.search.Query query,
int offset,
int limit,
org.apache.lucene.search.Sort sort)
Search beans.
|
Collection<S> |
get(org.apache.lucene.search.Query query,
int limit,
org.apache.lucene.search.Sort sort)
Search beans.
|
Collection<S> |
get(org.apache.lucene.search.Query query,
org.apache.lucene.search.Sort sort)
Search bean's.
|
S |
get(String fieldName,
String fieldValue)
Get bean.
|
Collection<S> |
getAll()
Get all beans.
|
Collection<org.apache.lucene.document.Document> |
getAllDocuments()
Get all
Document instances. |
org.apache.lucene.document.Document |
getDocument(String fieldName,
String fieldValue)
Get
Document with selected properties. |
Collection<org.apache.lucene.document.Document> |
getDocuments(org.apache.lucene.search.Query query)
Search documents.
|
Collection<org.apache.lucene.document.Document> |
getDocuments(org.apache.lucene.search.Query query,
int limit)
Search documents.
|
Collection<org.apache.lucene.document.Document> |
getDocuments(org.apache.lucene.search.Query query,
int offset,
int limit)
Search documents.
|
Collection<org.apache.lucene.document.Document> |
getDocuments(org.apache.lucene.search.Query query,
int offset,
int limit,
org.apache.lucene.search.Sort sort)
Search documents.
|
Collection<org.apache.lucene.document.Document> |
getDocuments(org.apache.lucene.search.Query query,
int limit,
org.apache.lucene.search.Sort sort)
Search documents.
|
Collection<org.apache.lucene.document.Document> |
getDocuments(org.apache.lucene.search.Query query,
org.apache.lucene.search.Sort sort)
Search documents.
|
void |
remove(Collection<S> toRemove)
Remove beans.
All not valid bean's would be skipped. |
void |
remove(S toRemove)
Remove bean.
|
void |
removeAll()
Remove all beans.
|
void |
tearDown()
Tear down
LuceneStore state. |
void |
update(Collection<S> toUpdate)
Update beans.
All not valid bean's would be skipped. |
void |
update(S toUpdate)
Update bean.
|
protected LuceneStoreImpl(Class<S> aBeanType, String configuration)
aBeanType - bean typeconfiguration - LuceneStoreConfig configuration nameprotected LuceneStoreImpl(Class<S> aBeanType, LuceneStoreConfig configuration)
aBeanType - bean typeconfiguration - LuceneStoreConfig instancepublic Collection<S> getAll()
LuceneStoregetAll in interface LuceneStore<S extends Storable>Collection of public Collection<org.apache.lucene.document.Document> getAllDocuments()
LuceneStoreDocument instances.getAllDocuments in interface LuceneStore<S extends Storable>Document collectionpublic S get(String fieldName, String fieldValue)
LuceneStoreget in interface LuceneStore<S extends Storable>fieldName - identifier field namefieldValue - identifier field valuenullpublic org.apache.lucene.document.Document getDocument(String fieldName, String fieldValue)
LuceneStoreDocument with selected properties.getDocument in interface LuceneStore<S extends Storable>fieldName - identifier field namefieldValue - identifier field valueDocument if found or nullpublic void add(S toAdd)
LuceneStoreadd in interface LuceneStore<S extends Storable>toAdd - beanpublic void update(S toUpdate)
LuceneStoreupdate in interface LuceneStore<S extends Storable>toUpdate - beanpublic void remove(S toRemove)
LuceneStoreremove in interface LuceneStore<S extends Storable>toRemove - beanpublic void add(Collection<S> toAdd)
LuceneStoreadd in interface LuceneStore<S extends Storable>toAdd - Collection of beanspublic void update(Collection<S> toUpdate)
LuceneStoreupdate in interface LuceneStore<S extends Storable>toUpdate - Collection of beanspublic void remove(Collection<S> toRemove)
LuceneStoreremove in interface LuceneStore<S extends Storable>toRemove - Collection of beanspublic void removeAll()
LuceneStoreremoveAll in interface LuceneStore<S extends Storable>public int count()
LuceneStorecount in interface LuceneStore<S extends Storable>public int count(org.apache.lucene.search.Query query)
LuceneStorecount in interface LuceneStore<S extends Storable>query - Querypublic Collection<S> get(org.apache.lucene.search.Query query)
LuceneStoreget in interface LuceneStore<S extends Storable>query - QueryCollection of public Collection<org.apache.lucene.document.Document> getDocuments(org.apache.lucene.search.Query query)
LuceneStoregetDocuments in interface LuceneStore<S extends Storable>query - QueryDocument collectionpublic Collection<S> get(org.apache.lucene.search.Query query, org.apache.lucene.search.Sort sort)
LuceneStoreget in interface LuceneStore<S extends Storable>query - Querysort - sorting criteriaCollection of public Collection<org.apache.lucene.document.Document> getDocuments(org.apache.lucene.search.Query query, org.apache.lucene.search.Sort sort)
LuceneStoregetDocuments in interface LuceneStore<S extends Storable>query - Querysort - sorting criteriaDocument collectionpublic Collection<S> get(org.apache.lucene.search.Query query, int limit)
LuceneStoreget in interface LuceneStore<S extends Storable>query - Querylimit - limit of the resultCollection of public Collection<org.apache.lucene.document.Document> getDocuments(org.apache.lucene.search.Query query, int limit)
LuceneStoregetDocuments in interface LuceneStore<S extends Storable>query - Querylimit - max amount of documents in resultDocument collectionpublic Collection<S> get(org.apache.lucene.search.Query query, int offset, int limit)
LuceneStoreget in interface LuceneStore<S extends Storable>query - Queryoffset - found results offsetlimit - limit of the resultCollection of public Collection<org.apache.lucene.document.Document> getDocuments(org.apache.lucene.search.Query query, int offset, int limit)
LuceneStoregetDocuments in interface LuceneStore<S extends Storable>query - Queryoffset - found results offsetlimit - max amount of documents in resultDocument collectionpublic Collection<S> get(org.apache.lucene.search.Query query, int limit, org.apache.lucene.search.Sort sort)
LuceneStoreget in interface LuceneStore<S extends Storable>query - Querylimit - limit of the resultsort - sorting criteriaCollection of public Collection<org.apache.lucene.document.Document> getDocuments(org.apache.lucene.search.Query query, int limit, org.apache.lucene.search.Sort sort)
LuceneStoregetDocuments in interface LuceneStore<S extends Storable>query - Querylimit - max amount of documents in resultsort - sorting criteriaDocument collectionpublic Collection<S> get(org.apache.lucene.search.Query query, int offset, int limit, org.apache.lucene.search.Sort sort)
LuceneStoreget in interface LuceneStore<S extends Storable>query - Queryoffset - found results offsetlimit - limit of the resultsort - sorting criteriaCollection of public Collection<org.apache.lucene.document.Document> getDocuments(org.apache.lucene.search.Query query, int offset, int limit, org.apache.lucene.search.Sort sort)
LuceneStoregetDocuments in interface LuceneStore<S extends Storable>query - Queryoffset - found results offsetlimit - max amount of documents in resultsort - sorting criteriaDocument collectionpublic void tearDown()
LuceneStoreLuceneStore state.tearDown in interface LuceneStore<S extends Storable>Copyright © 2013–2019 BB Corp. All rights reserved.