作者热门文章
- 使用 Spring Initializr 创建 Spring Boot 应用程序
- 在Spring Boot中配置Cassandra
- 在 Spring Boot 上配置 Tomcat 连接池
- 将Camel消息路由到嵌入WildFly的Artemis上
本文整理了Java中proj.zoie.impl.indexing.ZoieConfig.setBatchDelay()
方法的一些代码示例,展示了ZoieConfig.setBatchDelay()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。ZoieConfig.setBatchDelay()
方法的具体详情如下:
包路径:proj.zoie.impl.indexing.ZoieConfig
类名称: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,
本文整理了Java中proj.zoie.impl.indexing.ZoieConfig.setBatchDelay()方法的一些代码示例,展示了ZoieConfig.setBatchDelay()的
我是一名优秀的程序员,十分优秀!