Package ddf.catalog.source.solr
Class SolrCatalogProviderImpl
java.lang.Object
ddf.catalog.util.impl.DescribableImpl
ddf.catalog.util.impl.MaskableImpl
ddf.catalog.source.solr.SolrCatalogProviderImpl
- 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 class SolrCatalogProviderImpl
extends MaskableImpl
implements ddf.catalog.source.CatalogProvider
CatalogProvider implementation using Apache Solr-
Constructor Summary
ConstructorsConstructorDescriptionSolrCatalogProviderImpl(org.apache.solr.client.solrj.SolrClient solrClient, ddf.catalog.filter.FilterAdapter adapter, SolrFilterDelegateFactory solrFilterDelegateFactory, DynamicSchemaResolver resolver) Constructor that creates a new instance and allows for a customDynamicSchemaResolver -
Method Summary
Modifier and TypeMethodDescriptionddf.catalog.operation.CreateResponsecreate(ddf.catalog.operation.CreateRequest request) 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 request) voidshutdown()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
-
Constructor Details
-
SolrCatalogProviderImpl
public SolrCatalogProviderImpl(org.apache.solr.client.solrj.SolrClient solrClient, ddf.catalog.filter.FilterAdapter adapter, SolrFilterDelegateFactory solrFilterDelegateFactory, DynamicSchemaResolver resolver) Constructor that creates a new instance and allows for a customDynamicSchemaResolver- Parameters:
solrClient- Solr clientadapter- injected implementation of FilterAdapterresolver- Solr schema resolver
-
-
Method Details
-
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
-
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
-
maskId
- Specified by:
maskIdin interfaceddf.catalog.util.Maskable- Overrides:
maskIdin classMaskableImpl
-
query
public ddf.catalog.operation.SourceResponse query(ddf.catalog.operation.QueryRequest request) throws ddf.catalog.source.UnsupportedQueryException - Specified by:
queryin interfaceddf.catalog.source.Source- Throws:
ddf.catalog.source.UnsupportedQueryException
-
create
public ddf.catalog.operation.CreateResponse create(ddf.catalog.operation.CreateRequest request) throws ddf.catalog.source.IngestException - Specified by:
createin 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
-
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
-
shutdown
public void shutdown()
-