Class GtfsReadingSupport
- java.lang.Object
-
- org.onebusaway.transit_data_federation.bundle.tasks.GtfsReadingSupport
-
public class GtfsReadingSupport extends Object
Convenience methods for reading multiple gtfs feeds, as defined by aGtfsBundlesentry in anApplicationContext, into a common data store, with addition ofEntityReplacementStrategy.- Author:
- bdferris
- See Also:
GtfsBundles,GtfsMultiReaderImpl,EntityReplacementStrategy
-
-
Constructor Summary
Constructors Constructor Description GtfsReadingSupport()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static GtfsBundlesgetGtfsBundles(org.springframework.context.ApplicationContext context)Looks for instances ofGtfsBundlesorGtfsBundlein the application context.static voidreadGtfsIntoStore(org.springframework.context.ApplicationContext context, org.onebusaway.gtfs.services.GenericMutableDao store)Supplies a default entity schema factory toreadGtfsIntoStore(ApplicationContext, GenericMutableDao, DefaultEntitySchemaFactory)static voidreadGtfsIntoStore(org.springframework.context.ApplicationContext context, org.onebusaway.gtfs.services.GenericMutableDao store, boolean disableStopConsolidation)Supplies a default entity schema factory toreadGtfsIntoStore(ApplicationContext, GenericMutableDao, DefaultEntitySchemaFactory)static voidreadGtfsIntoStore(org.springframework.context.ApplicationContext context, org.onebusaway.gtfs.services.GenericMutableDao store, org.onebusaway.csv_entities.schema.DefaultEntitySchemaFactory factory)Read gtfs, as defined byGtfsBundlesentries in the application context, into the specified data store.static voidreadGtfsIntoStore(org.springframework.context.ApplicationContext context, org.onebusaway.gtfs.services.GenericMutableDao store, org.onebusaway.csv_entities.schema.DefaultEntitySchemaFactory factory, boolean disableStopConsolidation)Read gtfs, as defined byGtfsBundlesentries in the application context, into the specified data store.
-
-
-
Method Detail
-
readGtfsIntoStore
public static void readGtfsIntoStore(org.springframework.context.ApplicationContext context, org.onebusaway.gtfs.services.GenericMutableDao store) throws IOExceptionSupplies a default entity schema factory toreadGtfsIntoStore(ApplicationContext, GenericMutableDao, DefaultEntitySchemaFactory)- Parameters:
context-store-- Throws:
IOException
-
readGtfsIntoStore
public static void readGtfsIntoStore(org.springframework.context.ApplicationContext context, org.onebusaway.gtfs.services.GenericMutableDao store, boolean disableStopConsolidation) throws IOExceptionSupplies a default entity schema factory toreadGtfsIntoStore(ApplicationContext, GenericMutableDao, DefaultEntitySchemaFactory)- Parameters:
context-store-disableStopConsolidation-- Throws:
IOException
-
readGtfsIntoStore
public static void readGtfsIntoStore(org.springframework.context.ApplicationContext context, org.onebusaway.gtfs.services.GenericMutableDao store, org.onebusaway.csv_entities.schema.DefaultEntitySchemaFactory factory) throws IOExceptionRead gtfs, as defined byGtfsBundlesentries in the application context, into the specified data store. Gtfs will be read in quasi-paralle mode usingGtfsMultiReaderImpl. AnyEntityReplacementStrategystrategies defined in the application context will be applied as well.- Parameters:
context-store-factory-- Throws:
IOException
-
readGtfsIntoStore
public static void readGtfsIntoStore(org.springframework.context.ApplicationContext context, org.onebusaway.gtfs.services.GenericMutableDao store, org.onebusaway.csv_entities.schema.DefaultEntitySchemaFactory factory, boolean disableStopConsolidation) throws IOExceptionRead gtfs, as defined byGtfsBundlesentries in the application context, into the specified data store. Gtfs will be read in quasi-paralle mode usingGtfsMultiReaderImpl. AnyEntityReplacementStrategystrategies defined in the application context will be applied as well.- Parameters:
context-store-factory-disableStopConsolidation-- Throws:
IOException
-
getGtfsBundles
public static GtfsBundles getGtfsBundles(org.springframework.context.ApplicationContext context)
Looks for instances ofGtfsBundlesorGtfsBundlein the application context.- Parameters:
context-- Returns:
-
-