Package gov.usgs.earthquake.indexer
Class IndexerChange
java.lang.Object
gov.usgs.earthquake.indexer.IndexerChange
Description of a specific change to a
ProductIndex
.
Multiple IndexerChange objects may be created, and grouped into an
IndexerEvent
, in response to one product being processed.-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic enum
Enumeration of indexer event types. -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final IndexerChange.IndexerChangeType
IndexerChangeType for Event Addedstatic final IndexerChange.IndexerChangeType
IndexerChangeType for Event Archivedstatic final IndexerChange.IndexerChangeType
IndexerChangeType for Event Deletedstatic final IndexerChange.IndexerChangeType
IndexerChangeType for Event Mergedstatic final IndexerChange.IndexerChangeType
IndexerChangeType for Event Splitstatic final IndexerChange.IndexerChangeType
IndexerChangeType for Event Updatedstatic final IndexerChange.IndexerChangeType
IndexerChangeType for Product Addedstatic final IndexerChange.IndexerChangeType
IndexerChangeType for Product Archivedstatic final IndexerChange.IndexerChangeType
IndexerChangeType for Product Deletedstatic final IndexerChange.IndexerChangeType
IndexerChangeType for Product Updated -
Constructor Summary
ConstructorsConstructorDescriptionIndexerChange
(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
-
Field Details
-
EVENT_ADDED
IndexerChangeType for Event Added -
EVENT_UPDATED
IndexerChangeType for Event Updated -
EVENT_DELETED
IndexerChangeType for Event Deleted -
EVENT_ARCHIVED
IndexerChangeType for Event Archived -
EVENT_MERGED
IndexerChangeType for Event Merged -
EVENT_SPLIT
IndexerChangeType for Event Split -
PRODUCT_ADDED
IndexerChangeType for Product Added -
PRODUCT_UPDATED
IndexerChangeType for Product Updated -
PRODUCT_DELETED
IndexerChangeType for Product Deleted -
PRODUCT_ARCHIVED
IndexerChangeType for Product Archived
-
-
Constructor Details
-
IndexerChange
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:
-
-
Method Details