org.onebusaway.transit_data_federation.bundle.tasks
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 a
GtfsBundles
entry in an ApplicationContext
, into a common
data store, with addition of EntityReplacementStrategy
.
- Author:
- bdferris
- See Also:
GtfsBundles
,
GtfsMultiReaderImpl
,
EntityReplacementStrategy
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
GtfsReadingSupport
public GtfsReadingSupport()
readGtfsIntoStore
public static void readGtfsIntoStore(org.springframework.context.ApplicationContext context,
org.onebusaway.gtfs.services.GenericMutableDao store)
throws IOException
- Supplies a default entity schema factory to
readGtfsIntoStore(ApplicationContext, GenericMutableDao, DefaultEntitySchemaFactory)
- Parameters:
context
- store
-
- 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 IOException
- Read gtfs, as defined by
GtfsBundles
entries in the application
context, into the specified data store. Gtfs will be read in quasi-paralle
mode using GtfsMultiReaderImpl
. Any
EntityReplacementStrategy
strategies defined in the application
context will be applied as well.
- Parameters:
context
- store
- factory
-
- Throws:
IOException
Copyright © 2012 OneBusAway. All Rights Reserved.