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, updateInitArgs
public static final String REST_END_POINT
public ManagedModelStore(String resourceId, SolrResourceLoader loader, ManagedResourceStorage.StorageIO storageIO) throws SolrException
SolrException
public 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 ManagedResource
SolrException
public void loadStoredModels()
public void addModel(LTRScoringModel ltrScoringModel) throws ModelException
ModelException
protected Object applyUpdatesToManagedData(Object updates)
applyUpdatesToManagedData
in class ManagedResource
public void doDeleteChild(BaseSolrResource endpoint, String childId)
doDeleteChild
in class ManagedResource
public void doGet(BaseSolrResource endpoint, String childId)
doGet
in class ManagedResource
public LTRScoringModel getModel(String modelName)
public static LTRScoringModel fromLTRScoringModelMap(SolrResourceLoader solrResourceLoader, Map<String,Object> modelMap, ManagedFeatureStore managedFeatureStore)
Copyright © 2000-2019 Apache Software Foundation. All Rights Reserved.