proj.zoie.impl.indexing.ZoieConfig.setBatchSize()方法的使用及代码示例

x33g5p2x  于2022-02-05 转载在 其他  
字(2.4k)|赞(0)|评价(0)|浏览(84)

本文整理了Java中proj.zoie.impl.indexing.ZoieConfig.setBatchSize()方法的一些代码示例,展示了ZoieConfig.setBatchSize()的具体用法。这些代码示例主要来源于Github/Stackoverflow/Maven等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。ZoieConfig.setBatchSize()方法的具体详情如下:
包路径:proj.zoie.impl.indexing.ZoieConfig
类名称:ZoieConfig
方法名:setBatchSize

ZoieConfig.setBatchSize介绍

暂无

代码示例

代码示例来源:origin: senseidb/zoie

@Override
public void setBatchSize(int batchSize) {
 hourglass.getzConfig().setBatchSize(batchSize);
 hourglass.getCurrentZoie().getAdminMBean().setBatchSize(batchSize);
}

代码示例来源:origin: com.senseidb.zoie/zoie-core

@Override
public void setBatchSize(int batchSize) {
 hourglass.getzConfig().setBatchSize(batchSize);
 hourglass.getCurrentZoie().getAdminMBean().setBatchSize(batchSize);
}

代码示例来源:origin: com.linkedin.zoie/zoie-core

@Override
public void setBatchSize(int batchSize)
{
 hourglass.getzConfig().setBatchSize(batchSize);
 hourglass.getCurrentZoie().getAdminMBean().setBatchSize(batchSize);
}

代码示例来源:origin: senseidb/zoie

static PerfTestHandler buildZoieHandler(File idxDir, Configuration topConf, Configuration conf)
  throws Exception {
 ZoieConfig zoieConfig = new ZoieConfig();
 zoieConfig.setAnalyzer(new StandardAnalyzer(Version.LUCENE_43));
 zoieConfig.setBatchSize(100000);
 zoieConfig.setBatchDelay(10000);
 zoieConfig.setMaxBatchSize(100000);
 zoieConfig.setRtIndexing(true);
 zoieConfig.setVersionComparator(ZoiePerfVersion.COMPARATOR);
 zoieConfig.setReadercachefactory(SimpleReaderCache.FACTORY);
 String modeConf = topConf.getString("perf.directory.type", "file");
 DIRECTORY_MODE mode = modeMap.get(modeConf);
 if (mode == null) mode = DIRECTORY_MODE.SIMPLE;
 DirectoryManager dirMgr = new DefaultDirectoryManager(idxDir, mode);
 IndexReaderDecorator<IndexReader> indexReaderDecorator = new DefaultIndexReaderDecorator();
 File queryFile = new File(topConf.getString("perf.query.file"));
 if (!queryFile.exists()) {
  throw new ConfigurationException(queryFile.getAbsolutePath() + " does not exist!");
 }
 ZoieSystem<IndexReader, String> zoieSystem = new ZoieSystem<IndexReader, String>(dirMgr,
   interpreter, indexReaderDecorator, zoieConfig);
 SearchQueryHandler queryHandler = new SearchQueryHandler(queryFile, zoieSystem);
 return new PerfTestHandler(zoieSystem, queryHandler);
}

代码示例来源:origin: com.senseidb/sensei-core

zoieConfig.setBatchSize(_senseiConf.getInt(SENSEI_INDEX_BATCH_SIZE,
 ZoieConfig.DEFAULT_SETTING_BATCHSIZE));
zoieConfig.setBatchDelay(_senseiConf.getLong(SENSEI_INDEX_BATCH_DELAY,

相关文章