本文整理了Java中proj.zoie.api.Zoie.getVersion()
方法的一些代码示例,展示了Zoie.getVersion()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Zoie.getVersion()
方法的具体详情如下:
包路径:proj.zoie.api.Zoie
类名称: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();
内容来源于网络,如有侵权,请联系作者删除!