作者:ahhylwjj | 来源:互联网 | 2023-10-12 12:45
本文整理了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,