public class ManagedModelStore extends ManagedResource implements ManagedResource.ChildResourceSupport
ManagedResource.ChildResourceSupport| Modifier and Type | Field and Description |
|---|---|
static String |
REST_END_POINT
the model store rest endpoint
|
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 and Description |
|---|
ManagedModelStore(String resourceId,
SolrResourceLoader loader,
ManagedResourceStorage.StorageIO storageIO) |
buildMapToStore, convertNamedListToMap, createStorage, doPost, doPut, getInitializedOn, getResourceId, getResourceLoader, getServerResourceClass, getUpdatedSinceInitialization, hasChangesSinceInitialization, loadManagedDataAndNotify, notifyObserversDuringInit, onResourceDeleted, processStoredData, reloadFromStorage, storeManagedData, updateInitArgspublic static final String REST_END_POINT
public ManagedModelStore(String resourceId, SolrResourceLoader loader, ManagedResourceStorage.StorageIO storageIO) throws SolrException
SolrExceptionpublic static void registerManagedModelStore(SolrResourceLoader solrResourceLoader, ManagedResourceObserver managedResourceObserver)
public static ManagedModelStore getManagedModelStore(SolrCore core)
public void setManagedFeatureStore(ManagedFeatureStore managedFeatureStore)
public ManagedFeatureStore getManagedFeatureStore()
protected void onManagedDataLoadedFromStorage(NamedList<?> managedInitArgs, Object managedData) throws SolrException
onManagedDataLoadedFromStorage in class ManagedResourceSolrExceptionpublic void loadStoredModels()
public void addModel(LTRScoringModel ltrScoringModel) throws ModelException
ModelExceptionprotected Object applyUpdatesToManagedData(Object updates)
applyUpdatesToManagedData in class ManagedResourcepublic void doDeleteChild(BaseSolrResource endpoint, String childId)
doDeleteChild in class ManagedResourcepublic void doGet(BaseSolrResource endpoint, String childId)
doGet in class ManagedResourcepublic LTRScoringModel getModel(String modelName)
public static LTRScoringModel fromLTRScoringModelMap(SolrResourceLoader solrResourceLoader, Map<String,Object> modelMap, ManagedFeatureStore managedFeatureStore)
Copyright © 2000-2020 Apache Software Foundation. All Rights Reserved.