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

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

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

ZoieConfig.getReadercachefactory介绍

暂无

代码示例

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

/**
 * Creates a new ZoieSystem.
 *
 * @param dirMgr
 *          Directory manager, mandatory.
 * @param interpreter
 *          data interpreter, mandatory.
 * @param indexReaderDecorator
 *          index reader decorator,optional. If not specified,
 *          {@link proj.zoie.impl.indexing.DefaultIndexReaderDecorator} is
 *          used.
 * @param zoieConfig
 *          configuration object
 */
@SuppressWarnings({ "deprecation", "unchecked" })
public ZoieSystem(DirectoryManager dirMgr, ZoieIndexableInterpreter<D> interpreter,
  IndexReaderDecorator<R> indexReaderDecorator, ZoieConfig zoieConfig) {
 this(dirMgr, interpreter, indexReaderDecorator, zoieConfig.getDocidMapperFactory(), zoieConfig
   .getAnalyzer(), zoieConfig.getSimilarity(), zoieConfig.getBatchSize(), zoieConfig
   .getBatchDelay(), zoieConfig.isRtIndexing(), zoieConfig.getMaxBatchSize(), zoieConfig
   .getReadercachefactory(), (RAMIndexFactory<R>) zoieConfig.getRamIndexFactory(), zoieConfig
   .getVersionComparator(), zoieConfig.isSkipBadRecord());
 readercache.setFreshness(zoieConfig.getFreshness());
}

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

/**
 * Creates a new ZoieSystem.
 * 
 * @param dirMgr
 *          Directory manager, mandatory.
 * @param interpreter
 *          data interpreter, mandatory.
 * @param indexReaderDecorator
 *          index reader decorator,optional. If not specified,
 *          {@link proj.zoie.impl.indexing.DefaultIndexReaderDecorator} is
 *          used.
 * @param zoieConfig
 *          configuration object
 */
public ZoieSystem(DirectoryManager dirMgr,
  ZoieIndexableInterpreter<D> interpreter,
  IndexReaderDecorator<R> indexReaderDecorator, ZoieConfig zoieConfig)
{
 this(dirMgr, interpreter, indexReaderDecorator, zoieConfig
   .getDocidMapperFactory(), zoieConfig.getAnalyzer(), zoieConfig
   .getSimilarity(), zoieConfig.getBatchSize(),
   zoieConfig.getBatchDelay(), zoieConfig.isRtIndexing(), zoieConfig
   .getMaxBatchSize(), zoieConfig.getReadercachefactory(),
   (RAMIndexFactory<R>)zoieConfig.getRamIndexFactory(),zoieConfig.getVersionComparator(),
   zoieConfig.isSkipBadRecord());
 readercache.setFreshness(zoieConfig.getFreshness());
}

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

/**
 * Creates a new ZoieSystem.
 *
 * @param idxDir
 *          index directory, mandatory.
 * @param interpreter
 *          data interpreter, mandatory.
 * @param indexReaderDecorator
 *          index reader decorator,optional. If not specified,
 *          {@link proj.zoie.impl.indexing.DefaultIndexReaderDecorator} is
 *          used.
 * @param zoieConfig
 *          configuration object
 */
@SuppressWarnings({ "deprecation", "unchecked" })
public ZoieSystem(File idxDir, ZoieIndexableInterpreter<D> interpreter,
  IndexReaderDecorator<R> indexReaderDecorator, ZoieConfig zoieConfig) {
 this(new DefaultDirectoryManager(idxDir), interpreter, indexReaderDecorator, zoieConfig
   .getDocidMapperFactory(), zoieConfig.getAnalyzer(), zoieConfig.getSimilarity(), zoieConfig
   .getBatchSize(), zoieConfig.getBatchDelay(), zoieConfig.isRtIndexing(), zoieConfig
   .getMaxBatchSize(), zoieConfig.getReadercachefactory(), (RAMIndexFactory<R>) zoieConfig
   .getRamIndexFactory(), zoieConfig.getVersionComparator(), zoieConfig.isSkipBadRecord());
 readercache.setFreshness(zoieConfig.getFreshness());
}

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

