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.
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
FieldsModifier and TypeFieldDescriptionstatic final int
Deprecated.Summary weightFields 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 -
Method Summary
Modifier and TypeMethodDescriptionprotected 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 Details
-
REVIEWED_TECTONIC_SUMMARY_WEIGHT
public static final int REVIEWED_TECTONIC_SUMMARY_WEIGHTDeprecated.Summary weight- See Also:
-
-
Constructor Details
-
TectonicSummaryIndexerModule
public TectonicSummaryIndexerModule()Deprecated.
-
-
Method Details
-
getSupportLevel
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
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:
Exception
- if error occurs
-