Package org.apache.solr.ltr.store.rest
Class ManagedFeatureStore
java.lang.Object
org.apache.solr.rest.ManagedResource
org.apache.solr.ltr.store.rest.ManagedFeatureStore
- All Implemented Interfaces:
ManagedResource.ChildResourceSupport
public class ManagedFeatureStore
extends ManagedResource
implements ManagedResource.ChildResourceSupport
Managed resource for a storing a feature.
-
Nested Class Summary
Nested classes/interfaces inherited from class org.apache.solr.rest.ManagedResource
ManagedResource.ChildResourceSupport -
Field Summary
FieldsFields inherited from class org.apache.solr.rest.ManagedResource
INIT_ARGS_JSON_FIELD, INITIALIZED_ON_JSON_FIELD, initializedOn, lastUpdateSinceInitialization, MANAGED_JSON_LIST_FIELD, MANAGED_JSON_MAP_FIELD, managedInitArgs, solrResourceLoader, storage, UPDATED_SINCE_INIT_JSON_FIELD -
Constructor Summary
ConstructorsConstructorDescriptionManagedFeatureStore(String resourceId, SolrResourceLoader loader, ManagedResourceStorage.StorageIO storageIO) -
Method Summary
Modifier and TypeMethodDescriptionvoidaddFeature(Map<String, Object> map, String featureStore) applyUpdatesToManagedData(Object updates) protected ManagedResourceStoragecreateStorage(ManagedResourceStorage.StorageIO storageIO, SolrResourceLoader loader) voiddoDeleteChild(BaseSolrResource endpoint, String childId) voiddoGet(BaseSolrResource endpoint, String childId) Called to retrieve a named part (the given childId) of the resource at the given endpoint.getFeatureStore(String name) static ManagedFeatureStoreprotected voidonManagedDataLoadedFromStorage(org.apache.solr.common.util.NamedList<?> managedInitArgs, Object managedData) static voidregisterManagedFeatureStore(SolrResourceLoader solrResourceLoader, ManagedResourceObserver managedResourceObserver) Methods inherited from class org.apache.solr.rest.ManagedResource
buildMapToStore, convertNamedListToMap, doPost, doPut, getInitializedOn, getResourceId, getResourceLoader, getServerResourceClass, getUpdatedSinceInitialization, hasChangesSinceInitialization, loadManagedDataAndNotify, notifyObserversDuringInit, onResourceDeleted, processStoredData, reloadFromStorage, storeManagedData, updateInitArgs
-
Field Details
-
REST_END_POINT
the feature store rest endpoint- See Also:
-
-
Constructor Details
-
ManagedFeatureStore
public ManagedFeatureStore(String resourceId, SolrResourceLoader loader, ManagedResourceStorage.StorageIO storageIO) throws org.apache.solr.common.SolrException - Throws:
org.apache.solr.common.SolrException
-
-
Method Details
-
registerManagedFeatureStore
public static void registerManagedFeatureStore(SolrResourceLoader solrResourceLoader, ManagedResourceObserver managedResourceObserver) -
getManagedFeatureStore
-
createStorage
protected ManagedResourceStorage createStorage(ManagedResourceStorage.StorageIO storageIO, SolrResourceLoader loader) throws org.apache.solr.common.SolrException - Overrides:
createStoragein classManagedResource- Throws:
org.apache.solr.common.SolrException
-
getStores
-
getFeatureStore
-
onManagedDataLoadedFromStorage
protected void onManagedDataLoadedFromStorage(org.apache.solr.common.util.NamedList<?> managedInitArgs, Object managedData) throws org.apache.solr.common.SolrException - Specified by:
onManagedDataLoadedFromStoragein classManagedResource- Throws:
org.apache.solr.common.SolrException
-
addFeature
-
applyUpdatesToManagedData
- Specified by:
applyUpdatesToManagedDatain classManagedResource
-
doDeleteChild
- Specified by:
doDeleteChildin classManagedResource
-
doGet
Called to retrieve a named part (the given childId) of the resource at the given endpoint. Note: since we have a unique child feature store we ignore the childId.- Specified by:
doGetin classManagedResource
-