/**
 * Creates a new ZoieSystem.
 *
 * @param dirMgr
 *          Directory manager, mandatory.
 * @param interpreter
 *          data interpreter, mandatory.
 * @param indexReaderDecorator
 *          index reader decorator,optional. If not specified,
 *          {@link proj.zoie.impl.indexing.DefaultIndexReaderDecorator} is
 *          used.
 * @param zoieConfig
 *          configuration object
 */
@SuppressWarnings({ "deprecation", "unchecked" })
public ZoieSystem(DirectoryManager dirMgr, ZoieIndexableInterpreter<D> interpreter,
  IndexReaderDecorator<R> indexReaderDecorator, ZoieConfig zoieConfig) {
 this(dirMgr, interpreter, indexReaderDecorator, zoieConfig.getDocidMapperFactory(), zoieConfig
   .getAnalyzer(), zoieConfig.getSimilarity(), zoieConfig.getBatchSize(), zoieConfig
   .getBatchDelay(), zoieConfig.isRtIndexing(), zoieConfig.getMaxBatchSize(), zoieConfig
   .getReadercachefactory(), (RAMIndexFactory<R>) zoieConfig.getRamIndexFactory(), zoieConfig
   .getVersionComparator(), zoieConfig.isSkipBadRecord());
 readercache.setFreshness(zoieConfig.getFreshness());
}

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

/**
 * Creates a new ZoieSystem.
 *
 * @param idxDir
 *          index directory, mandatory.
 * @param interpreter
 *          data interpreter, mandatory.
 * @param indexReaderDecorator
 *          index reader decorator,optional. If not specified,
 *          {@link proj.zoie.impl.indexing.DefaultIndexReaderDecorator} is
 *          used.
 * @param zoieConfig
 *          configuration object
 */
@SuppressWarnings({ "deprecation", "unchecked" })
public ZoieSystem(File idxDir, ZoieIndexableInterpreter<D> interpreter,
  IndexReaderDecorator<R> indexReaderDecorator, ZoieConfig zoieConfig) {
 this(new DefaultDirectoryManager(idxDir), interpreter, indexReaderDecorator, zoieConfig
   .getDocidMapperFactory(), zoieConfig.getAnalyzer(), zoieConfig.getSimilarity(), zoieConfig
   .getBatchSize(), zoieConfig.getBatchDelay(), zoieConfig.isRtIndexing(), zoieConfig
   .getMaxBatchSize(), zoieConfig.getReadercachefactory(), (RAMIndexFactory<R>) zoieConfig
   .getRamIndexFactory(), zoieConfig.getVersionComparator(), zoieConfig.isSkipBadRecord());
 readercache.setFreshness(zoieConfig.getFreshness());
}

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

/**
 * Creates a new ZoieSystem.
 * 
 * @param idxDir
 *          index directory, mandatory.
 * @param interpreter
 *          data interpreter, mandatory.
 * @param indexReaderDecorator
 *          index reader decorator,optional. If not specified,
 *          {@link proj.zoie.impl.indexing.DefaultIndexReaderDecorator} is
 *          used.
 * @param zoieConfig
 *          configuration object
 */
public ZoieSystem(File idxDir, ZoieIndexableInterpreter<D> interpreter,
  IndexReaderDecorator<R> indexReaderDecorator, ZoieConfig zoieConfig)
{
 this(new DefaultDirectoryManager(idxDir), interpreter, indexReaderDecorator,
   zoieConfig.getDocidMapperFactory(), zoieConfig.getAnalyzer(),
   zoieConfig.getSimilarity(), zoieConfig.getBatchSize(), zoieConfig
   .getBatchDelay(), zoieConfig.isRtIndexing(), zoieConfig
   .getMaxBatchSize(), zoieConfig.getReadercachefactory(),
   (RAMIndexFactory<R>)zoieConfig.getRamIndexFactory(),zoieConfig.getVersionComparator(),
   zoieConfig.isSkipBadRecord());
 readercache.setFreshness(zoieConfig.getFreshness());
}

相关文章