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 enumEnumeration of indexer event types. -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final IndexerChange.IndexerChangeTypeIndexerChangeType for Event Addedstatic final IndexerChange.IndexerChangeTypeIndexerChangeType for Event Archivedstatic final IndexerChange.IndexerChangeTypeIndexerChangeType for Event Deletedstatic final IndexerChange.IndexerChangeTypeIndexerChangeType for Event Mergedstatic final IndexerChange.IndexerChangeTypeIndexerChangeType for Event Splitstatic final IndexerChange.IndexerChangeTypeIndexerChangeType for Event Updatedstatic final IndexerChange.IndexerChangeTypeIndexerChangeType for Product Addedstatic final IndexerChange.IndexerChangeTypeIndexerChangeType for Product Archivedstatic final IndexerChange.IndexerChangeTypeIndexerChangeType for Product Deletedstatic final IndexerChange.IndexerChangeTypeIndexerChangeType for Product Updated -
Constructor Summary
ConstructorsConstructorDescriptionIndexerChange(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
-
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 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:
-
-
Method Details