Package ddf.catalog.source.solr
Class RemoteSolrCatalogProvider
java.lang.Object
ddf.catalog.util.impl.DescribableImpl
ddf.catalog.util.impl.MaskableImpl
ddf.catalog.source.solr.RemoteSolrCatalogProvider
- All Implemented Interfaces:
ddf.catalog.source.CatalogProvider,ddf.catalog.source.Source,ddf.catalog.util.Describable,ddf.catalog.util.Maskable,org.codice.ddf.platform.services.common.Describable
public abstract class RemoteSolrCatalogProvider
extends MaskableImpl
implements ddf.catalog.source.CatalogProvider
Common base class for all remote Solr Catalog providers.
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionRemoteSolrCatalogProvider(ddf.catalog.filter.FilterAdapter filterAdapter, org.apache.solr.client.solrj.SolrClient client, SolrFilterDelegateFactory solrFilterDelegateFactory, DynamicSchemaResolver resolver) Constructor. -
Method Summary
Modifier and TypeMethodDescriptionddf.catalog.operation.CreateResponsecreate(ddf.catalog.operation.CreateRequest createRequest) ddf.catalog.operation.DeleteResponsedelete(ddf.catalog.operation.DeleteRequest deleteRequest) Set<ddf.catalog.data.ContentType> getTitle()booleanbooleanisAvailable(ddf.catalog.source.SourceMonitor callback) voidddf.catalog.operation.SourceResponsequery(ddf.catalog.operation.QueryRequest queryRequest) voidsetForceAutoCommit(boolean forceAutoCommit) Used to signal to the Solr client to commit on every transaction.voidshutdown()Shuts down the connection to Solr and releases resources.ddf.catalog.operation.UpdateResponseupdate(ddf.catalog.operation.UpdateRequest updateRequest) Methods inherited from class ddf.catalog.util.impl.MaskableImpl
setIdMethods inherited from class ddf.catalog.util.impl.DescribableImpl
getId, setDescription, setOrganization, setShortname, setTitle, setVersionMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface ddf.catalog.util.Describable
getIdMethods inherited from interface ddf.catalog.source.Source
getSecurityAttributes
-
Field Details
-
SOLR_CATALOG_CORE_NAME
- See Also:
-
-
Constructor Details
-
RemoteSolrCatalogProvider
public RemoteSolrCatalogProvider(ddf.catalog.filter.FilterAdapter filterAdapter, org.apache.solr.client.solrj.SolrClient client, SolrFilterDelegateFactory solrFilterDelegateFactory, @Nullable DynamicSchemaResolver resolver) Constructor.- Parameters:
filterAdapter- filter adaptor this provider will useclient- client this provider will use to connect to SolrsolrFilterDelegateFactory- Solr filter delegate factory this provider will useresolver- schema resolver this provider will use. A default schema resolver will be used if this parameter isnull.
-
-
Method Details
-
maskId
- Specified by:
maskIdin interfaceddf.catalog.util.Maskable- Overrides:
maskIdin classMaskableImpl
-
setForceAutoCommit
public void setForceAutoCommit(boolean forceAutoCommit) Used to signal to the Solr client to commit on every transaction. Updates the underlyingConfigurationStoreso that the property is propagated throughout the Solr Catalog Provider code.- Parameters:
forceAutoCommit-trueto force auto-commits
-
getContentTypes
- Specified by:
getContentTypesin interfaceddf.catalog.source.Source
-
isAvailable
public boolean isAvailable()- Specified by:
isAvailablein interfaceddf.catalog.source.Source
-
isAvailable
public boolean isAvailable(ddf.catalog.source.SourceMonitor callback) - Specified by:
isAvailablein interfaceddf.catalog.source.Source
-
query
public ddf.catalog.operation.SourceResponse query(ddf.catalog.operation.QueryRequest queryRequest) throws ddf.catalog.source.UnsupportedQueryException - Specified by:
queryin interfaceddf.catalog.source.Source- Throws:
ddf.catalog.source.UnsupportedQueryException
-
getDescription
- Specified by:
getDescriptionin interfaceddf.catalog.util.Describable- Specified by:
getDescriptionin interfaceorg.codice.ddf.platform.services.common.Describable- Overrides:
getDescriptionin classDescribableImpl
-
getOrganization
- Specified by:
getOrganizationin interfaceddf.catalog.util.Describable- Specified by:
getOrganizationin interfaceorg.codice.ddf.platform.services.common.Describable- Overrides:
getOrganizationin classDescribableImpl
-
getTitle
- Specified by:
getTitlein interfaceddf.catalog.util.Describable- Specified by:
getTitlein interfaceorg.codice.ddf.platform.services.common.Describable- Overrides:
getTitlein classDescribableImpl
-
getVersion
- Specified by:
getVersionin interfaceddf.catalog.util.Describable- Specified by:
getVersionin interfaceorg.codice.ddf.platform.services.common.Describable- Overrides:
getVersionin classDescribableImpl
-
create
public ddf.catalog.operation.CreateResponse create(ddf.catalog.operation.CreateRequest createRequest) throws ddf.catalog.source.IngestException - Specified by:
createin interfaceddf.catalog.source.CatalogProvider- Throws:
ddf.catalog.source.IngestException
-
delete
public ddf.catalog.operation.DeleteResponse delete(ddf.catalog.operation.DeleteRequest deleteRequest) throws ddf.catalog.source.IngestException - Specified by:
deletein interfaceddf.catalog.source.CatalogProvider- Throws:
ddf.catalog.source.IngestException
-
update
public ddf.catalog.operation.UpdateResponse update(ddf.catalog.operation.UpdateRequest updateRequest) throws ddf.catalog.source.IngestException - Specified by:
updatein interfaceddf.catalog.source.CatalogProvider- Throws:
ddf.catalog.source.IngestException
-
shutdown
public void shutdown()Shuts down the connection to Solr and releases resources.
-