Package gov.usgs.earthquake.indexer
Class ExtentSummary
java.lang.Object
gov.usgs.earthquake.indexer.ExtentSummary
Stores ExtentSummary information for products.
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final String
Property for Extent End Timestatic final String
Property for Extent Max Latstatic final String
Property for Extent Max Longstatic final String
Property for Extent Min latstatic final String
Property for Extent Min Longstatic final String
Property for Extent Start time -
Constructor Summary
ConstructorsConstructorDescriptionEmpty constructorExtentSummary
(ProductSummary product) Builds an extentSummary from product properties. -
Method Summary
Modifier and TypeMethodDescriptionboolean
isValid()
Returns TRUE if this extent should be put in the extentSummary table (at least one property is not null)void
setEndTime
(Date endTime) void
setIndexId
(Long id) void
setMaxLatitude
(BigDecimal maxLatitude) void
setMaxLongitude
(BigDecimal maxLongitude) void
setMinLatitude
(BigDecimal minLatitude) void
setMinLongitude
(BigDecimal minLongitude) void
setStartTime
(Date startTime)
-
Field Details
-
EXTENT_START_TIME_PROPERTY
Property for Extent Start time- See Also:
-
EXTENT_END_TIME_PROPERTY
Property for Extent End Time- See Also:
-
EXTENT_MAX_LAT_PROPERTY
Property for Extent Max Lat- See Also:
-
EXTENT_MIN_LAT_PROPERTY
Property for Extent Min lat- See Also:
-
EXTENT_MAX_LONG_PROPERTY
Property for Extent Max Long- See Also:
-
EXTENT_MIN_LONG_PROPERTY
Property for Extent Min Long- See Also:
-
-
Constructor Details
-
ExtentSummary
public ExtentSummary()Empty constructor -
ExtentSummary
Builds an extentSummary from product properties. If the product has none of the properties, the ExtentSummary is still built.- Parameters:
product
- the productSummary to build from
-
-
Method Details
-
isValid
public boolean isValid()Returns TRUE if this extent should be put in the extentSummary table (at least one property is not null)- Returns:
- boolean
-
getIndexId
- Returns:
- index Id
-
setIndexId
- Parameters:
id
- indexId to set
-
getStartTime
- Returns:
- startTime
-
setStartTime
- Parameters:
startTime
- date to set
-
getEndTime
- Returns:
- endTime
-
setEndTime
- Parameters:
endTime
- date to set
-
getMaxLatitude
- Returns:
- maxLatitude
-
setMaxLatitude
- Parameters:
maxLatitude
- BigDecimal to set
-
getMinLatitude
- Returns:
- minLatitude
-
setMinLatitude
- Parameters:
minLatitude
- BigDecimal to set
-
getMaxLongitude
- Returns:
- maxLongitude
-
setMaxLongitude
- Parameters:
maxLongitude
- BigDecimal to set
-
getMinLongitude
- Returns:
- minLongitude
-
setMinLongitude
- Parameters:
minLongitude
- to set
-