org.onebusaway.transit_data_federation.impl
Class RouteCollectionSearchServiceImpl

java.lang.Object
  extended by org.onebusaway.transit_data_federation.impl.RouteCollectionSearchServiceImpl
All Implemented Interfaces:
RouteCollectionSearchService

@Component
public class RouteCollectionSearchServiceImpl
extends Object
implements RouteCollectionSearchService


Constructor Summary
RouteCollectionSearchServiceImpl()
           
 
Method Summary
 void initialize()
           
 SearchResult<org.onebusaway.gtfs.model.AgencyAndId> searchForRoutesByName(String value, int maxResultCount, double minScoreToKeep)
           
 void setBundle(FederatedTransitDataBundle bundle)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RouteCollectionSearchServiceImpl

public RouteCollectionSearchServiceImpl()
Method Detail

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 query
maxResultCount - maximum number of results to keep
minScoreToKeep - 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 © 2011 OneBusAway. All Rights Reserved.