gpt4 book ai didi

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

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

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

Zoie.returnIndexReaders介绍

暂无

代码示例

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

@SuppressWarnings({ "rawtypes", "unchecked" })
@Override
public void returnIndexReaders(List<ZoieMultiReader<R>> readers) {
 if (readers != null) {
  Map<Zoie<R, D>, List<ZoieMultiReader<R>>> destMap = new HashMap<Zoie<R, D>, List<ZoieMultiReader<R>>>();
  for (ZoieMultiReader<R> r : readers) {
   Zoie zoie = _zoieTwo;
   synchronized (_activeReaders) {
    ZoieRef zoieRef = _activeReaders.get(r);
    if (zoieRef != null) {
     zoie = zoieRef.zoie;
     --zoieRef.refCount;
     if (zoieRef.refCount <= 0) _activeReaders.remove(r);
    }
   }
   List<ZoieMultiReader<R>> readerList = destMap.get(zoie);
   if (readerList == null) {
    readerList = new ArrayList<ZoieMultiReader<R>>();
    destMap.put(zoie, readerList);
   }
   readerList.add(r);
  }
  for (Map.Entry<Zoie<R, D>, List<ZoieMultiReader<R>>> entry : destMap.entrySet()) {
   entry.getKey().returnIndexReaders(entry.getValue());
  }
 }
}

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

@SuppressWarnings({ "rawtypes", "unchecked" })
@Override
public void returnIndexReaders(List<ZoieMultiReader<R>> readers) {
 if (readers != null) {
  Map<Zoie<R, D>, List<ZoieMultiReader<R>>> destMap = new HashMap<Zoie<R, D>, List<ZoieMultiReader<R>>>();
  for (ZoieMultiReader<R> r : readers) {
   Zoie zoie = _zoieTwo;
   synchronized (_activeReaders) {
    ZoieRef zoieRef = _activeReaders.get(r);
    if (zoieRef != null) {
     zoie = zoieRef.zoie;
     --zoieRef.refCount;
     if (zoieRef.refCount <= 0) _activeReaders.remove(r);
    }
   }
   List<ZoieMultiReader<R>> readerList = destMap.get(zoie);
   if (readerList == null) {
    readerList = new ArrayList<ZoieMultiReader<R>>();
    destMap.put(zoie, readerList);
   }
   readerList.add(r);
  }
  for (Map.Entry<Zoie<R, D>, List<ZoieMultiReader<R>>> entry : destMap.entrySet()) {
   entry.getKey().returnIndexReaders(entry.getValue());
  }
 }
}

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

entry.getKey().returnIndexReaders(entry.getValue());

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

} finally
 zoie.returnIndexReaders(readers);

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

return null;
} finally {
 zoie.returnIndexReaders(readers);

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

} finally
 zoie.returnIndexReaders(readers);

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