Package gov.usgs.earthquake.indexer
Class EventSummary
java.lang.Object
gov.usgs.earthquake.indexer.EventSummary
- All Implemented Interfaces:
Comparable<EventSummary>
Summary of an Event and its products.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionintcompareTo(EventSummary that) getDepth()getId()Combines source + source code for ID or returns nullThese properties are derived from product properties, and are those desirable for searching at an event level.getTime()booleanvoidsetDeleted(boolean deleted) voidsetDepth(BigDecimal depth) voidsetIndexId(Long indexId) voidsetLatitude(BigDecimal latitude) voidsetLongitude(BigDecimal longitude) voidsetMagnitude(BigDecimal magnitude) voidvoidsetSourceCode(String sourceCode) void
-
Constructor Details
-
EventSummary
public EventSummary()Create a new EventSummary.
-
-
Method Details
-
setIndexId
- Parameters:
indexId- to set
-
getIndexId
- Returns:
- indexID
-
getId
Combines source + source code for ID or returns null- Returns:
- Id or null
-
getSource
- Returns:
- source
-
setSource
- Parameters:
source- to set
-
getSourceCode
- Returns:
- sourceCode
-
setSourceCode
- Parameters:
sourceCode- to set
-
getTime
- Returns:
- time
-
setTime
- Parameters:
time- to set
-
getLatitude
- Returns:
- latitude
-
setLatitude
- Parameters:
latitude- to set
-
getLongitude
- Returns:
- longitude
-
setLongitude
- Parameters:
longitude- to set
-
getDepth
- Returns:
- depth
-
setDepth
- Parameters:
depth- to set
-
getMagnitude
- Returns:
- magnitude
-
setMagnitude
- Parameters:
magnitude- to set
-
setDeleted
public void setDeleted(boolean deleted) - Parameters:
deleted- to set
-
isDeleted
public boolean isDeleted()- Returns:
- deleted
-
getProperties
These properties are derived from product properties, and are those desirable for searching at an event level.- Returns:
- The properties of this event.
-
getEventCodes
- Returns:
- A map of event codes associated with this event.
-
compareTo
- Specified by:
compareToin interfaceComparable<EventSummary>
-