public static Query prepareQuery(Map map){
  Query query=null;
  boolean useHdfs=(boolean)map.get(StormConstants.USE_HDFS);
  String hdfsUri=(String)map.get(StormConstants.HDFS_URI_KEY);
  String queryFile=(String)map.get(StormConstants.QUERY_FILE_KEY);
  try {
    query=StormUtils.getQuery(useHdfs,hdfsUri,queryFile);
  }
 catch (  Exception e) {
    logger.warn("Unable to initialize query info.",e);
  }
  return query;
}

public static Query prepareQuery ( Map map ) { Query query = null ; boolean useHdfs = ( boolean ) map . get ( StormConstants . USE_HDFS ) ; String hdfsUri = ( String ) map . get ( StormConstants . HDFS_URI_KEY ) ; String queryFile = ( String ) map . get ( StormConstants . QUERY_FILE_KEY ) ; try { query = StormUtils . getQuery ( useHdfs , hdfsUri , queryFile ) ; } catch ( Exception e ) { logger . warn ( "Unable to initialize query info." , e ) ; } return query ; }
method to read in and return a serialized query object from the given file and initialize / load the query . schemas and data . schemas
