Package gov.usgs.earthquake.indexer
Class EventSummary
- java.lang.Object
-
- gov.usgs.earthquake.indexer.EventSummary
-
- All Implemented Interfaces:
java.lang.Comparable<EventSummary>
public class EventSummary extends java.lang.Object implements java.lang.Comparable<EventSummary>
Summary of an Event and its products.
-
-
Constructor Summary
Constructors Constructor Description EventSummary()
Create a new EventSummary.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description int
compareTo(EventSummary that)
java.math.BigDecimal
getDepth()
java.util.Map<java.lang.String,java.lang.String>
getEventCodes()
java.lang.String
getId()
Combines source + source code for ID or returns nulljava.lang.Long
getIndexId()
java.math.BigDecimal
getLatitude()
java.math.BigDecimal
getLongitude()
java.math.BigDecimal
getMagnitude()
java.util.Map<java.lang.String,java.lang.String>
getProperties()
These properties are derived from product properties, and are those desirable for searching at an event level.java.lang.String
getSource()
java.lang.String
getSourceCode()
java.util.Date
getTime()
boolean
isDeleted()
void
setDeleted(boolean deleted)
void
setDepth(java.math.BigDecimal depth)
void
setIndexId(java.lang.Long indexId)
void
setLatitude(java.math.BigDecimal latitude)
void
setLongitude(java.math.BigDecimal longitude)
void
setMagnitude(java.math.BigDecimal magnitude)
void
setSource(java.lang.String source)
void
setSourceCode(java.lang.String sourceCode)
void
setTime(java.util.Date time)
-
-
-
Method Detail
-
setIndexId
public void setIndexId(java.lang.Long indexId)
- Parameters:
indexId
- to set
-
getIndexId
public java.lang.Long getIndexId()
- Returns:
- indexID
-
getId
public java.lang.String getId()
Combines source + source code for ID or returns null- Returns:
- Id or null
-
getSource
public java.lang.String getSource()
- Returns:
- source
-
setSource
public void setSource(java.lang.String source)
- Parameters:
source
- to set
-
getSourceCode
public java.lang.String getSourceCode()
- Returns:
- sourceCode
-
setSourceCode
public void setSourceCode(java.lang.String sourceCode)
- Parameters:
sourceCode
- to set
-
getTime
public java.util.Date getTime()
- Returns:
- time
-
setTime
public void setTime(java.util.Date time)
- Parameters:
time
- to set
-
getLatitude
public java.math.BigDecimal getLatitude()
- Returns:
- latitude
-
setLatitude
public void setLatitude(java.math.BigDecimal latitude)
- Parameters:
latitude
- to set
-
getLongitude
public java.math.BigDecimal getLongitude()
- Returns:
- longitude
-
setLongitude
public void setLongitude(java.math.BigDecimal longitude)
- Parameters:
longitude
- to set
-
getDepth
public java.math.BigDecimal getDepth()
- Returns:
- depth
-
setDepth
public void setDepth(java.math.BigDecimal depth)
- Parameters:
depth
- to set
-
getMagnitude
public java.math.BigDecimal getMagnitude()
- Returns:
- magnitude
-
setMagnitude
public void setMagnitude(java.math.BigDecimal magnitude)
- Parameters:
magnitude
- to set
-
setDeleted
public void setDeleted(boolean deleted)
- Parameters:
deleted
- to set
-
isDeleted
public boolean isDeleted()
- Returns:
- deleted
-
getProperties
public java.util.Map<java.lang.String,java.lang.String> 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
public java.util.Map<java.lang.String,java.lang.String> getEventCodes()
- Returns:
- A map of event codes associated with this event.
-
compareTo
public int compareTo(EventSummary that)
- Specified by:
compareTo
in interfacejava.lang.Comparable<EventSummary>
-
-