org.onebusaway.transit_data_federation.impl
Class RouteCollectionSearchServiceImpl
java.lang.Object
org.onebusaway.transit_data_federation.impl.RouteCollectionSearchServiceImpl
- All Implemented Interfaces:
- RouteCollectionSearchService
@Component
public class RouteCollectionSearchServiceImpl
- extends Object
- implements RouteCollectionSearchService
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
RouteCollectionSearchServiceImpl
public RouteCollectionSearchServiceImpl()
setBundle
public void setBundle(FederatedTransitDataBundle bundle)
initialize
@PostConstruct
@Refreshable(dependsOn="routeCollectionSearchData")
public void initialize()
throws IOException
- Throws:
IOException
searchForRoutesByName
public SearchResult<org.onebusaway.gtfs.model.AgencyAndId> searchForRoutesByName(String value,
int maxResultCount,
double minScoreToKeep)
throws IOException,
org.apache.lucene.queryParser.ParseException
- Specified by:
searchForRoutesByName
in interface RouteCollectionSearchService
- Parameters:
value
- the route short name querymaxResultCount
- maximum number of results to keepminScoreToKeep
- score tuning metric to prune result (implementation
dependent)
- Returns:
- a search result for
RouteCollectionEntry
ids matching the
specified short name query
- Throws:
IOException
org.apache.lucene.queryParser.ParseException
Copyright © 2012 OneBusAway. All Rights Reserved.