Package gov.usgs.earthquake.indexer
Class IndexerChange
- java.lang.Object
-
- gov.usgs.earthquake.indexer.IndexerChange
-
public class IndexerChange extends java.lang.Object
Description of a specific change to aProductIndex
. Multiple IndexerChange objects may be created, and grouped into anIndexerEvent
, in response to one product being processed.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
IndexerChange.IndexerChangeType
Enumeration of indexer event types.
-
Field Summary
Fields Modifier and Type Field Description static IndexerChange.IndexerChangeType
EVENT_ADDED
IndexerChangeType for Event Addedstatic IndexerChange.IndexerChangeType
EVENT_ARCHIVED
IndexerChangeType for Event Archivedstatic IndexerChange.IndexerChangeType
EVENT_DELETED
IndexerChangeType for Event Deletedstatic IndexerChange.IndexerChangeType
EVENT_MERGED
IndexerChangeType for Event Mergedstatic IndexerChange.IndexerChangeType
EVENT_SPLIT
IndexerChangeType for Event Splitstatic IndexerChange.IndexerChangeType
EVENT_UPDATED
IndexerChangeType for Event Updatedstatic IndexerChange.IndexerChangeType
PRODUCT_ADDED
IndexerChangeType for Product Addedstatic IndexerChange.IndexerChangeType
PRODUCT_ARCHIVED
IndexerChangeType for Product Archivedstatic IndexerChange.IndexerChangeType
PRODUCT_DELETED
IndexerChangeType for Product Deletedstatic IndexerChange.IndexerChangeType
PRODUCT_UPDATED
IndexerChangeType for Product Updated
-
Constructor Summary
Constructors Constructor Description IndexerChange(IndexerChange.IndexerChangeType type, Event originalEvent, Event newEvent)
Constructor to quickly create a newIndexerChange
object to be added to the list of changes in a givenIndexerEvent
.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Event
getNewEvent()
Event
getOriginalEvent()
IndexerChange.IndexerChangeType
getType()
java.lang.String
toString()
-
-
-
Field Detail
-
EVENT_ADDED
public static final IndexerChange.IndexerChangeType EVENT_ADDED
IndexerChangeType for Event Added
-
EVENT_UPDATED
public static final IndexerChange.IndexerChangeType EVENT_UPDATED
IndexerChangeType for Event Updated
-
EVENT_DELETED
public static final IndexerChange.IndexerChangeType EVENT_DELETED
IndexerChangeType for Event Deleted
-
EVENT_ARCHIVED
public static final IndexerChange.IndexerChangeType EVENT_ARCHIVED
IndexerChangeType for Event Archived
-
EVENT_MERGED
public static final IndexerChange.IndexerChangeType EVENT_MERGED
IndexerChangeType for Event Merged
-
EVENT_SPLIT
public static final IndexerChange.IndexerChangeType EVENT_SPLIT
IndexerChangeType for Event Split
-
PRODUCT_ADDED
public static final IndexerChange.IndexerChangeType PRODUCT_ADDED
IndexerChangeType for Product Added
-
PRODUCT_UPDATED
public static final IndexerChange.IndexerChangeType PRODUCT_UPDATED
IndexerChangeType for Product Updated
-
PRODUCT_DELETED
public static final IndexerChange.IndexerChangeType PRODUCT_DELETED
IndexerChangeType for Product Deleted
-
PRODUCT_ARCHIVED
public static final IndexerChange.IndexerChangeType PRODUCT_ARCHIVED
IndexerChangeType for Product Archived
-
-
Constructor Detail
-
IndexerChange
public IndexerChange(IndexerChange.IndexerChangeType type, Event originalEvent, Event newEvent)
Constructor to quickly create a newIndexerChange
object to be added to the list of changes in a givenIndexerEvent
. Note theoldEvent
andnewEvent
will have particular meanings depending on the giventype
of change that occurred.- Parameters:
type
- The type of change that occurred.originalEvent
- The event as it was before the change occurred.newEvent
- The event as it is after the change occurred.- See Also:
IndexerEvent
-
-
Method Detail
-
getType
public IndexerChange.IndexerChangeType getType()
- Returns:
- IndexerChangeType
-
getOriginalEvent
public Event getOriginalEvent()
- Returns:
- originalEvent
-
getNewEvent
public Event getNewEvent()
- Returns:
- newEvent
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
-