Package org.apache.pig.piggybank.evaluation.util

Examples of org.apache.pig.piggybank.evaluation.util.SearchQuery


        "http://search.live.com/results.aspx?q=live+Query&go=&form=QBRE",
        "http://search.aol.com/aol/search?s_it=searchbox.webhome&q=aol+query",
        "http://search.yahoo.com/search;_ylt=A0geu8zce8NJQxYBmgal87UF?p=Yahoo+query&fr=sfp&fr2=&iscqry=" };
    String[] queries = { "google advanced query", "google simple query",
        "live query", "aol query", "yahoo query" };
    SearchQuery sq = new SearchQuery();
    Tuple tuple = DefaultTupleFactory.getInstance().newTuple(1);
    for (int i = 0; i < searchUrls.length; i++) {
      tuple.set(0, searchUrls[i]);
      super.assertEquals(sq.exec(tuple), queries[i]);
    }
  }
View Full Code Here

TOP

Related Classes of org.apache.pig.piggybank.evaluation.util.SearchQuery

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.