Class TectonicSummaryIndexerModule

java.lang.Object
gov.usgs.util.DefaultConfigurable
gov.usgs.earthquake.indexer.DefaultIndexerModule
gov.usgs.earthquake.tectonicsummary.TectonicSummaryIndexerModule
All Implemented Interfaces:
IndexerModule, Configurable

@Deprecated public class TectonicSummaryIndexerModule extends DefaultIndexerModule
Deprecated.
Tectonic Summary indexer module. Provides a higher and more specific level of support for tectonic summary products, including checking for "Reviewed" status on the tectonic summary. These "Reviewed tectonic summmaries will always be preferred.
  • Field Details

    • REVIEWED_TECTONIC_SUMMARY_WEIGHT

      public static final int REVIEWED_TECTONIC_SUMMARY_WEIGHT
      Deprecated.
      Summary weight
      See Also:
  • Constructor Details

    • TectonicSummaryIndexerModule

      public TectonicSummaryIndexerModule()
      Deprecated.
  • Method Details

    • getSupportLevel

      public int getSupportLevel(Product product)
      Deprecated.
      Description copied from class: DefaultIndexerModule
      This module provides a default level of support for any type of product.
      Specified by:
      getSupportLevel in interface IndexerModule
      Overrides:
      getSupportLevel in class DefaultIndexerModule
      Parameters:
      product - the product to test.
      Returns:
      IndexerModule.LEVEL_DEFAULT.
    • getPreferredWeight

      protected long getPreferredWeight(ProductSummary summary) throws Exception
      Deprecated.
      Description copied from class: DefaultIndexerModule
      Calculate the preferred weight for a product summary. This method is called after creating a product summary, but before returning the created summary. It's return value is used to assign the product summary preferred weight. Within each type of product, the summary with the largest preferred weight is considered preferred.
      Overrides:
      getPreferredWeight in class DefaultIndexerModule
      Parameters:
      summary - the summary to calculate a preferred weight.
      Returns:
      the absolute preferred weight.
      Throws:
      Exception - if error occurs