gpt4 book ai didi

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

转载 作者:知者 更新时间:2024-03-17 10:33:31 29 4
gpt4 key购买 nike

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

ZoieConfig.setBatchDelay介绍

暂无

代码示例

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

@Override
public void setBatchDelay(long delay) {
 hourglass.getzConfig().setBatchDelay(delay);
 hourglass.getCurrentZoie().getAdminMBean().setBatchDelay(delay);
}

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

@Override
public void setBatchDelay(long delay) {
 hourglass.getzConfig().setBatchDelay(delay);
 hourglass.getCurrentZoie().getAdminMBean().setBatchDelay(delay);
}

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

@Override
public void setBatchDelay(long delay)
{
 hourglass.getzConfig().setBatchDelay(delay);
 hourglass.getCurrentZoie().getAdminMBean().setBatchDelay(delay);
}

代码示例来源: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,
 ZoieConfig.DEFAULT_SETTING_BATCHDELAY));
zoieConfig.setMaxBatchSize(_senseiConf.getInt(SENSEI_INDEX_BATCH_MAXSIZE,

29 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com