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 Summary
Fields Modifier and Type Field Description static int
REVIEWED_TECTONIC_SUMMARY_WEIGHT
Deprecated.Summary weight-
Fields inherited from class gov.usgs.earthquake.indexer.DefaultIndexerModule
ANSS_CONTRIBUTOR_WEIGHT, AUTHORITATIVE_EVENT_WEIGHT, AUTHORITATIVE_WEIGHT, DEFAULT_PREFERRED_WEIGHT, IGNORE_REGIONS_PROPERTY, NEIC_CONTRIBUTOR_WEIGHT, SAME_SOURCE_WEIGHT
-
Fields inherited from interface gov.usgs.earthquake.indexer.IndexerModule
LEVEL_DEFAULT, LEVEL_SUPPORTED, LEVEL_UNSUPPORTED
-
-
Constructor Summary
Constructors Constructor Description TectonicSummaryIndexerModule()
Deprecated.
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description protected long
getPreferredWeight(ProductSummary summary)
Deprecated.Calculate the preferred weight for a product summary.int
getSupportLevel(Product product)
Deprecated.This module provides a default level of support for any type of product.-
Methods inherited from class gov.usgs.earthquake.indexer.DefaultIndexerModule
configure, getBaseProductType, getIgnoreRegions, getProductSummary, getSignatureVerifier, setSignatureVerifier
-
Methods inherited from class gov.usgs.util.DefaultConfigurable
getName, setName, shutdown, startup
-
-
-
-
Field Detail
-
REVIEWED_TECTONIC_SUMMARY_WEIGHT
public static final int REVIEWED_TECTONIC_SUMMARY_WEIGHT
Deprecated.Summary weight- See Also:
- Constant Field Values
-
-
Method Detail
-
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 interfaceIndexerModule
- Overrides:
getSupportLevel
in classDefaultIndexerModule
- Parameters:
product
- the product to test.- Returns:
- IndexerModule.LEVEL_DEFAULT.
-
getPreferredWeight
protected long getPreferredWeight(ProductSummary summary) throws java.lang.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 classDefaultIndexerModule
- Parameters:
summary
- the summary to calculate a preferred weight.- Returns:
- the absolute preferred weight.
- Throws:
java.lang.Exception
- if error occurs
-
-