public final class LuceneStoreManager extends Object implements Module
LuceneStore manager.| Modifier and Type | Method and Description |
|---|---|
static <S extends Storable> |
getStore(Class<S> type)
Get
LuceneStore by Storable type with default configuration. |
static <S extends Storable> |
getStore(Class<S> type,
LuceneStoreConfig configuration)
Get
LuceneStore by Storable type with with given configuration. |
static <S extends Storable> |
getStore(Class<S> type,
String configuration)
Get
LuceneStore by Storable type with with given configuration. |
static List<LuceneStore<?>> |
getStores()
Get all initialized
LuceneStore. |
static Set<String> |
getStoresIds()
Get all initialized
LuceneStore identifiers. |
static void |
tearDown()
Tear down
LuceneStoreManager state.This is just for removing all initialized LuceneStore instances from internal storage.Tear down/cleanup for initialized LuceneStore instances should be done separately. |
static <S extends Storable> |
tearDown(Class<S> type)
Tear down
LuceneStoreManager state for given Storable type.This is just for removing initialized LuceneStore instance from internal storage.Tear down/cleanup for initialized LuceneStore instance should be done separately. |
static <S extends Storable> |
tearDown(Class<S> type,
LuceneStoreConfig configuration)
Tear down
LuceneStoreManager state for given Storable type.This is just for removing initialized LuceneStore instance from internal storage.Tear down/cleanup for initialized LuceneStore instance should be done separately. |
static <S extends Storable> |
tearDown(Class<S> type,
String configuration)
Tear down
LuceneStoreManager state for given Storable type.This is just for removing initialized LuceneStore instance from internal storage.Tear down/cleanup for initialized LuceneStore instance should be done separately. |
public static <S extends Storable> LuceneStore<S> getStore(Class<S> type)
LuceneStore by Storable type with default configuration.type - Storable typeLuceneStore instancepublic static <S extends Storable> LuceneStore<S> getStore(Class<S> type, String configuration)
LuceneStore by Storable type with with given configuration.type - Storable typeconfiguration - LuceneStoreConfig nameLuceneStore instancepublic static <S extends Storable> LuceneStore<S> getStore(Class<S> type, LuceneStoreConfig configuration)
LuceneStore by Storable type with with given configuration.type - Storable typeconfiguration - LuceneStoreConfigLuceneStore instancepublic static Set<String> getStoresIds()
LuceneStore identifiers.Set with LuceneStore identifierspublic static List<LuceneStore<?>> getStores()
LuceneStore.List with LuceneStorepublic static void tearDown()
LuceneStoreManager state.LuceneStore instances from internal storage.LuceneStore instances should be done separately.public static <S extends Storable> void tearDown(Class<S> type)
LuceneStoreManager state for given Storable type.LuceneStore instance from internal storage.LuceneStore instance should be done separately.type - Storable typepublic static <S extends Storable> void tearDown(Class<S> type, String configuration)
LuceneStoreManager state for given Storable type.LuceneStore instance from internal storage.LuceneStore instance should be done separately.type - Storable typeconfiguration - LuceneStoreConfig namepublic static <S extends Storable> void tearDown(Class<S> type, LuceneStoreConfig configuration)
LuceneStoreManager state for given Storable type.LuceneStore instance from internal storage.LuceneStore instance should be done separately.type - Storable typeconfiguration - LuceneStoreConfig nameCopyright © 2013–2019 BB Corp. All rights reserved.