Beispiel #1
0
 /* 设置内存中的初始索引数目 */
 private void setIdxNum(Configuration config) {
   int tmp;
   try {
     tmp = Integer.parseInt(config.getValue("IdxNumInMem"));
   } catch (Exception e) {
     e.printStackTrace();
     return;
   }
   idxNumInMem = tmp;
 }
Beispiel #2
0
 /* 设置内存中的初始索引数目 */
 private void setTotalDocs(Configuration config) {
   int tmp;
   try {
     tmp = Integer.parseInt(config.getValue("TotalDocs"));
   } catch (Exception e) {
     e.printStackTrace();
     return;
   }
   totalDocs = tmp;
 }
Beispiel #3
0
 /* 设置胜者表的topK */
 private void setTopK(Configuration config) {
   int tmp;
   try {
     tmp = Integer.parseInt(config.getValue("ChampionTopK"));
   } catch (Exception e) {
     e.printStackTrace();
     return;
   }
   topK = tmp;
 }