Class 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 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 custom DynamicSchemaResolver
      Parameters:
      solrClient - Solr client
      adapter - injected implementation of FilterAdapter
      resolver - Solr schema resolver
  • Method Details

    • getContentTypes

      public Set<ddf.catalog.data.ContentType> getContentTypes()
      Specified by:
      getContentTypes in interface ddf.catalog.source.Source
    • isAvailable

      public boolean isAvailable()
      Specified by:
      isAvailable in interface ddf.catalog.source.Source
    • isAvailable

      public boolean isAvailable(ddf.catalog.source.SourceMonitor callback)
      Specified by:
      isAvailable in interface ddf.catalog.source.Source
    • getDescription

      public String getDescription()
      Specified by:
      getDescription in interface ddf.catalog.util.Describable
      Specified by:
      getDescription in interface org.codice.ddf.platform.services.common.Describable
      Overrides:
      getDescription in class DescribableImpl
    • getOrganization

      public String getOrganization()
      Specified by:
      getOrganization in interface ddf.catalog.util.Describable
      Specified by:
      getOrganization in interface org.codice.ddf.platform.services.common.Describable
      Overrides:
      getOrganization in class DescribableImpl
    • getTitle

      public String getTitle()
      Specified by:
      getTitle in interface ddf.catalog.util.Describable
      Specified by:
      getTitle in interface org.codice.ddf.platform.services.common.Describable
      Overrides:
      getTitle in class DescribableImpl
    • getVersion

      public String getVersion()
      Specified by:
      getVersion in interface ddf.catalog.util.Describable
      Specified by:
      getVersion in interface org.codice.ddf.platform.services.common.Describable
      Overrides:
      getVersion in class DescribableImpl
    • maskId

      public void maskId(String id)
      Specified by:
      maskId in interface ddf.catalog.util.Maskable
      Overrides:
      maskId in class MaskableImpl
    • query

      public ddf.catalog.operation.SourceResponse query(ddf.catalog.operation.QueryRequest request) throws ddf.catalog.source.UnsupportedQueryException
      Specified by:
      query in interface ddf.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:
      create in interface ddf.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:
      update in interface ddf.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:
      delete in interface ddf.catalog.source.CatalogProvider
      Throws:
      ddf.catalog.source.IngestException
    • shutdown

      public void shutdown()