コード例 #1
0
 public static void main(String[] args) throws RichFileNotFoundException {
   String pathT =
       "/home/beenotung/Dropbox/_SyncShare/Documents/polyu/IR/group assignment/res/Query/queryT";
   String pathTDN =
       "/home/beenotung/Dropbox/_SyncShare/Documents/polyu/IR/group assignment/res/Query/queryTDN";
   QueryFactory.loadFromFile(new File(pathT), QueryEnum.T().id());
   QueryFactory.getQueries_T()
       .foreach(
           ScalaSupport.function1(
               new Function<Query, Object>() {
                 @Override
                 public Object apply(Query query) {
                   System.out.printf("%s %s\n", query.queryId(), query.rawQueryContent());
                   return null;
                 }
               }));
 }