gpt4 book ai didi

proj.zoie.api.Zoie.getVersion()方法的使用及代码示例

转载 作者:知者 更新时间:2024-03-20 04:40:31 26 4
gpt4 key购买 nike

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

Zoie.getVersion介绍

暂无

代码示例

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

@Override
public String getVersion() {
 String v1 = null, v2 = null;
 Zoie<R, D> zoieOne = _zoieOne;
 if (zoieOne != null) {
  v1 = zoieOne.getVersion();
 }
 if (_zoieTwo != null) {
  v2 = _zoieTwo.getVersion();
 }
 return _zoieConfig.getVersionComparator().compare(v2, v1) > 0 ? v2 : v1;
}

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

public String getVersion()
{
 String v1 = null, v2 = null;
 Zoie zoieOne = _zoieOne;
 if (zoieOne != null)
  v1 = zoieOne.getVersion();
 if (_zoieTwo != null)
  v2 = _zoieTwo.getVersion();
 return _zoieConfig.getVersionComparator().compare(v2, v1) > 0 ? v2 : v1;
}

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

@Override
public String getVersion() {
 String v1 = null, v2 = null;
 Zoie<R, D> zoieOne = _zoieOne;
 if (zoieOne != null) {
  v1 = zoieOne.getVersion();
 }
 if (_zoieTwo != null) {
  v2 = _zoieTwo.getVersion();
 }
 return _zoieConfig.getVersionComparator().compare(v2, v1) > 0 ? v2 : v1;
}

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

@Override
public void initialize(Map<Integer, Zoie<BoboSegmentReader, JSONObject>> zoieSystemMap)
  throws Exception {
 int maxPartitionId = _myconfig.getInt(MAX_PARTITION_ID) + 1;
 String uidField = _senseiSchema.getUidField();
 DataDispatcher consumer = new DataDispatcher(maxPartitionId, uidField);
 _zoieSystemMap = zoieSystemMap;
 Iterator<Integer> it = zoieSystemMap.keySet().iterator();
 while (it.hasNext()) {
  int part = it.next();
  Zoie<BoboSegmentReader, JSONObject> zoie = zoieSystemMap.get(part);
  updateOldestSinceKey(zoie.getVersion());
  _dataCollectorMap.put(part, new LinkedList<DataEvent<JSONObject>>());
 }
 if (pluggableSearchEngineManager != null
   && pluggableSearchEngineManager.getOldestVersion() != null
   && !("".equals(pluggableSearchEngineManager.getOldestVersion()))) {
  updateOldestSinceKey(pluggableSearchEngineManager.getOldestVersion());
 }
 _dataProvider = buildDataProvider();
 if (_dataProvider != null) {
  _dataProvider.setDataConsumer(consumer);
 }
}

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

for (Zoie<BoboSegmentReader, ?> zoieSystem : zoieSystems) {
 if (version == null
   || _zoieFactory.getVersionComparator().compare(version, zoieSystem.getVersion()) < 0) version = zoieSystem
   .getVersion();

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com