Interface EntityMergeStrategy
- All Known Implementing Classes:
AbstractCollectionEntityMergeStrategy,AbstractEntityMergeStrategy,AbstractIdentifiableSingleEntityMergeStrategy,AbstractNonIdentifiableSingleEntityMergeStrategy,AbstractSingleEntityMergeStrategy,AgencyMergeStrategy,AreaMergeStrategy,FareAttributeMergeStrategy,FareRuleMergeStrategy,FeedInfoMergeStrategy,FrequencyMergeStrategy,RouteMergeStrategy,ServiceCalendarMergeStrategy,ShapePointMergeStrategy,StopMergeStrategy,TransferMergeStrategy,TripMergeStrategy
public interface EntityMergeStrategy
Defines an interface for performing a merge operation on entities of particular type from a
source GTFS feed into a merged GTFS feed. Typically, each GTFS entity type (stops vs routes vs
trips vs ...) will define its own EntityMergeStrategy.
- Author:
- bdferris
-
Method Summary
Modifier and TypeMethodDescriptionvoidgetEntityTypes(Collection<Class<?>> entityTypes) Determine the list of entity types handled by this merge strategy.voidmerge(GtfsMergeContext context) Perform a merge operation for the entities specified in theGtfsMergeContext.
-
Method Details
-
getEntityTypes
Determine the list of entity types handled by this merge strategy.- Parameters:
entityTypes- the handled types should be added to this output collection.
-
merge
Perform a merge operation for the entities specified in theGtfsMergeContext. This method will be called repeated by theGtfsMerger, once for each input feed.- Parameters:
context- the merge state for the current merge operation
-