Package gov.usgs.earthquake.indexer
Class IndexerChange
- java.lang.Object
-
- gov.usgs.earthquake.indexer.IndexerChange
-
public class IndexerChange extends java.lang.ObjectDescription 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 classIndexerChange.IndexerChangeTypeEnumeration of indexer event types.
-
Field Summary
Fields Modifier and Type Field Description static IndexerChange.IndexerChangeTypeEVENT_ADDEDIndexerChangeType for Event Addedstatic IndexerChange.IndexerChangeTypeEVENT_ARCHIVEDIndexerChangeType for Event Archivedstatic IndexerChange.IndexerChangeTypeEVENT_DELETEDIndexerChangeType for Event Deletedstatic IndexerChange.IndexerChangeTypeEVENT_MERGEDIndexerChangeType for Event Mergedstatic IndexerChange.IndexerChangeTypeEVENT_SPLITIndexerChangeType for Event Splitstatic IndexerChange.IndexerChangeTypeEVENT_UPDATEDIndexerChangeType for Event Updatedstatic IndexerChange.IndexerChangeTypePRODUCT_ADDEDIndexerChangeType for Product Addedstatic IndexerChange.IndexerChangeTypePRODUCT_ARCHIVEDIndexerChangeType for Product Archivedstatic IndexerChange.IndexerChangeTypePRODUCT_DELETEDIndexerChangeType for Product Deletedstatic IndexerChange.IndexerChangeTypePRODUCT_UPDATEDIndexerChangeType for Product Updated
-
Constructor Summary
Constructors Constructor Description IndexerChange(IndexerChange.IndexerChangeType type, Event originalEvent, Event newEvent)Constructor to quickly create a newIndexerChangeobject to be added to the list of changes in a givenIndexerEvent.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description EventgetNewEvent()EventgetOriginalEvent()IndexerChange.IndexerChangeTypegetType()java.lang.StringtoString()
-
-
-
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 newIndexerChangeobject to be added to the list of changes in a givenIndexerEvent. Note theoldEventandnewEventwill have particular meanings depending on the giventypeof 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:
toStringin classjava.lang.Object
-
-