Interface IndexProvider
-
- All Superinterfaces:
org.uberfire.commons.lifecycle.Disposable
public interface IndexProvider extends org.uberfire.commons.lifecycle.Disposable
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voiddelete(String index)voiddelete(String index, String id)booleanexists(String index, String id)List<KObject>findById(String index, String id)List<KObject>findByQuery(List<String> indices, org.apache.lucene.search.Query query, int limit)List<KObject>findByQuery(List<String> indices, org.apache.lucene.search.Query query, org.apache.lucene.search.Sort sort, int limit)longfindHitsByQuery(List<String> indices, org.apache.lucene.search.Query query)longgetIndexSize(String index)List<String>getIndices()voidindex(List<KObject> elements)voidindex(KObject object)booleanisAlive()booleanisFreshIndex(KCluster cluster)voidobserverInitialization(Runnable runnable)voidrename(String index, String id, KObject to)
-
-
-
Method Detail
-
isFreshIndex
boolean isFreshIndex(KCluster cluster)
-
index
void index(KObject object)
-
delete
void delete(String index)
-
findById
List<KObject> findById(String index, String id) throws IOException
- Throws:
IOException
-
getIndexSize
long getIndexSize(String index)
-
findByQuery
List<KObject> findByQuery(List<String> indices, org.apache.lucene.search.Query query, int limit)
-
findByQuery
List<KObject> findByQuery(List<String> indices, org.apache.lucene.search.Query query, org.apache.lucene.search.Sort sort, int limit)
-
observerInitialization
void observerInitialization(Runnable runnable)
-
isAlive
boolean isAlive()
-
-