- 使用 Spring Initializr 创建 Spring Boot 应用程序
- 在Spring Boot中配置Cassandra
- 在 Spring Boot 上配置 Tomcat 连接池
- 将Camel消息路由到嵌入WildFly的Artemis上
本文整理了Java中proj.zoie.impl.indexing.ZoieSystem.<init>()
方法的一些代码示例,展示了ZoieSystem.<init>()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。ZoieSystem.<init>()
方法的具体详情如下:
包路径:proj.zoie.impl.indexing.ZoieSystem
类名称:ZoieSystem
方法名:<init>
[英]Creates a new ZoieSystem.
[中]创建一个新的ZoieSystem。
代码示例来源:origin: com.linkedin.zoie/zoie-core
ZoieSystem<R, D> createZoie(DirectoryManager dirmgr)
{
return new ZoieSystem<R, D>(dirmgr, _interpreter, _decorator, _zConfig);
}
代码示例来源:origin: senseidb/zoie
ZoieSystem<R, D> createZoie(DirectoryManager dirmgr) {
return new ZoieSystem<R, D>(dirmgr, _interpreter, _decorator, _zConfig);
}
代码示例来源:origin: com.senseidb.zoie/zoie-core
ZoieSystem<R, D> createZoie(DirectoryManager dirmgr) {
return new ZoieSystem<R, D>(dirmgr, _interpreter, _decorator, _zConfig);
}
代码示例来源:origin: senseidb/zoie
public Pair(File zoieOneRoot, DIRECTORY_MODE dirMode, IndexCopier indexCopier,
ZoieIndexableInterpreter<D> interpreter, IndexReaderDecorator<R> decorator,
ZoieConfig zoieConfig, Zoie<R, D> zoieTwo) {
_zoieOneRoot = zoieOneRoot;
_indexCopier = indexCopier;
_interpreter = interpreter;
_decorator = decorator;
_zoieConfig = zoieConfig;
_zoieTwo = zoieTwo;
_activeReaders = new HashMap<IndexReader, ZoieRef>();
// Initialize zoieOne:
if (_zoieOneRoot == null) {
throw new IllegalArgumentException("zoieOneRoot cannot be null.");
}
if (_zoieOneRoot.exists()) {
File[] files = _zoieOneRoot.listFiles();
Arrays.sort(files);
for (int i = files.length - 1; i >= 0; --i) {
if (new File(files[i], COMMIT_FILE).exists()) {
log.info("Found latest zoieOne index: " + files[i].getAbsolutePath());
DirectoryManager dirMgr = new DefaultDirectoryManager(files[i], dirMode);
_zoieOne = new ZoieSystem<R, D>(dirMgr, _interpreter, _decorator, _zoieConfig);
break;
}
}
}
}
代码示例来源:origin: com.senseidb.zoie/zoie-core
public Pair(File zoieOneRoot, DIRECTORY_MODE dirMode, IndexCopier indexCopier,
ZoieIndexableInterpreter<D> interpreter, IndexReaderDecorator<R> decorator,
ZoieConfig zoieConfig, Zoie<R, D> zoieTwo) {
_zoieOneRoot = zoieOneRoot;
_indexCopier = indexCopier;
_interpreter = interpreter;
_decorator = decorator;
_zoieConfig = zoieConfig;
_zoieTwo = zoieTwo;
_activeReaders = new HashMap<IndexReader, ZoieRef>();
// Initialize zoieOne:
if (_zoieOneRoot == null) {
throw new IllegalArgumentException("zoieOneRoot cannot be null.");
}
if (_zoieOneRoot.exists()) {
File[] files = _zoieOneRoot.listFiles();
Arrays.sort(files);
for (int i = files.length - 1; i >= 0; --i) {
if (new File(files[i], COMMIT_FILE).exists()) {
log.info("Found latest zoieOne index: " + files[i].getAbsolutePath());
DirectoryManager dirMgr = new DefaultDirectoryManager(files[i], dirMode);
_zoieOne = new ZoieSystem<R, D>(dirMgr, _interpreter, _decorator, _zoieConfig);
break;
}
}
}
}
代码示例来源:origin: senseidb/zoie
public static <D> ZoieSystem<IndexReader, D> buildDefaultInstance(File idxDir,
ZoieIndexableInterpreter<D> interpreter, ZoieConfig zoieConfig) {
return new ZoieSystem<IndexReader, D>(idxDir, interpreter, new DefaultIndexReaderDecorator(),
zoieConfig);
}
代码示例来源:origin: com.senseidb.zoie/zoie-core
public static <D> ZoieSystem<IndexReader, D> buildDefaultInstance(File idxDir,
ZoieIndexableInterpreter<D> interpreter, ZoieConfig zoieConfig) {
return new ZoieSystem<IndexReader, D>(idxDir, interpreter, new DefaultIndexReaderDecorator(),
zoieConfig);
}
代码示例来源:origin: com.linkedin.zoie/zoie-core
_zoieOne = new ZoieSystem(dirMgr, _interpreter, _decorator, _zoieConfig);
break;
代码示例来源:origin: com.linkedin.zoie/zoie-core
public static <D> ZoieSystem<IndexReader, D> buildDefaultInstance(File idxDir, ZoieIndexableInterpreter<D> interpreter,ZoieConfig zoieConfig)
{
return new ZoieSystem<IndexReader, D>(idxDir, interpreter, new DefaultIndexReaderDecorator(), zoieConfig);
}
代码示例来源:origin: senseidb/zoie
/**
* @deprecated use {@link ZoieSystem#buildDefaultInstance(File, ZoieIndexableInterpreter, ZoieConfig)}
* @param idxDir
* @param interpreter
* @param analyzer
* @param similarity
* @param batchSize
* @param batchDelay
* @param realtime
* @param versionComparator
*/
@Deprecated
public static <D> ZoieSystem<IndexReader, D> buildDefaultInstance(File idxDir,
ZoieIndexableInterpreter<D> interpreter, Analyzer analyzer, Similarity similarity,
int batchSize, long batchDelay, boolean realtime, Comparator<String> versionComparator) {
return new ZoieSystem<IndexReader, D>(idxDir, interpreter, new DefaultIndexReaderDecorator(),
analyzer, similarity, batchSize, batchDelay, realtime, versionComparator, false);
}
代码示例来源:origin: com.senseidb.zoie/zoie-core
/**
* @deprecated use {@link ZoieSystem#buildDefaultInstance(File, ZoieIndexableInterpreter, ZoieConfig)}
* @param idxDir
* @param interpreter
* @param analyzer
* @param similarity
* @param batchSize
* @param batchDelay
* @param realtime
* @param versionComparator
*/
@Deprecated
public static <D> ZoieSystem<IndexReader, D> buildDefaultInstance(File idxDir,
ZoieIndexableInterpreter<D> interpreter, Analyzer analyzer, Similarity similarity,
int batchSize, long batchDelay, boolean realtime, Comparator<String> versionComparator) {
return new ZoieSystem<IndexReader, D>(idxDir, interpreter, new DefaultIndexReaderDecorator(),
analyzer, similarity, batchSize, batchDelay, realtime, versionComparator, false);
}
代码示例来源:origin: senseidb/zoie
protected List<ZoieSystem<R, D>> loadArchiveZoies() {
List<ZoieSystem<R, D>> archives = new ArrayList<ZoieSystem<R, D>>();
long t0 = System.currentTimeMillis();
List<File> dirs = _dirMgrFactory.getAllArchivedDirs();
for (File dir : dirs) {
try {
DirectoryManager dirMgr = new DefaultDirectoryManager(dir, _dirMgrFactory.getMode());
ZoieSystem<R, D> zoie = new ZoieSystem<R, D>(dirMgr, _interpreter, _decorator, _zConfig);
zoie.start();
archives.add(zoie);
} catch (Exception e) {
log.error("Load index: " + dir + " failed.", e);
}
}
log.info("load " + dirs.size() + " archived indices of " + getSizeBytes() + " bytes in "
+ (System.currentTimeMillis() - t0) + "ms");
return archives;
}
代码示例来源:origin: com.senseidb.zoie/zoie-core
protected List<ZoieSystem<R, D>> loadArchiveZoies() {
List<ZoieSystem<R, D>> archives = new ArrayList<ZoieSystem<R, D>>();
long t0 = System.currentTimeMillis();
List<File> dirs = _dirMgrFactory.getAllArchivedDirs();
for (File dir : dirs) {
try {
DirectoryManager dirMgr = new DefaultDirectoryManager(dir, _dirMgrFactory.getMode());
ZoieSystem<R, D> zoie = new ZoieSystem<R, D>(dirMgr, _interpreter, _decorator, _zConfig);
zoie.start();
archives.add(zoie);
} catch (Exception e) {
log.error("Load index: " + dir + " failed.", e);
}
}
log.info("load " + dirs.size() + " archived indices of " + getSizeBytes() + " bytes in "
+ (System.currentTimeMillis() - t0) + "ms");
return archives;
}
代码示例来源:origin: com.linkedin.zoie/zoie-core
/**
* @deprecated use {@link ZoieSystem#buildDefaultInstance(File, ZoieIndexableInterpreter, ZoieConfig)}
* @param idxDir
* @param interpreter
* @param analyzer
* @param similarity
* @param batchSize
* @param batchDelay
* @param realtime
* @param versionComparator
* @return
*/
public static <D> ZoieSystem<IndexReader, D> buildDefaultInstance(File idxDir, ZoieIndexableInterpreter<D> interpreter,
Analyzer analyzer, Similarity similarity, int batchSize, long batchDelay, boolean realtime, Comparator<String> versionComparator)
{
return new ZoieSystem<IndexReader, D>(idxDir, interpreter, new DefaultIndexReaderDecorator(), analyzer, similarity, batchSize, batchDelay, realtime, versionComparator,false);
}
代码示例来源:origin: com.linkedin.zoie/zoie-core
protected List<ZoieSystem<R, D>> loadArchiveZoies()
{
List<ZoieSystem<R, D>> archives = new ArrayList<ZoieSystem<R, D>>();
long t0 = System.currentTimeMillis();
List<File> dirs = _dirMgrFactory.getAllArchivedDirs();
for(File dir : dirs)
{
IndexReader reader;
try
{
DirectoryManager dirMgr = new DefaultDirectoryManager(dir, _dirMgrFactory.getMode());
ZoieSystem<R, D> zoie = new ZoieSystem<R, D>(dirMgr, _interpreter, _decorator, _zConfig);
zoie.start();
archives.add(zoie);
}
catch (Exception e)
{
log.error("Load index: " + dir + " failed.", e);
}
}
log.info("load "+dirs.size()+" archived indices of " + getSizeBytes() +" bytes in " + (System.currentTimeMillis() - t0) + "ms");
return archives;
}
代码示例来源:origin: senseidb/zoie
Zoie<R, D> zoie = new ZoieSystem(dirMgr, _interpreter, _decorator, _zoieConfig);
if (_running) zoie.start();
代码示例来源:origin: com.senseidb.zoie/zoie-core
Zoie<R, D> zoie = new ZoieSystem(dirMgr, _interpreter, _decorator, _zoieConfig);
if (_running) zoie.start();
代码示例来源:origin: com.linkedin.zoie/zoie-core
Zoie zoie = new ZoieSystem(dirMgr, _interpreter, _decorator, _zoieConfig);
if (_running)
zoie.start();
代码示例来源:origin: com.senseidb/sensei-core
ZoieSystem<BoboSegmentReader, T> zoie = new ZoieSystem<BoboSegmentReader, T>(dirMgr,
_interpreter, _indexReaderDecorator, _zoieConfig);
if (_purgeFilter != null) {
代码示例来源: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);
}
本文整理了Java中proj.zoie.api.Zoie.flushEvents()方法的一些代码示例,展示了Zoie.flushEvents()的具体用法。这些代码示例主要来源于Github/Sta
本文整理了Java中proj.zoie.api.Zoie.consume()方法的一些代码示例,展示了Zoie.consume()的具体用法。这些代码示例主要来源于Github/Stackoverfl
本文整理了Java中proj.zoie.api.Zoie.getIndexReaders()方法的一些代码示例,展示了Zoie.getIndexReaders()的具体用法。这些代码示例主要来源于Gi
本文整理了Java中proj.zoie.api.Zoie.returnIndexReaders()方法的一些代码示例,展示了Zoie.returnIndexReaders()的具体用法。这些代码示例主
本文整理了Java中proj.zoie.api.Zoie.getVersion()方法的一些代码示例,展示了Zoie.getVersion()的具体用法。这些代码示例主要来源于Github/Stack
本文整理了Java中proj.zoie.api.Zoie.syncWithVersion()方法的一些代码示例,展示了Zoie.syncWithVersion()的具体用法。这些代码示例主要来源于Gi
本文整理了Java中proj.zoie.api.Zoie.shutdown()方法的一些代码示例,展示了Zoie.shutdown()的具体用法。这些代码示例主要来源于Github/Stackover
本文整理了Java中proj.zoie.api.Zoie.start()方法的一些代码示例,展示了Zoie.start()的具体用法。这些代码示例主要来源于Github/Stackoverflow/M
本文整理了Java中proj.zoie.api.ZoieException类的一些代码示例,展示了ZoieException类的具体用法。这些代码示例主要来源于Github/Stackoverflow
本文整理了Java中proj.zoie.store.ZoieStore类的一些代码示例,展示了ZoieStore类的具体用法。这些代码示例主要来源于Github/Stackoverflow/Maven
本文整理了Java中proj.zoie.api.ZoieSegmentReader类的一些代码示例,展示了ZoieSegmentReader类的具体用法。这些代码示例主要来源于Github/Stack
本文整理了Java中proj.zoie.api.ZoieMultiReader类的一些代码示例,展示了ZoieMultiReader类的具体用法。这些代码示例主要来源于Github/Stackover
本文整理了Java中proj.zoie.api.Zoie类的一些代码示例,展示了Zoie类的具体用法。这些代码示例主要来源于Github/Stackoverflow/Maven等平台,是从一些精选项目
本文整理了Java中proj.zoie.impl.indexing.ZoieSystem类的一些代码示例,展示了ZoieSystem类的具体用法。这些代码示例主要来源于Github/Stackover
本文整理了Java中proj.zoie.impl.indexing.ZoieConfig类的一些代码示例,展示了ZoieConfig类的具体用法。这些代码示例主要来源于Github/Stackover
本文整理了Java中proj.zoie.api.indexing.ZoieIndexable类的一些代码示例,展示了ZoieIndexable类的具体用法。这些代码示例主要来源于Github/Stac
本文整理了Java中proj.zoie.store.ZoieStore.open()方法的一些代码示例,展示了ZoieStore.open()的具体用法。这些代码示例主要来源于Github/Stack
本文整理了Java中proj.zoie.store.ZoieStore.commit()方法的一些代码示例,展示了ZoieStore.commit()的具体用法。这些代码示例主要来源于Github/S
本文整理了Java中proj.zoie.store.ZoieStore.getVersion()方法的一些代码示例,展示了ZoieStore.getVersion()的具体用法。这些代码示例主要来源于
本文整理了Java中proj.zoie.api.ZoieException.()方法的一些代码示例,展示了ZoieException.()的具体用法。这些代码示例主要来源于Github/Stackov
我是一名优秀的程序员,十分优秀!