热门标签 | HotTags
当前位置:  开发笔记 > 编程语言 > 正文

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

本文整理了Java中proj.zoie.impl.indexing.ZoieConfig.setMaxBatchSize()方法的一些代码示例,展示了Zoi

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

ZoieConfig.setMaxBatchSize介绍

暂无

代码示例

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

@Override
public void setMaxBatchSize(int maxBatchSize) {
hourglass.getzConfig().setMaxBatchSize(maxBatchSize);
hourglass.getCurrentZoie().getAdminMBean().setMaxBatchSize(maxBatchSize);
}

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

@Override
public void setMaxBatchSize(int maxBatchSize) {
hourglass.getzConfig().setMaxBatchSize(maxBatchSize);
hourglass.getCurrentZoie().getAdminMBean().setMaxBatchSize(maxBatchSize);
}

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

@Override
public void setMaxBatchSize(int maxBatchSize)
{
hourglass.getzConfig().setMaxBatchSize(maxBatchSize);
hourglass.getCurrentZoie().getAdminMBean().setMaxBatchSize(maxBatchSize);
}

代码示例来源: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 indexReaderDecorator = new DefaultIndexReaderDecorator();
File queryFile = new File(topConf.getString("perf.query.file"));
if (!queryFile.exists()) {
throw new ConfigurationException(queryFile.getAbsolutePath() + " does not exist!");
}
ZoieSystem zoieSystem = new ZoieSystem(dirMgr,
interpreter, indexReaderDecorator, zoieConfig);
SearchQueryHandler queryHandler = new SearchQueryHandler(queryFile, zoieSystem);
return new PerfTestHandler(zoieSystem, queryHandler);
}

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

zoieConfig.setBatchDelay(_senseiConf.getLong(SENSEI_INDEX_BATCH_DELAY,
ZoieConfig.DEFAULT_SETTING_BATCHDELAY));
zoieConfig.setMaxBatchSize(_senseiConf.getInt(SENSEI_INDEX_BATCH_MAXSIZE,
ZoieConfig.DEFAULT_MAX_BATCH_SIZE));
zoieConfig.setRtIndexing(_senseiConf.getBoolean(SENSEI_INDEX_REALTIME,

推荐阅读
author-avatar
ahhylwjj
这个家伙很懒,什么也没留下!
PHP1.CN | 中国最专业的PHP中文社区 | DevBox开发工具箱 | json解析格式化 |PHP资讯 | PHP教程 | 数据库技术 | 服务器技术 | 前端开发技术 | PHP框架 | 开发工具 | 在线工具
Copyright © 1998 - 2020 PHP1.CN. All Rights Reserved | 京公网安备 11010802041100号 | 京ICP备19059560号-4 | PHP1.CN 第一PHP社区 版权所有