Package gov.usgs.earthquake.indexer
Class ExtentSummary
- java.lang.Object
-
- gov.usgs.earthquake.indexer.ExtentSummary
-
public class ExtentSummary extends java.lang.Object
Stores ExtentSummary information for products.
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.String
EXTENT_END_TIME_PROPERTY
Property for Extent End Timestatic java.lang.String
EXTENT_MAX_LAT_PROPERTY
Property for Extent Max Latstatic java.lang.String
EXTENT_MAX_LONG_PROPERTY
Property for Extent Max Longstatic java.lang.String
EXTENT_MIN_LAT_PROPERTY
Property for Extent Min latstatic java.lang.String
EXTENT_MIN_LONG_PROPERTY
Property for Extent Min Longstatic java.lang.String
EXTENT_START_TIME_PROPERTY
Property for Extent Start time
-
Constructor Summary
Constructors Constructor Description ExtentSummary()
Empty constructorExtentSummary(ProductSummary product)
Builds an extentSummary from product properties.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.util.Date
getEndTime()
java.lang.Long
getIndexId()
java.math.BigDecimal
getMaxLatitude()
java.math.BigDecimal
getMaxLongitude()
java.math.BigDecimal
getMinLatitude()
java.math.BigDecimal
getMinLongitude()
java.util.Date
getStartTime()
boolean
isValid()
Returns TRUE if this extent should be put in the extentSummary table (at least one property is not null)void
setEndTime(java.util.Date endTime)
void
setIndexId(java.lang.Long id)
void
setMaxLatitude(java.math.BigDecimal maxLatitude)
void
setMaxLongitude(java.math.BigDecimal maxLongitude)
void
setMinLatitude(java.math.BigDecimal minLatitude)
void
setMinLongitude(java.math.BigDecimal minLongitude)
void
setStartTime(java.util.Date startTime)
-
-
-
Field Detail
-
EXTENT_START_TIME_PROPERTY
public static final java.lang.String EXTENT_START_TIME_PROPERTY
Property for Extent Start time- See Also:
- Constant Field Values
-
EXTENT_END_TIME_PROPERTY
public static final java.lang.String EXTENT_END_TIME_PROPERTY
Property for Extent End Time- See Also:
- Constant Field Values
-
EXTENT_MAX_LAT_PROPERTY
public static final java.lang.String EXTENT_MAX_LAT_PROPERTY
Property for Extent Max Lat- See Also:
- Constant Field Values
-
EXTENT_MIN_LAT_PROPERTY
public static final java.lang.String EXTENT_MIN_LAT_PROPERTY
Property for Extent Min lat- See Also:
- Constant Field Values
-
EXTENT_MAX_LONG_PROPERTY
public static final java.lang.String EXTENT_MAX_LONG_PROPERTY
Property for Extent Max Long- See Also:
- Constant Field Values
-
EXTENT_MIN_LONG_PROPERTY
public static final java.lang.String EXTENT_MIN_LONG_PROPERTY
Property for Extent Min Long- See Also:
- Constant Field Values
-
-
Constructor Detail
-
ExtentSummary
public ExtentSummary()
Empty constructor
-
ExtentSummary
public ExtentSummary(ProductSummary product)
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 Detail
-
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
public java.lang.Long getIndexId()
- Returns:
- index Id
-
setIndexId
public void setIndexId(java.lang.Long id)
- Parameters:
id
- indexId to set
-
getStartTime
public java.util.Date getStartTime()
- Returns:
- startTime
-
setStartTime
public void setStartTime(java.util.Date startTime)
- Parameters:
startTime
- date to set
-
getEndTime
public java.util.Date getEndTime()
- Returns:
- endTime
-
setEndTime
public void setEndTime(java.util.Date endTime)
- Parameters:
endTime
- date to set
-
getMaxLatitude
public java.math.BigDecimal getMaxLatitude()
- Returns:
- maxLatitude
-
setMaxLatitude
public void setMaxLatitude(java.math.BigDecimal maxLatitude)
- Parameters:
maxLatitude
- BigDecimal to set
-
getMinLatitude
public java.math.BigDecimal getMinLatitude()
- Returns:
- minLatitude
-
setMinLatitude
public void setMinLatitude(java.math.BigDecimal minLatitude)
- Parameters:
minLatitude
- BigDecimal to set
-
getMaxLongitude
public java.math.BigDecimal getMaxLongitude()
- Returns:
- maxLongitude
-
setMaxLongitude
public void setMaxLongitude(java.math.BigDecimal maxLongitude)
- Parameters:
maxLongitude
- BigDecimal to set
-
getMinLongitude
public java.math.BigDecimal getMinLongitude()
- Returns:
- minLongitude
-
setMinLongitude
public void setMinLongitude(java.math.BigDecimal minLongitude)
- Parameters:
minLongitude
- to set
-
-