Package org.onebusaway.gtfs.impl
Class GtfsRelationalDaoImpl
java.lang.Object
org.onebusaway.gtfs.impl.GenericDaoImpl
org.onebusaway.gtfs.impl.GtfsDaoImpl
org.onebusaway.gtfs.impl.GtfsRelationalDaoImpl
- All Implemented Interfaces:
GenericDao,GenericMutableDao,GtfsDao,GtfsMutableDao,GtfsMutableRelationalDao,GtfsRelationalDao
A in-memory implementation of GtfsRelationalDaoImpl. It's super fast for most
methods, but only if you have enough memory to load your entire GTFS into
memory.
- Author:
- bdferris
-
Field Summary
Fields inherited from class org.onebusaway.gtfs.impl.GtfsDaoImpl
OPTIONAL_FILE_NAMES -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidServiceCalendarMethodsShapePointMethodsgetCalendarDatesForServiceId(AgencyAndId serviceId) ServiceCalendarDateMethodsgetCalendarForServiceId(AgencyAndId serviceId) getFareRulesForFareAttribute(FareAttribute fareAttribute) getFareRulesForRoute(Route route) getFareRulesForZoneId(String zoneId) getFrequenciesForTrip(Trip trip) FrequencyMethodsgetRidershipForTrip(AgencyAndId tripId) getRoutesForAgency(Agency agency) Route MethodsgetShapePointsForShapeId(AgencyAndId shapeId) getStopsForStation(Stop station) Stop MethodsgetStopsForZoneId(String zoneId) getStopTimesForStop(Stop stop) getStopTimesForTrip(Trip trip) getTripAgencyIdsReferencingServiceId(AgencyAndId serviceId) ServiceId MethodsgetTripsForBlockId(AgencyAndId blockId) getTripsForRoute(Route route) TripMethodsgetTripsForServiceId(AgencyAndId serviceId) getTripsForShapeId(AgencyAndId shapeId) Methods inherited from class org.onebusaway.gtfs.impl.GtfsDaoImpl
addMetadata, clearAllEntitiesForType, close, getAgencyForId, getAllAgencies, getAllAlternateStopNameExceptions, getAllAreas, getAllBlocks, getAllBookingRules, getAllCalendarDates, getAllCalendars, getAllDirectionEntries, getAllDirectionNameExceptions, getAllEntitiesForType, getAllFacilities, getAllFacilityProperties, getAllFacilityPropertyDefinitions, getAllFareAttributes, getAllFareLegRules, getAllFareMedia, getAllFareProducts, getAllFareRules, getAllFareTransferRules, getAllFeedInfos, getAllFrequencies, getAllLevels, getAllLocationGroupElements, getAllLocationGroups, getAllLocations, getAllNetworks, getAllPathways, getAllRiderCategories, getAllRiderships, getAllRouteNameExceptions, getAllRoutes, getAllRouteShapes, getAllRouteStops, getAllShapePoints, getAllStopAreaElements, getAllStopAreas, getAllStops, getAllStopTimes, getAllTransfers, getAllTranslations, getAllTrips, getAllVehicles, getAllWrongWayConcurrencies, getAlternateStopNameExceptionForId, getBlockForId, getCalendarDateForId, getCalendarForId, getDirectionNameExceptionForId, getEntitiesByIdForEntityType, getEntityForId, getFacilityForId, getFacilityPropertiesDefinitionsForId, getFacilityPropertiesForId, getFareAttributeForId, getFareProductForId, getFareRuleForId, getFeedInfoForId, getFrequencyForId, getLevelForId, getMetadata, getOptionalMetadataFilenames, getPathwayForId, getRouteForId, getRouteNameExceptionForId, getShapePointForId, getStopForId, getStopTimeForId, getTransferForId, getTripForId, getVehicleForId, hasMetadata, isPackShapePoints, isPackStopTimes, removeEntity, saveEntity, setPackShapePoints, setPackStopTimesMethods inherited from class org.onebusaway.gtfs.impl.GenericDaoImpl
clear, flush, getEntityClasses, open, saveOrUpdateEntity, setGenerateIds, updateEntityMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.onebusaway.gtfs.services.GenericDao
getAllEntitiesForType, getEntityForIdMethods inherited from interface org.onebusaway.gtfs.services.GenericMutableDao
clearAllEntitiesForType, close, flush, open, removeEntity, saveEntity, saveOrUpdateEntity, updateEntityMethods inherited from interface org.onebusaway.gtfs.services.GtfsDao
addMetadata, getAgencyForId, getAllAgencies, getAllAreas, getAllBlocks, getAllBookingRules, getAllCalendarDates, getAllCalendars, getAllDirectionEntries, getAllFareAttributes, getAllFareLegRules, getAllFareMedia, getAllFareProducts, getAllFareRules, getAllFareTransferRules, getAllFeedInfos, getAllFrequencies, getAllLevels, getAllLocationGroupElements, getAllLocationGroups, getAllLocations, getAllNetworks, getAllPathways, getAllRiderCategories, getAllRiderships, getAllRoutes, getAllRouteShapes, getAllRouteStops, getAllShapePoints, getAllStopAreaElements, getAllStopAreas, getAllStops, getAllStopTimes, getAllTransfers, getAllTranslations, getAllTrips, getAllVehicles, getAllWrongWayConcurrencies, getBlockForId, getCalendarDateForId, getCalendarForId, getFareAttributeForId, getFareProductForId, getFareRuleForId, getFeedInfoForId, getFrequencyForId, getLevelForId, getMetadata, getOptionalMetadataFilenames, getPathwayForId, getRouteForId, getShapePointForId, getStopForId, getStopTimeForId, getTransferForId, getTripForId, getVehicleForId, hasFaresV1, hasFaresV2, hasMetadata
-
Constructor Details
-
GtfsRelationalDaoImpl
public GtfsRelationalDaoImpl()
-
-
Method Details
-
clearAllCaches
public void clearAllCaches() -
getTripAgencyIdsReferencingServiceId
Description copied from interface:GtfsRelationalDaoServiceId Methods- Specified by:
getTripAgencyIdsReferencingServiceIdin interfaceGtfsRelationalDao
-
getRoutesForAgency
Description copied from interface:GtfsRelationalDaoRoute Methods- Specified by:
getRoutesForAgencyin interfaceGtfsRelationalDao
-
getStopsForStation
Description copied from interface:GtfsRelationalDaoStop Methods- Specified by:
getStopsForStationin interfaceGtfsRelationalDao
-
getStopsForZoneId
- Specified by:
getStopsForZoneIdin interfaceGtfsRelationalDao
-
getAllShapeIds
Description copied from interface:GtfsRelationalDaoShapePointMethods- Specified by:
getAllShapeIdsin interfaceGtfsRelationalDao
-
getShapePointsForShapeId
- Specified by:
getShapePointsForShapeIdin interfaceGtfsRelationalDao
-
getStopTimesForTrip
- Specified by:
getStopTimesForTripin interfaceGtfsRelationalDao- Returns:
- the list of
StopTimeobjects associated with the trip, sorted byStopTime.getStopSequence()
-
getStopTimesForStop
- Specified by:
getStopTimesForStopin interfaceGtfsRelationalDao- Returns:
- the list of
StopTimeobjects associated with the specifiedStop, in no particular order
-
getTripsForRoute
Description copied from interface:GtfsRelationalDaoTripMethods- Specified by:
getTripsForRoutein interfaceGtfsRelationalDao
-
getTripsForShapeId
- Specified by:
getTripsForShapeIdin interfaceGtfsRelationalDao
-
getTripsForServiceId
- Specified by:
getTripsForServiceIdin interfaceGtfsRelationalDao
-
getTripsForBlockId
- Specified by:
getTripsForBlockIdin interfaceGtfsRelationalDao
-
getFrequenciesForTrip
Description copied from interface:GtfsRelationalDaoFrequencyMethods- Specified by:
getFrequenciesForTripin interfaceGtfsRelationalDao
-
getAllServiceIds
Description copied from interface:GtfsRelationalDaoServiceCalendarMethods- Specified by:
getAllServiceIdsin interfaceGtfsRelationalDao
-
getCalendarDatesForServiceId
Description copied from interface:GtfsRelationalDaoServiceCalendarDateMethods- Specified by:
getCalendarDatesForServiceIdin interfaceGtfsRelationalDao
-
getCalendarForServiceId
- Specified by:
getCalendarForServiceIdin interfaceGtfsRelationalDao
-
getFareRulesForFareAttribute
Description copied from interface:GtfsRelationalDao- Specified by:
getFareRulesForFareAttributein interfaceGtfsRelationalDao
-
getFareRulesForRoute
- Specified by:
getFareRulesForRoutein interfaceGtfsRelationalDao
-
getFareRulesForZoneId
- Specified by:
getFareRulesForZoneIdin interfaceGtfsRelationalDao
-
getRidershipForTrip
Description copied from interface:GtfsRelationalDao- Specified by:
getRidershipForTripin interfaceGtfsRelationalDao
-