本文整理了Java中proj.zoie.api.Zoie.getIndexReaders()
方法的一些代码示例,展示了Zoie.getIndexReaders()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Zoie.getIndexReaders()
方法的具体详情如下:
包路径:proj.zoie.api.Zoie
类名称:Zoie
方法名:getIndexReaders
暂无
代码示例来源:origin: senseidb/zoie
@Override
public List<ZoieMultiReader<R>> getIndexReaders() throws IOException {
List<ZoieMultiReader<R>> readers = new ArrayList<ZoieMultiReader<R>>();
if (_zoieTwo != null) {
readers.addAll(_zoieTwo.getIndexReaders());
}
Zoie<R, D> zoieOne = _zoieOne;
if (zoieOne != null) {
List<ZoieMultiReader<R>> zoieOneReaders = zoieOne.getIndexReaders();
for (ZoieMultiReader<R> r : zoieOneReaders) {
synchronized (_activeReaders) {
ZoieRef zoieRef = _activeReaders.get(r);
if (zoieRef != null) ++zoieRef.refCount;
else {
zoieRef = new ZoieRef(zoieOne);
_activeReaders.put(r, zoieRef);
}
}
}
readers.addAll(zoieOneReaders);
}
return readers;
}
代码示例来源:origin: com.senseidb.zoie/zoie-core
@Override
public List<ZoieMultiReader<R>> getIndexReaders() throws IOException {
List<ZoieMultiReader<R>> readers = new ArrayList<ZoieMultiReader<R>>();
if (_zoieTwo != null) {
readers.addAll(_zoieTwo.getIndexReaders());
}
Zoie<R, D> zoieOne = _zoieOne;
if (zoieOne != null) {
List<ZoieMultiReader<R>> zoieOneReaders = zoieOne.getIndexReaders();
for (ZoieMultiReader<R> r : zoieOneReaders) {
synchronized (_activeReaders) {
ZoieRef zoieRef = _activeReaders.get(r);
if (zoieRef != null) ++zoieRef.refCount;
else {
zoieRef = new ZoieRef(zoieOne);
_activeReaders.put(r, zoieRef);
}
}
}
readers.addAll(zoieOneReaders);
}
return readers;
}
代码示例来源:origin: com.linkedin.zoie/zoie-core
public List<ZoieIndexReader<R>> getIndexReaders() throws IOException
{
List<ZoieIndexReader<R>> readers = new ArrayList<ZoieIndexReader<R>>();
if (_zoieTwo != null)
readers.addAll(_zoieTwo.getIndexReaders());
Zoie zoieOne = _zoieOne;
if (zoieOne != null)
{
List<ZoieIndexReader<R>> r1 = zoieOne.getIndexReaders();
for (ZoieIndexReader<R> r : r1)
{
synchronized(_activeReaders)
{
ZoieRef zoieRef = _activeReaders.get(r);
if (zoieRef != null)
++zoieRef.refCount;
else
{
zoieRef = new ZoieRef(zoieOne);
_activeReaders.put(r, zoieRef);
}
}
}
readers.addAll(r1);
}
return readers;
}
代码示例来源:origin: com.senseidb/sensei-core
List<ZoieMultiReader<BoboSegmentReader>> readers;
try {
readers = zoie.getIndexReaders();
} catch (Exception e) {
logger.error(e.getMessage(), e);
代码示例来源:origin: com.linkedin.zoie/zoie-core
try
readers = zoie.getIndexReaders();
retstr += readers.size() + " readers obtained\n";
for (int readerid = 0; readerid < readers.size(); readerid++)
代码示例来源:origin: com.linkedin.zoie/zoie-core
try
readers = zoie.getIndexReaders();
retstr += readers.size() + " readers obtained\n";
for (int readerid = 0; readerid < readers.size(); readerid++)
内容来源于网络,如有侵权,请联系作者删除!